You are not logged in.

#1 2024-04-10 06:52:11

zloutek1
Member
Registered: 2024-04-10
Posts: 1

Internet access with VPN enabled

Hello,

for my work I need to use a Cisco VPN, which upon connecting disables internet and allows only company endpoints.
To enable internet again I need to setup a proxy through which it will be enabled.
The company guide only supports Windows so they didn't know how to help much.

I have not found a way to set up a proxy via the Cisco clinet, but I managed to setup the VPN connection into NetworkManager.
I have noticed (in nm-applet), that there is a proxy tab with PAC file, so I tried a simple script

function FindProxyForURL(url, host) {
  if (shExpMatch(url, "*.example.com"))
        return "DIRECT";

  return "PROXY x.x.x.x:8080";
}

From what I read on the wiki, the NetworkManager does not handle proxy settings and proxydriver only works on KDE or GNOME

I'm not sure if I should attempt to install one of the clients from https://wiki.archlinux.org/title/Proxy_server that would enable proxy when the VPN is enabled
I guess I could configure a global proxy (somehow), but it would be best if it was used only when the VPN was active.

I would appreciate any help or nudge in the right direction, since network configuration is quite new to me.

Thank you

Offline

#2 2024-04-10 20:47:00

impossibleveins23
Member
From: Israel
Registered: 2022-06-18
Posts: 171

Re: Internet access with VPN enabled

I'm reading you want to perform action after VPN connects and after it disconnects.
Maybe this can give some direction.

If you just need internet, perhaps you can just make sure your default gateway have higher priority than the VPN routes.


* Good formatted problem description will cause good and quick solution smile
* Please don't forget to mark as [SOLVED].

Offline

Board footer

Powered by FluxBB