Solved

Linux as gateway to Internet

Posted on 1997-07-13
5
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

617 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