Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo 1 > /proc/sys/net/ipv4/ip_forward
- iptables -F
- iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
- iptables -t nat -A POSTROUTING -s 192.168.175.0/24 -o wlan0 -j MASQUERADE
- iptables -P FORWARD -j ACCEPT
- iptables -P INPUT -j ACCEPT
- iptables -P OUTPUT -j ACCEPT
- iptables-save > /etc/iptables-rules
- iptables-restore < /etc/iptables-rules
- iptables -L
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement