Running scripts



I am using a VPN provider with NetworkManager. I am trying to make a "killswitch" script that runs "/sbin/iptables -A OUTPUT -m owner --uid-owner mtl ! -o tun0 -j DROP" when VPN connection is made and "iptables -F; iptables -X; iptables -Z" when I disconnect the VPN. My username is mtl. Is this possible any way with NetworkManager?

--
Mika Leppänen  --  mika leppanen iki fi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]