Hi Gaétan -
On Sun, 16 May 2004 14:04:53 -0400, Gaétan Martineau
<(E-Mail Removed)> wrote:
>A) One would need a third NIC card on the default gw, right? (as eth2,
>since eth0 is ADSL, eth1 is internal) If so, is an IP as 192.168.1.1 ok
>for that card? I would need to set up a routing table on the gw. What
>should it look like?
Yes, you will need a third NIC for the DMZ on the gateway. You need
to make sure your LAN and DMZ are different subnets. If your LAN is
192.168.0.0/24 (GW IP probably 192.168.0.1), then 192.168.1.0/24 with
the GW IP of 192.168.1.1 is fine.
Starting the interface should create the route needed for that card,
since it will only be handling DMZ traffic.
>B) How can I redirect data from the net (mails, webmail requests, from
>the gw to the mail server) I have to change the iptable script, correct?
>Anything else?
You will need PREROUTING rules in the nat table to DNAT to the DMZ
address of the server(s).
You will need FORWARD rules in the filter table to ACCEPT that
traffic. Two rules per forwarded port, one with that port as the
destination port to ACCEPT the packets going into the DMZ, one with
that port as the source port to ACCEPT the packets coming out of the
DMZ.
>I plan to offer web pages on the gw soon. I think the system is
>pretty secure.
Once your DMZ is in place, I recommend that you move the webserver in
there. IMO a gateway firewall/router should do only that. The only
time my firewall/router box has a webserver running is when I have the
webserver in the DMZ down for more than just a few minutes (which is
about never). In that case the firewall/router just serves up a page
saying that the website is down, try again later.
--
Ken
http://www.ke9nr.net/