Need assistance with using vpnclient Docker container

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
Jonukas
Posts: 4
Joined: Wed Apr 03, 2019 3:29 am

Need assistance with using vpnclient Docker container

Post by Jonukas » Wed May 07, 2025 2:39 am

Hi,

I'm trying to connect to VPN Gate using the softethervpn/vpnclient:latest Docker image, but I'm running into problems and wondered if anyone can offer any advice.

I'm using the docker-compose.yaml file provided in the GitHub repo. After I get the container running, I use vpncmd to create a virtual network adapter (NicCreate), setup the VPN Gate account (AccountCreate), connect (AccountConnect), and obtain an IP via udhcpc -I vpn_vpn, but the routing table shows:

Code: Select all

~ # ip route
default via 172.19.0.1 dev eth0
default via 10.240.254.254 dev vpn_vpn  metric 203
10.240.0.0/16 dev vpn_vpn scope link  src 10.240.248.214
172.19.0.0/16 dev eth0 scope link  src 172.19.0.2
Is there a recommended way to make the traffic default to the vpn route? I tried replacing the default eth0 route with a higher metric, but it still kept the original highest priority route:

Code: Select all

~ # ip route replace default via 172.19.0.1 dev eth0 metric 250
~ # ip route
default via 172.19.0.1 dev eth0
default via 10.240.254.254 dev vpn_vpn  metric 203
default via 172.19.0.1 dev eth0  metric 250
10.240.0.0/16 dev vpn_vpn scope link  src 10.240.248.214
172.19.0.0/16 dev eth0 scope link  src 172.19.0.2
Or is there some vpncmd command to automatically change the routing table?

Thank you for any help/advice you can provide.


Jonukas
Posts: 4
Joined: Wed Apr 03, 2019 3:29 am

Re: Need assistance with using vpnclient Docker container

Post by Jonukas » Wed May 07, 2025 2:18 pm

I got it working!

Thank you solo!

Post Reply