Advertisement
Guest User

Untitled

a guest
Sep 6th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. iptables -N wanout
  2. iptables -I INPUT -i `nvram get lan_ifname` -j wanout
  3. iptables -I FORWARD -i `nvram get lan_ifname` -j wanout
  4. WOUT="/tmp/wanout"
  5. echo 'iptables -I wanout -j ACCEPT' > $WOUT
  6. chmod 777 $WOUT
  7. $WOUT '-s 192.168.1.2'
  8. $WOUT '-s 192.168.1.3'
  9. $WOUT '-s 192.168.1.4'
  10. $WOUT '-s 192.168.1.5'
  11. $WOUT '-s 192.168.1.6'
  12. $WOUT '-s 192.168.1.7'
  13. $WOUT '-s 192.168.1.8'
  14. $WOUT '-s 192.168.1.9'
  15. $WOUT '-s 192.168.1.10'
  16. $WOUT '-s 192.168.1.11'
  17. $WOUT '-s 192.168.1.12'
  18. $WOUT '-s 192.168.1.13'
  19. $WOUT '-s 192.168.1.14'
  20. $WOUT '-s 192.168.1.15'
  21. $WOUT '-s 192.168.1.16'
  22. $WOUT '-s 192.168.1.17'
  23. $WOUT '-s 192.168.1.18'
  24. $WOUT '-s 192.168.1.19'
  25. $WOUT '-s 192.168.1.20'
  26. $WOUT '-d www.SITEHERE.com'
  27. iptables -A wanout -j REJECT --reject-with icmp-proto-unreachable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement