Solved

Linux as gateway to Internet

Posted on 1997-07-13
5
211 Views
Last Modified: 2010-03-17
I can't get my linux to route packets from my win95 client via my linux to the internet. I can see that my modems txd led flashes once when I ping  from the client. I have not compiled my recompiled my kernel, Redhat ver. 4.2.
0
Comment
Question by:cku
5 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
Comment Utility
Can you ping from your linux gateway?
Have you setup routes at the gateway (netstat -rn).
Can you ping your win95 client?
Can your client ping the gateway?
Have you defined the gateway (the linux-gateway) at your client?

If this all works fine, you have to look at the kernel, you need
at least following settings:
      CONFIG_INET=y
      CONFIG_IP_FORWARD=y


0
 

Expert Comment

by:sbickle
Comment Utility
Are you trying to setup the linux box to do IP Masquerading?  If so once you have all the pieces in place the win95 machine will be able to see out but from what I've found ICMP packets do not pass through this gateway.                                  
0
 

Author Comment

by:cku
Comment Utility
I am capable of doing all things u suggest, but when I ping the Internet from the client, i can see the txd led on my modem flash a couple of times, but the ping still times out. what is ipfwadm's role in this case?
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
ipfwadm accepts or rejects IP packets in either direction, it can
also masquerade and do a accounting (see man page).
I.g. the default setup is to have no restrictions at all. Use
      ipfwadm -I -l
      ipfwadm -O -l
      ipfwadm -A -l
      ipfwadm -M -l
      ipfwadm -F -l
to get a list of current settings.

If your ping times out, it's probably a routing problem, check with
netstat -rn

Ciao Achiim
0
 

Expert Comment

by:manic
Comment Utility
Just telling you kernel to forward IP packets would be suicide for your network...

At least set up an IP masquerading gateway. This is REALLY easy and REDHAT 4.2 will do it brilliantly...

Just get the IP-Masquerade mini-howto from sunsite.unc.edu
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now