Advertisement
Guest User

iptables

a guest
Jun 28th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. sudo iptables -t nat -N REDSOCKS
  2. sudo iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
  3. sudo iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN
  4. sudo iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN
  5. sudo iptables -t nat -A REDSOCKS -p tcp -o eth0 -j DNAT --to 127.0.0.1:1081
  6. sudo iptables -t nat -A OUTPUT -p tcp -j REDSOCKS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement