Advertisement
Guest User

Untitled

a guest
Aug 26th, 2019
1,064
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement