fff-ab-01/etc/openvpn/mullvad-up

6 lines
335 B
Plaintext
Raw Permalink Normal View History

2017-11-18 21:02:22 +01:00
#!/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