Solved

Linux as gateway to Internet

Posted on 1997-07-13
5
222 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

15 Experts available now in Live!

Get 1:1 Help Now