You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6 lines
259 B
6 lines
259 B
4 years ago
|
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o $NIC -j MASQUERADE
|
||
|
iptables -A INPUT -i tun0 -j ACCEPT
|
||
|
iptables -A FORWARD -i $NIC -o tun0 -j ACCEPT
|
||
|
iptables -A FORWARD -i tun0 -o $NIC -j ACCEPT
|
||
|
iptables -A INPUT -i $NIC -p $PROTOCOL --dport $PORT -j ACCEPT
|