SHOW:
|
|
- or go back to the newest paste.
1 | #!/bin/bash | |
2 | echo 1 > /proc/sys/net/ipv4/ip_forward | |
3 | iptables -F | |
4 | iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT | |
5 | iptables -t nat -A POSTROUTING -s 192.168.175.0/24 -o wlan0 -j MASQUERADE | |
6 | ||
7 | iptables -P FORWARD -j ACCEPT | |
8 | iptables -P INPUT -j ACCEPT | |
9 | iptables -P OUTPUT -j ACCEPT | |
10 | ||
11 | - | iptables-save > /etc/iptables.up.rules |
11 | + | iptables-save > /etc/iptables-rules |
12 | iptables-restore < /etc/iptables-rules | |
13 | iptables -L |