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
Related Articles
- Managing Linux Firewalls with Iptables (brighthub.com)
- Making Squid Box Act as a GateWay Script (hackerz4u.com)
- Linux iptables an Introduction (brighthub.com)
- Port 80 to Port 8080 (draconianoverlord.com)
- Securing your ssh server (rackerhacker.com)
- Automatically connecting to a specific website on a port other than 80 (ask.metafilter.com)
- Can’t test my webrole on the App Fabric on different port than 80 (social.msdn.microsoft.com)
- Hijacking HTTP traffic on your home subnet using ARP and iptables (ksplice.com)
- 2008 R2 Terminal Server (RDS) wont enable drive redirection (edugeek.net)
- Best practices: iptables (building43.com)
- Introduction to iptables (ghacks.net)
Advertisements
its bullshit ! its not complete..
LikeLike
See the code from below:
iptables -t nat -I PREROUTING –src 0/0 –dst YOUR.IP.ADDRESS.HERE -p tcp –dport 80 -j REDIRECT –to-ports 8080
LikeLike
very nice!!!
LikeLike