Quantcast
Channel: SmallNetBuilder Forums
Viewing all articles
Browse latest Browse all 6885

iptables redirect

$
0
0
is this the correct way to redirect LAN traffic on port 80 to another ip and port

Code:

iptables -t nat -A PREROUTING -m iprange --src-range 192.168.1.2-192.168.1.254 -p tcp -m tcp --dport 80 -j REDIRECT -d --destination 192.168.1.4:8118

Viewing all articles
Browse latest Browse all 6885

Trending Articles