Guest User

Untitled

a guest
Jan 4th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. forward .example.com proxy-a
  2. forward .askubuntu.com proxy-b
  3. forward :443 .
  4.  
  5. redsocks {
  6. local_ip = 127.0.0.1; ip = 127.0.0.1; type = socks5;
  7. local_port = 11081;
  8. port = 1081;
  9. }
  10. redsocks {
  11. local_ip = 127.0.0.1; ip = 127.0.0.1; type = socks5;
  12. local_port = 11082;
  13. port = 1082;
  14. }
  15.  
  16. iptables -t nat -A REDSOCKS -d 192.168.220.0/23 -p tcp -j REDIRECT --to-ports 11082
  17.  
  18. iptables -t nat -A REDSOCKS -d 192.168.234.0/23 -p tcp -j REDIRECT --to-ports 11081
  19.  
  20. iptables -t nat -A OUTPUT -p tcp -m owner --uid-owner luser -j REDSOCKS
Add Comment
Please, Sign In to add comment