[wplug] Quick iptables rule question

Eric Cooper ecc at cmu.edu
Mon Oct 19 16:11:07 EDT 2009


On Mon, Oct 19, 2009 at 03:11:12PM -0400, scoob8000 wrote:
> I need help creating a rule to redirect all traffic destined for
> port 80 to particular IP.

This hasn't been tested, but is based on a rule I use to enable
torrents through my firewall.  *BUT* I use a routing, not bridging,
firewall, so YMMV.

iptables --table nat --insert PREROUTING -p tcp --dport 80 -j DNAT --to-destination your-particular-ip



More information about the wplug mailing list