Port redirection with iptables from port 80 to 8080

Use this on the command promt

iptables -t nat -I PREROUTING --src 0/0 --dst YOUR.IP.ADDRESS.HERE -p tcp --dport 80 -j REDIRECT --to-ports 8080
Advertisements
Port redirection with iptables from port 80 to 8080

3 thoughts on “Port redirection with iptables from port 80 to 8080

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s