6 lines
335 B
Plaintext
6 lines
335 B
Plaintext
|
#!/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
|