On 23 Jul 2004 15:21:41 -0700, Fred99 <(E-Mail Removed)> wrote:
> Hi all,
>
> I've got a big problem with my firewall which have three ethernet
> cards.
> eth0 : 172.16.2.1/255.255.255.0 ---->LAN
> eth1: 192.168.2.1/255.255.255.0----->DMZ
> eth2: 192.168.3.1/255.255.255.0-----> WAN
>
> This firewall is connected to a router which have Wan IP 192.168.3.254
> and a public IP for WAN : 62.160.X.X/255.255.255.255
> This configurations is working !!!
>
> I have tried to replace the Wan IP of my firewall by a public IP :
> 62.160.X.Y
> # ifconfig eth2 62.160.X.Y netmask 255.255.255.248
> # route add default gw 62.160.X.Z (which is new Ip of the router (WAN
> and LAN interfaces of the router are the same)
>
> I can access to the internet from my firewall but unfortunately not
> from my LAN.
> I can ping ping my firewall and my router from my lan.
> So now I come back to my old configuration until I find why it was not
> working.
> Have you got any idea please ?
Have you enable masquerading, so any traffic from eth0 out eth2 will be
masqueraded as eth2 IP? The internet is not going to know how to route
replies to private 172.16.x.x IPs.
Also if you later configure block of public IPs on DMZ eth1, you would
need to configure eth1 with 255.255.255.248 netmask, and eth2 would need:
ifconfig eth2 62.160.X.Y netmask 255.255.255.255 broadcast 62.160.X.Y
route add -host 62.160.X.Z dev eth2
route add default gw 62.160.X.Z
Then your system will know how to find gateway (and its own IP) on eth2,
but will route all other IPs in that block to eth1.
Not sure which Linux you are using, but SuSE has SuSEfirewall2 that is
very easy to configure 3 interfaces for public, DMZ (other public IPs),
and masqueraded LAN, by editing a few variables.
--
David Efflandt - All spam ignored
http://www.de-srv.com/