6 lines
335 B
Bash
Executable File
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
|