Linux vpnclient Config File Location

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
User_8341
Posts: 7
Joined: Mon Aug 12, 2024 8:50 am

Linux vpnclient Config File Location

Post by User_8341 » Fri Aug 16, 2024 4:12 pm

Hello, I have recently installed the Linux VPN client on my Debian based PC, but I have messed something up while trying to connect to a VPN server, and now whatever I try I only get reconnecting while trying to connect to a server (I have tried apt reinstall, apt purge, manually removing all files that are linked with the vpnclient package, and I also tried building the client from source). But every time after installing it again it still have the configured accounts and it still keeps reconnecting, I have tried with the same settings on a different PC with a freshly installed VPN client and there it works flawlessly. My question is how can I reset the whole VPN client program and delete all data? I am guessing there is a config file that I could delete somewhere, but I can not find it.

Thank you in advance.

solo
Posts: 1614
Joined: Sun Feb 14, 2021 10:31 am

Re: Linux vpnclient Config File Location

Post by solo » Sat Aug 17, 2024 6:00 am

/usr/local/vpnclient/vpn_client.config

User_8341
Posts: 7
Joined: Mon Aug 12, 2024 8:50 am

Re: Linux vpnclient Config File Location

Post by User_8341 » Mon Aug 19, 2024 11:31 am

Thanks for the quick reply, I've managed to clear the config file, but it still kept reconnecting. I ended up just switching to Linux Mint and have now managed to connect and get an IP address with no problem, using your previous replies. Now I am running into an issue that I would like to just run one application through the VPN which I can bind to a specific interface and/or specific IP address, but I can only run all or nothing through the VPN, do you, maybe, have some advice?

solo
Posts: 1614
Joined: Sun Feb 14, 2021 10:31 am

Re: Linux vpnclient Config File Location

Post by solo » Mon Aug 19, 2024 12:20 pm

You need a split tunnel.

User_8341
Posts: 7
Joined: Mon Aug 12, 2024 8:50 am

Re: Linux vpnclient Config File Location

Post by User_8341 » Sun Aug 25, 2024 2:41 pm

Thanks for the reply, I searched a bit and it looks like to get split tunneling working, I have to do something in the server config. And, I'm guessing then, that split tunneling won't be possible if I am connecting to a public Vpn Gate server?

solo
Posts: 1614
Joined: Sun Feb 14, 2021 10:31 am

Re: Linux vpnclient Config File Location

Post by solo » Mon Aug 26, 2024 11:21 pm

In this case, don't make it the default gateway and do "bind to a specific interface".

User_8341
Posts: 7
Joined: Mon Aug 12, 2024 8:50 am

Re: Linux vpnclient Config File Location

Post by User_8341 » Thu Sep 05, 2024 5:52 pm

If I understand correctly, I should connect to the VPN using the vpn client.
Then check if IP forward is enabled (It was not), and enable it with:

Code: Select all

echo 1 > /proc/sys/net/ipv4/ip_forward
Get an IP address with:

Code: Select all

sudo dhclient vpn_vpn
Add a route to the vpn (the ip address of the server was obtained with the nslookup command)

Code: Select all

sudo ip route add (IP address of the vpn server)/32 via (previous gateway ip address)
After that I leave the old default route in place, and bind the program to the vpn interface.

The problem is that the program doesn't have any connection to the internet, not through the vpn, not through the normal network.

I even tried binding the program to the vpn's ip address and it also didn't work.

I used this guide for configuring the vpn client https://www.cactusvpn.com/tutorials/how ... -on-linux/

Thank you in advance.

solo
Posts: 1614
Joined: Sun Feb 14, 2021 10:31 am

Re: Linux vpnclient Config File Location

Post by solo » Fri Sep 06, 2024 12:27 am

- the vpn client connection sequence is incorrect, we've discussed it before https://www.vpnusers.com/viewtopic.php? ... 40#p102234

- the binding issue belongs to a Linux forum but here is a hint https://superuser.com/questions/241178/ ... -processes

Post Reply