RE: IPTABLES and WEB
Here is the page I got started at:
But in any event, here's the skinny on it:
iptables -t nat -A PREROUTING -p TCP -i $INET_IFACE -d $HTTP_IP --dport
-j DNAT --to-destination $DMZ_HTTP_IP
iptables -A FORWARD -p TCP -i $INET_IFACE -o $DMZ_IFACE -d $DMZ_HTTP_IP
--dport 80 -j allowed
You'll obviously need to change $INET_IFACE to whatever eth? Is
connected to the internet and $DMZ_IFACE to whatever eth? is connected
to the LAN segment your webserver is on. You'll also need to change the
$HTTP_IP and $DMZ_HTTP_IP to the IP of your webserver.
"exitus acta probat"
"fide, sed cui vide"
From: Luc MAIGNAN [mailto:email@example.com]
Sent: Saturday, December 01, 2001 7:10 AM
Subject: IPTABLES and WEB
I have a debian box configured as router which masquerades requestes
network to the internet. Now, I want to redirect http requests which
on my router to another computer on my network. Which syntax of iptables
should I use to do this ?
To UNSUBSCRIBE, email to firstname.lastname@example.org
with a subject of "unsubscribe". Trouble? Contact