vpncmd drops connection when I set up the vpn nic in dhclient.

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
franky
Posts: 1
Joined: Fri Feb 23, 2018 6:30 pm

vpncmd drops connection when I set up the vpn nic in dhclient.

Post by franky » Fri Feb 23, 2018 6:40 pm

Hi all! I have managed to set up Softether according to this tutorial on fedora 25:
https://gist.github.com/kozak127/ab80fc ... dc35a61744

When I type accountlist in vpncmd it says connected, and so the next part is to set up ip forwarding which I did, then configure dhcp. I use the command 'sudo dhclient vpn_se' (as it says on line 135 of this tutorial). This command seems to work, but then softether switches from 'Connected' to 'Connecting'.

The log says this:
2018-02-23 03:07:27.817 VPN Connection Setting "jagcloud": The connection has been either disconnected or it failed. Cause: Connection to the server failed. Check network connection and make sure that address and port number of destination server are correct. (code 1).

Can someone please help?
Thank you!

thisjun
Posts: 2765
Joined: Mon Feb 24, 2014 11:03 am

Re: vpncmd drops connection when I set up the vpn nic in dhclient.

Post by thisjun » Wed Mar 07, 2018 7:49 am

The routing table is changed when dhclient get default gateway. So, route to VPN server is lost.
To avoid this, you need to add route to VPN server to routing table before VPN connection.

Post Reply