GlobalProtect-openconnect icon indicating copy to clipboard operation
GlobalProtect-openconnect copied to clipboard

anyway to disable tunnel?

Open linuxbioinfoguy opened this issue 5 months ago • 1 comments

Is there any way from the gui or commandline to disable the tunneling? the vpn is connect with tunnel but seems the split tunneling is not working good in linux (that is the word from IT), get some trouble in connecting some specific server.

Thanks

linuxbioinfoguy avatar May 30 '25 16:05 linuxbioinfoguy

Looks like it cannot be disabled. But you can try using the https://github.com/dlenski/vpn-slice as the script option to see if it could solve your problem.

For example:

$ sudo gpclient connect gateway.bigcorp.com  \
    -s 'vpn-slice 192.168.1.0/24 hostname1 alias2=alias2.bigcorp.com=192.168.1.43'
$ cat /etc/hosts
...
192.168.1.1 dns0.tun0					# vpn-slice-tun0 AUTOCREATED
192.168.1.2 dns1.tun0					# vpn-slice-tun0 AUTOCREATED
192.168.1.57 hostname1 hostname1.bigcorp.com		# vpn-slice-tun0 AUTOCREATED
192.168.1.43 alias2 alias2.bigcorp.com		# vpn-slice-tun0 AUTOCREATED

yuezk avatar Jun 01 '25 03:06 yuezk