daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top