What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

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
 

Similar threads

Latest threads

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