Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. root@xxx:~# cat /proc/sys/net/ipv4/ip_forward
  2. 1
  3.  
  4. root@xxx:~# netstat -tapln | grep :4545 | grep LISTEN
  5. tcp 0 0 127.0.0.1:4545 0.0.0.0:*
  6.  
  7. root@xxx:~# curl -x socks5h://127.0.0.1:4545 ifconfig.co
  8. 1.2.3.4
  9.  
  10. iptables -P FORWARD ACCEPT
  11. iptables -t nat -A POSTROUTING -j MASQUERADE
  12. iptables -t nat -A PREROUTING -p tcp -j REDIRECT --to-ports 4545
  13.  
  14. root@xxx:~# curl ifconfig.co
  15. 9.8.7.6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement