LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-20-2002, 03:22 PM   #1
goatr
LQ Newbie
 
Registered: Jan 2002
Location: Utah
Distribution: Linux RH 7.2
Posts: 2

Rep: Reputation: 0
Linux RH 7.2 Gateway Setup


Hi All,
I'm putting together a Linux RH 7.2 Gateway Server. Here is the install that I'm using:

* Install the OS (RH 7.2)
* Set up Cards
192.168.1.150 255.255.255.0
166.70.X.150 255.255.255.128
* Update /etc/hosts
127.0.0.1 spain localhost.localdomain localhost
192.168.1.150 Interior
166.70.X.150 Exterior
198.60.X.2 DNS_1
198.60.X.22 DNS_2
* Add the Gateway to /etc/rc.d/rc.local
route add default gw 166.70.X.129
* Add Packet Forwarding to /etc/rc.d/rc.local
echo 1 > /proc/sys/net/ipv4/ip_forward
* Add the following line to /etc/hosts.allow
ALL:ALL
* Add the following line to /etc/host.conf
multi on

With these setting my server can ping all of the interior clients of my network, and my interior network can ping my server. My server can also ping all exterior clients, my interior clients can ping my exterior NIC card but nothing on the outside of my card.

Thankx for your help in advance,
Goatr Gerdes
jag@nffs.com
Network Admin
 
Old 01-20-2002, 08:41 PM   #2
penseur2
Member
 
Registered: Jan 2002
Location: Chennai India
Distribution: Red Hat
Posts: 42

Rep: Reputation: 15
routing

hi,

i 've had this prob.
see if you boot up network scripts , like
/etc/sysconfig/network-scripts/ifcfg-eth*
dont have a gateway set .
in any case do
route del default
and then do
route add default gw xx.xx.xx.xx

also diasble the RH bootup firewall , namely ipchains and iptables from
/usr/sbin/setup ---> system services.


all the best
 
Old 01-20-2002, 08:57 PM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
your lan ip numbers are not routable on the internet,

without valid internet ip numbers for each machine you need to use ipmasq

this is the minimum firewall and ip_forward setting for it to work...

ipchains -P forward DENY
ipchains -A forward -i eth0 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward

Last edited by DavidPhillips; 01-20-2002 at 09:05 PM.
 
Old 01-20-2002, 08:57 PM   #4
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
You should see the ipchains Howto and check out the security forum for more firewall settings

Last edited by DavidPhillips; 01-20-2002 at 09:05 PM.
 
Old 01-23-2002, 12:17 PM   #5
goatr
LQ Newbie
 
Registered: Jan 2002
Location: Utah
Distribution: Linux RH 7.2
Posts: 2

Original Poster
Rep: Reputation: 0
Hi All,
Thankx to every how has been helping me out, I just the server set up and running. I didn't have Ip Masquerading on. Once I added an ipchains rule for it, it just started working.
Goatr
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
NAT/Gateway setup cflyguy Linux - Networking 3 08-11-2005 11:47 PM
Two gateway setup eqxro Linux - Networking 4 12-07-2004 01:32 AM
Setup linux gateway + firewall (redhat 9.0) mirt Linux - Networking 4 04-27-2004 01:46 AM
Help to setup linux box as a mailserver and internet gateway - No bells and whistles. mantis3dfx Linux - Newbie 6 02-20-2004 04:40 PM
Gateway setup help! frost33 Linux - Networking 4 05-04-2001 07:55 PM


All times are GMT -5. The time now is 05:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration