Skip to content

jecicorp/shrewsoft-vpn-docker-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Container to connect to a Shrew Soft IPSec VPN

You can use docker or podman (rootfull)

You need a valid configuration file named SERVER_NAME.vpn in folder VPN. See example in VPN/ssl.example.org.vpn. We use ike-qtgui to make and export the configuration file.

Warning, in the sample we define policy-list-include to route only targeted resources.

#.envrc
export VPN_SITE_NAME=ssl.example.org
export VPN_USER=user
export VPN_PASSWORD=xxxxxxx

# First build (don't forget the last dot)
sudo podman build -t vpn-ike --build-arg "SITE_NAME=${VPN_SITE_NAME}" .

# Start Daemon
sudo podman run --init --rm -d --name vpn-ike --device=/dev/net/tun --privileged --net host vpn-ike

# Start VPN connexion (CTRL+C top stop)
# This will ask for key password
sudo podman exec -it vpn-ike ikec -r "${VPN_SITE_NAME}" -u "${VPN_USER}" -p "${VPN_PASSWORD}" -a 

# Stop Daemon
sudo podman stop vpn-ike

About

Container to connect to a Shrew Soft IPSec VPN

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published