Hi There,
We have a Linux box (Redhat 9) that connects to adsl modem. Our
Windows clients
use linux as a gateway and router. I applied the following iptable
commands, now looks like everything works, but, I am,also, using linux
box as a web server, and we can't browse the site hosted on our linux
box thru our local network, where as any body from the net can browse.
I guess I am missing some extra commands to tell the linux box let the
local network clients get into web server.
Here is the network;
(xx.xx.xx.xx)(our static ip)
[ADSL modem]
(192.168.1.1)
|
|
(192.168.1.2)
[Linux RH9]
(192.168.0.xxx)---------------------------
|_ windows clients
|_ 192.168.0.xxx
|_ ..
Here is the commands;
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A INPUT -i lo -j ACCEPT
/sbin/iptables -A INPUT -j LOG --log-level 4 --log-prefix "ATTACK"
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE
How can tell Linux to let local 192.168.0.xx network access linux RH9
web server
I guess when I enter our web site name like xxxxx.com,
name server gets xx.xx.xx.xx, our static ip, and local clients can't
access this ip.
I appreciate any help.
ismail