Networking Forums

Networking Forums > Computer Networking > Linux Networking > Redhat 9 & iptable and adsl modem setup question

Reply
Thread Tools Display Modes

Redhat 9 & iptable and adsl modem setup question

 
 
i arit
Guest
Posts: n/a

 
      10-28-2003, 12:31 PM
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
 
Reply With Quote
 
 
 
 
Fredric
Guest
Posts: n/a

 
      11-02-2003, 01:17 AM
Hi
I can access my web-server from my windows client.
(http://<web-server-name>/ or just <web-server-name>)
I don't really know the difference between mine and your setup, but I
have a few more lines in my firewall...

Do you forward request from internal port 80 to external port 80?

/Fredric



(E-Mail Removed) (i arit) wrote in message news:<(E-Mail Removed) om>...
> 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

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat firewall (ES4) iptable configuration help tractng@gmail.com Linux Networking 0 07-17-2007 05:02 PM
Redhat firewall (ES4) iptable configuration help tractng@gmail.com Linux Networking 0 07-17-2007 05:02 PM
Redhat firewall (ES4) iptable configuration help tractng@gmail.com Linux Networking 0 07-17-2007 05:02 PM
iptable question Rob Simac Linux Networking 1 09-11-2003 09:46 PM
Is there any change in "iptable" from redhat linux 7.3 to 9? NZ Linux Networking 1 09-01-2003 07:24 AM



1 2 3 4 5 6 7 8 9 10 11