Advertisement
Guest User

Untitled

a guest
Feb 12th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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-rules
  12. iptables-restore < /etc/iptables-rules
  13. iptables -L
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement