fork download
  1. #delete all rules
  2. sudo iptables -F
  3. sudo iptables -t nat -F
  4. sudo iptables -t mangle -F
  5. sudo iptables -X
  6.  
  7. # Enable routing.
  8. echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
  9.  
  10. # Masquerade.
  11. sudo iptables -t nat -A POSTROUTING -j MASQUERADE
  12.  
  13. # Transparent proxying
  14. sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty