SHARE
TWEET

Untitled

a guest Aug 26th, 2019 774 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
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