Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

routing my internal network to the Internet

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm running RH 7.2 on a server (192.168.1.1) and I want to
connect to the Internet,with an ISDN modem, and to share the connection with the other workstation on my private network(192.168.1.X).Please can anyone explain how?
 
You need to set your computer up for IP Masquerading. Please read the HOWTO, and then post any trouble you are having. RH 7.2 still uses IPCHAINS, so pay attention to that in the FAQ (versus IPTABLES). Of course, you can choose which ever one suits you best.

Bruce Garlock
bruceg@tiac.net
 
Hi,



You should be able to just put the following lines in /etc/rc.d/rc.local .



echo 1 >/proc/sys/net/ipv4/ip_forward

/sbin/modprobe ipchains

/sbin/ipchains -P forward DENY

/sbin/ipchains -A forward -i ippp0 -s 192.168.1.0/24 -j MASQ





I'm assuming you have not activated iptables for firewalling - the redhat 7.2 default still seems to be the older ipchains.



The clients would have their default gw set as the IP of the linux server.




Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top