Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Linux as gateway to Internet

Posted on 1997-07-13
5
Medium Priority
?
265 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 200 total points
ID: 1585461
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
ID: 1585462
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
ID: 1585463
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
ID: 1585464
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
ID: 1585465
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

971 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