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.
Linux vpnclient Config File Location
-
- Posts: 1614
- Joined: Sun Feb 14, 2021 10:31 am
Re: Linux vpnclient Config File Location
/usr/local/vpnclient/vpn_client.config
-
- Posts: 7
- Joined: Mon Aug 12, 2024 8:50 am
Re: Linux vpnclient Config File Location
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?
-
- Posts: 1614
- Joined: Sun Feb 14, 2021 10:31 am
Re: Linux vpnclient Config File Location
You need a split tunnel.
-
- Posts: 7
- Joined: Mon Aug 12, 2024 8:50 am
Re: Linux vpnclient Config File Location
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?
-
- Posts: 1614
- Joined: Sun Feb 14, 2021 10:31 am
Re: Linux vpnclient Config File Location
In this case, don't make it the default gateway and do "bind to a specific interface".
-
- Posts: 7
- Joined: Mon Aug 12, 2024 8:50 am
Re: Linux vpnclient Config File Location
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:
Get an IP address with:
Add a route to the vpn (the ip address of the server was obtained with the nslookup command)
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.
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
Code: Select all
sudo dhclient vpn_vpn
Code: Select all
sudo ip route add (IP address of the vpn server)/32 via (previous gateway ip address)
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.
-
- Posts: 1614
- Joined: Sun Feb 14, 2021 10:31 am
Re: Linux vpnclient Config File Location
- 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
- the binding issue belongs to a Linux forum but here is a hint https://superuser.com/questions/241178/ ... -processes