Wednesday, December 27, 2017

Redirecting Traffic from 80 to 8080





$ sudo iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
$ sudo iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT
$ sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080


2 comments:

  1. Well explained thanks for sharing your valuable blog its very good.
    Data Destruction
     

    ReplyDelete
  2. As we know, Big data solutions developer is the future of the industries these days, this article helps me to figure out which language I need to learn to pursue the future in this field.

    ReplyDelete