ubin/nat-start.sh

7 lines
126 B
Bash
Raw Normal View History

2020-03-06 14:58:17 +00:00
#!/bin/bash
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -P FORWARD ACCEPT
sysctl -w net.ipv4.ip_forward=1