fff-ab-01/etc/openvpn/mullvad-up
2017-11-18 21:02:22 +01:00

6 lines
335 B
Bash
Executable File

#!/bin/bash
logger -t OPENVPN VPN Gateway: /sbin/ip route add default via ${route_vpn_gateway} dev ${dev} table fff
#/sbin/ip route add default via ${route_vpn_gateway} dev ${dev} table fff
/sbin/ip route replace default via ${route_vpn_gateway} dev ${dev} proto static table fff
iptables -t nat -A POSTROUTING -o ${dev} -j MASQUERADE