LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2005, 09:55 AM   #1
jhar
LQ Newbie
 
Registered: Jan 2005
Location: Philippines
Posts: 6

Rep: Reputation: 0
configuring gateway - help


Hello to all...
Im newbie to configure gateway server, can you help me?

I am installing redhat linux 9 with internet connection. i have a two ethernet card. eth0 - connect to my adsl modem and eth1 to my network hub. eth0 ip configuration was the static IP address give from ISP and also setup a ISP gateway and DNS. while eth1 for my LAN using the IP of 192.168.1.1, when I ping like ping yahoo.com i have a ping reply so meaning i have a connection to the internet. then when I ping to my local network IP address like ping 192.168.1.11 i got also ping reply. My gateway use in client computer now is the IP address assign in eth1 in my linux server. my problem is my LAN computer cannot connect to the internet. I assign my LAN computer to a default gateway to 192.168.1.1 but when I try to connect there is no connection to the Internet. Can you help me to solve my problem? Can you help me to setup my gateway server. I think there is a lacking configuration in my setup.

Please help me... thank you very much...

you can send also your help to my email : reansph@yahoo.com


Thnk you vry much....
 
Old 01-28-2005, 10:13 AM   #2
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
I'm a little confused. Do you have two computers connected to two different lines in the ADSL? Or is one computer connected to the ADSL and the other is connected to the hub?

If you have one connected to the hub and it can not get onto the internet, you should be able to give the computer a static IP address and everthing via console. I am not sure about RedHat but it should be something like netcfg. This will step you through the process of naming your computer and giving it the IP address and gateway.

You should be able to get the gateway and DNS from the Router. What router are you using?

Inside the router, via a browser, you should be able to give the name of the computer and the IP address. This will keep the IP from being used from anything other than that one computer.

Use a bigger number for the last digit though. Something like 192.168.1.100 or something.

Hope that helps and make sense.
 
Old 01-28-2005, 10:33 AM   #3
jhar
LQ Newbie
 
Registered: Jan 2005
Location: Philippines
Posts: 6

Original Poster
Rep: Reputation: 0
I have only one adsl connection and I have no router use. I setup a Redhat server for a router/gateway for my LAN connection to Internet.. I have 1 internet connection and have static IP address.. but my LAN cannot connect to the internet.
 
Old 01-28-2005, 12:05 PM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
You need to get ip-masqurade working and then be able to forward the connections to the boxes behind the gateway. Basically you need to the gateway to forward requests back to the originating box which is not happening.
You'll find a detailed guide at;

http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/

you could also implement MonMotha's script that will provide firewall/routing/forwarding for you;

http://www.linuxorbit.com/modules.ph...icle&artid=529

Hope this helps.
 
Old 01-29-2005, 09:11 AM   #5
jhar
LQ Newbie
 
Registered: Jan 2005
Location: Philippines
Posts: 6

Original Poster
Rep: Reputation: 0
thnks for the info.. but if i setup IP masq do i need to setup IPTables? can you give me a guide to do the IPTables?

thnks again...
 
Old 01-29-2005, 10:06 AM   #6
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by jhar
if i setup IP masq do i need to setup IPTables?
masquerading is done using iptables... the main masquerading rule in the iptables script usually looks like this:

Code:
iptables -t nat -A POSTROUTING -o $INET_IFACE -j MASQUERADE
where $INET_IFACE is the name of the external interface on the gateway...

Quote:
can you give me a guide to do the IPTables?
a good place to get iptables documentation is this:

http://www.linuxguruz.com/iptables/

just my two cents...


Last edited by win32sux; 01-29-2005 at 10:14 AM.
 
Old 01-30-2005, 09:54 AM   #7
jhar
LQ Newbie
 
Registered: Jan 2005
Location: Philippines
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the give info.. I will try that one..

Infuture problem pls help me again guys...

thnks you..
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Fedora 3 as an internet gateway justiceisblind Fedora 1 05-27-2005 01:42 PM
Configuring Fedora 3 as an internet gateway justiceisblind Linux - Networking 3 01-23-2005 08:12 PM
configuring 2nd nic/gateway spooge Slackware 2 12-24-2004 03:22 PM
configuring openbsd 3.3 pppoe gateway yocompia *BSD 3 09-28-2003 02:11 PM
configuring a gateway for a windows xp box joshuadonz *BSD 0 03-23-2003 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration