What's new

iptables redirect

Txdk

Regular Contributor
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
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top