Computing.Net > Forums > Linux > Configuring RedHat 7.2 for Linux Gateway

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Configuring RedHat 7.2 for Linux Gateway

Reply to Message Icon

Name: Johny Makh
Date: January 7, 2002 at 18:10:09 Pacific
Comment:

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 Gateway

Windows XP 192.168.0.3
255.x.x.x
192.168.0.1 Default Gateway

1. 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.conf

It still does not work. Can someone please please please help me.



Sponsored Link
Ads by Google

Response Number 1
Name: Dave
Date: January 7, 2002 at 20:59:58 Pacific
Reply:

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


0

Response Number 2
Name: Johny Makh
Date: January 9, 2002 at 05:21:35 Pacific
Reply:

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



0

Response Number 3
Name: 8e88 from Thailand
Date: January 13, 2002 at 20:20:05 Pacific
Reply:

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!


0

Response Number 4
Name: Fernando Paris
Date: March 2, 2002 at 13:15:59 Pacific
Reply:

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


0

Response Number 5
Name: isac
Date: March 18, 2002 at 12:11:05 Pacific
Reply:

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


0

Related Posts

See More



Response Number 6
Name: Mauricio Roman
Date: April 21, 2002 at 16:55:55 Pacific
Reply:

I had the same problem, and tried the command 'modprobe ipchains' and it worked for me as well!


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Configuring RedHat 7.2 for Linux Gateway

REDHAT 7.2, CANT TELNET TO IP ADDRESS www.computing.net/answers/linux/redhat-72-cant-telnet-to-ip-address/9642.html

Configuring Telnet in Redhat 7.2 www.computing.net/answers/linux/configuring-telnet-in-redhat-72/7235.html

dhcp on redhat 7.2 www.computing.net/answers/linux/dhcp-on-redhat-72/14031.html