Guest User

Untitled

a guest
Aug 26th, 2019
795
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 --permanent
  2. iptables v1.4.21: unknown option "--permanent"
  3. $ sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
  4. $ curl localhost
  5. curl: (7) Failed connect to localhost:80; Connection refused
  6. $ curl localhost:8080
  7. <html>...</html>
RAW Paste Data