Closed sabeelwani closed 1 year ago
Hi, it is not very clear what you meant as "but all my traffic does not route through the VPN" and "I tried to route the traffic through the IP route".
On first glance, the script seems to be working as intended and is well tested in Ubuntu 22.04 and variants.
Routing/DNS issues can be complex, and involve proxies too. Would you be able to detail better what is happening, and what is expected? (No name resolution happening? no external/Internet sites opening, routing table supplied and changes?...)
The issue I had was, when I connect to the VPN and I add the VPN interface as the default route using IP route command, the internet stops working.
I figured out that it was a problem with incorrect routes.
These are the commands for correct routes:
sudo ip route add 147.232.0.0/16 via 192.168.31.1 dev wlp2s0
sudo ip route del default
sudo ip route add 0.0.0.0/0 dev snxtun
Thank You 👍🏻 .
That usually is made by design for security reasons, it is the difference between a full tunnel VPN (no Internet access) versus a split tunnel VPN.
Please see the "Split tunneling" topic at the project/README page, it might be of help.
Regards
Firstly, I would like to thank you for your work with this script. I am using Ubuntu 22.04.1 and I successfully managed to connect to the university checkpoint VPN but all my traffic does not route through the VPN. I tried to route the traffic through the IP route command but after that, everything stops working.
This is the IP route table after connecting:
The vpn works fine when i connect using windows or android clients.