Replace a private IP adresse of my WAN firewall interface by a public IP
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. My iptables script is the same as the one which is working with private IP. Because I can't access to the ineternet from my LAN but only from the firewall I think it's perhaps a route problem, but I'm not sure. So now I come back to my old configuration until I ask why it was not working.
Have you got any idea please ?
Thanks
Fred99