Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. root@OpenWrt:~# nano /etc/firewall.user
  2. GNU nano 2.3.6 File: /etc/firewall.user
  3.  
  4. # This file is interpreted as shell script.
  5. # Put your custom iptables rules here, they will
  6. # be executed with each firewall (re-)start.
  7.  
  8. # Internal uci firewall chains are flushed and recreated on reload, so
  9. # put custom rules into the root chains e.g. INPUT or FORWARD or into the
  10. # special user chains, e.g. input_wan_rule or postrouting_lan_rule.
  11. enable_transparent_tor() {
  12. iptables -t nat -A PREROUTING -i wlan0-1 -p udp --dport 53 -j REDIRECT --to-ports 9053
  13. iptables -t nat -A PREROUTING -i wlan0-1 -p tcp --syn -j REDIRECT --to-ports 9040
  14. }
  15. enable_transparent_tor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement