Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Linux Red Hat 7.2
etho 64.x.x.x Static IP Address
255.x.x.252
64.x.x.10 Default Gateway
eth1 192.168.0.1 IP
255.255.255. Netmask
192.168.0.1 Gateway
DSL is working fine on the redhat linux box.Red Linux Machine # 2
192.168.0.2
255.x.x.x
192.168.0.1 Default GatewayWindows XP 192.168.0.3
255.x.x.x
192.168.0.1 Default Gateway1. I added the ip of second linux box and windows xp machine in the /etc/hosts file.
2. In the /etc/sysctl.conf file I added the line
net.ipv4.ip_forward = 1
3. In the /etc/sysconfig/ipchains file I added the following line:
-P forward DENY
-A forward -i ppp0 -s 192.168.0.0/255.255.255.0 - j MASQ
4. I rebooted the linux machine
5. I added the DNS entires in the linux client machine in the /etc/resolv.confIt still does not work. Can someone please please please help me.

If I'm not mistaken... I believe Redhat 7.2 uses a 2.4 kernel, so I suggest using iptables instead of ipchains. And if you do decide to use iptables, then I also suggest using gSheild, it's a very nice firewall program that will also setup router/gateway stuff. It has a very well comment conf file. While technically, I think it was designed with Slackware in mind, I can't find any reason for it not to work with redhat. SO... check it out.
http://muse.linuxmafia.org/gshield.html

how does gshield work? do i still need to download iptables 1.2.7?
How to configure gshield i am very new at red hat linux 7.2

I have got a same problem with Johny Makh.
But I'm sure that ipchains don't work with RedHat7.2 becuase It's show me an error message when I'm using "ipchains" as "ipchains: protocol not available" and
"ipchains: Incompatible with this kernel"
so I find another way to use RH7.2 to share internet for win98.
So If you can fix this problem please tell me!
& I want to know how to use & setup IPTABLES & gshield?
Thank you!

Hi,
I'm not sure if i'm right, but is the eth0
directly conected to the internet?, then
the masquerading should be with eth0, not
with ppp0.
try this #ipchains -A forward -s
192.168.0.0/0 -d 0.0.0.0/0 -j MASQ
#service ipchains save
for me it's working. assure yourself that
you don't have iptables and ipchains at the
same time. You can use the one you like the
most, but not both at the same time :-).good luck,
Fernando

Try loading ipchains properly before executing the the ipchains masquerading command.
Load ipchains by typing in 'modprobe ipchains'.
Worked for me!
Best of luck!
-Isac Niklasson
Simrishamn, Sweden

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |