Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Networking
Reload this Page Internet sharing eth0 + eth1 + netgear router (internet on local lan not enabled)
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Networking Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Reply
 
Thread Tools Display Modes
Old 06-13-2006   #1 (permalink)
satyannair
Just Joined!
 
Join Date: Jun 2006
Posts: 1
Internet sharing eth0 + eth1 + netgear router (internet on local lan not enabled)

hi,

I have a Linux box with 2 ethernet cards.

eth0 -> external network (cable 67.xxx.xxx.xxx with 67.xxx.xxx.1 as gateway)

eth1 -> 192.168.10.1/255.255.255.0
I am using firestarter and using dhcpd on eth1.

eth1 is connected to netgear router.
Netgear picks up the IP properly as 192.168.10.150/255.255.255.0 with gateway as 192.168.10.1
and dns as 167.xxx.xxx.xxx given by the ISP. (checked this and they are same as /etc/resolv.conf)

my local windows pcs are connected to the router and they are getting IPs as 10.1.1.2/255.255.255.0 (if lan segment is starting at 10.1.1.1)
or
192.168.1.2/255.255.255.0 (if lan segment changed to 192.168.1.1)

linux box
|
|
-----eth0 (67.xxx.xxx.xxx)
|
|
-----eth1 (192.168.10.1 with dhcpd server)
(firestarter running)
|
|
netgear router (192.168.10.150 from eth1)
RIP direction disabled by default
(RIP 2B or 2M enabled - tried both)
|
|
------------------------------------
| | | |
pc1 pc2 pc3 (vonage)


I am not getting internet on the pcs even though i did all the IP Masquerading etc.

Steps that i have done:
net.ipv4.ip_forward=1
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/etc/rc.d/init.d/iptables save
(/sbin/chkconfig iptables on # is on)
/sbin/chkconfig --add iptables

Please let me know what is wrong here!
satyannair is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 10:42 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0