hello one and all,
i have a simple concept and i am not sure how to do it in linux. i have a linux
redhad 6.2 box with two network cards. eth0 is for internal local LAN computers
and eth1 is for internet public WAN computer. i have 5 public ip addresses and
one of them is assigned to the eth1 interface. i currently have 192.168.0.2
assigned on the eth0 internal LAN interface.
this is what i would like to do. keep the internet cable plugged into eth1 for
firewalling and security, perhaps via ipchains and forwarding and masquerading.
attempt to keep the private addresses for the 3 normal computers on the LAN. i
have the routing tables and ipchains working great and the three internal LAN,
the linux box, and apache on the linux box are working great.
but i have a fourth internal LAN computer, that needs to also act as a public
web server also. yes, apache is running on eth1 and it is fine, but i also need
to run ms IIS server on this one internal LAN computer, and allow tcp www
traffic to it and allow the results to get back out. i would also like to allow
this fourth computer to browse or email the internet as the other three internal
LAN computers do.
so how should i configure this fourth computer, with a private IP address and
have the linux box route/forward somehow? or, with a public IP address and have
the linxu box route/forward somehow? if it is a public IP assignment then how
would i configure ifcfg-eth0, routing, and ipchains properly to allow the
internet www requests and responses to pass through and allow it to allow normal
browsing and email as if a normal workstation?
perhaps there is a HOWTO on this scenario? i did see a serious ipchains
example, but it had three interfaces, internet (bad), dmz, and internal (good).
i only have the two network interfaces.
thank you in advance and have a nice day.
lucas