cryzed/vpn-whitelist

error: argument action: invalid InterfaceAction value: 'vpn-up'

protist opened this issue · 0 comments

Hi, I can't get this to work. I installed vpn-whitelist-git from the AUR, put whatismyipaddress.com in /etc/vpn-whitelist.conf, and tried to connect to my VPN via NetworkManager. In journalctl:

May 18 17:40:48 hostname nm-dispatcher[100481]: usage: vpn-whitelist.NetworkManager-dispatcher [-h] interface action
May 18 17:40:48 hostname nm-dispatcher[100481]: vpn-whitelist.NetworkManager-dispatcher: error: argument action: invalid InterfaceAction value: 'vpn-up'
May 18 17:40:48 hostname nm-dispatcher[100474]: req:3 'vpn-up' [tun0], "/etc/NetworkManager/dispatcher.d/vpn-whitelist.NetworkManager-dispatcher": complete: failed with Script '/etc/NetworkManager/dispatcher.d/vpn-whitelist.NetworkManager-dispatcher' exited with error status 2.
May 18 17:40:48 hostname NetworkManager[99506]: <warn>  [1621323648.8983] dispatcher: (17) /etc/NetworkManager/dispatcher.d/vpn-whitelist.NetworkManager-dispatcher failed (failed): Script '/etc/NetworkManager/dispatcher.d/vpn-whitelist.NetworkManager-dispatcher' exited with error status 2.
May 18 17:40:48 hostname nm-dispatcher[100483]: whatismyipaddress.com:

For good measure I tried starting the systemd vpn-whitelist.service, but that also failed with the following in journalctl when I tried to connect the VPN:

May 18 18:03:04 hostname vpn-whitelist[106766]: whatismyipaddress.com:
May 18 18:03:04 hostname vpn-whitelist[107038]: RTNETLINK answers: File exists
May 18 18:03:04 hostname vpn-whitelist[107051]: RTNETLINK answers: File exists
May 18 18:03:04 hostname vpn-whitelist[107065]: Error: inet6 address is expected rather than "10.5.0.1".
May 18 18:03:04 hostname vpn-whitelist[107078]: Error: inet6 address is expected rather than "10.5.0.1".

or disconnect:

May 18 18:03:13 hostname vpn-whitelist[106766]: whatismyipaddress.com:
May 18 18:03:13 hostname vpn-whitelist[107200]: RTNETLINK answers: No such process
May 18 18:03:13 hostname vpn-whitelist[107213]: RTNETLINK answers: No such process
May 18 18:03:13 hostname vpn-whitelist[107226]: Error: inet6 address is expected rather than "192.168.1.100".
May 18 18:03:13 hostname vpn-whitelist[107239]: Error: inet6 address is expected rather than "192.168.1.100".