Re: internet sharing question

From: QNils_O=2E_Sel=E5sdal=22?= (NOS_at_Utel.no)
Date: 05/27/04


Date: Thu, 27 May 2004 09:40:10 +0200

Shefali Joshi wrote:

> eth0 is connected to the cable modem(internet)
> eth1 is connected to a hub and other computers connect into the hub for
> internet connectivity.
> I can ping my linux box just fine from my other computer, but can't ping
> them from my linux box(unless I'm screwing up "ping" usage).
Maybe you are.. what DID you run ?
Another thought, stop iptables first. That is
run service iptables stop
Then run the 2 commands again, if eth0 is to the internet, it should be
exactly:
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

The iptables-save suggestion in a prior mail will ONLY save the iptables
command not the echo command that turns on routing. To save that,
put net.ipv4.ip_forward = 1 in /etc/sysctl.conf

And what ip address does your eth1 have, and what does the other box
have ? And tracert ?

>
> "Nils O. Selåsdal" <NOS@Utel.no> wrote in message
> news:pan.2004.05.26.19.10.52.676828@Utel.no...
>
>>On Wed, 26 May 2004 15:41:18 +0000, Shefali Joshi wrote:
>>
>>
>>>It didnt work :(
>>
>>Well, this is what I always do, so it works.
>>So. How did you test ? Atleast describe your setup and
>>local network, and provide a tracert output
>>from your windows box to an internet IP address, e.g.
>>tracert 66.102.11.99
>>
>
>
>



Relevant Pages

  • Re: Freind lost internet connection, but 2 other PCs work
    ... it would be helpful to know how all the computers connect to the ... Or do they use Internet Connection Sharing? ... Type ping www.yahoo.com) If it times out, ... If it can ping by ip but not by name, check the DNS settings. ...
    (microsoft.public.win2000.networking)
  • MASQ system not pinging outside address
    ... The MASQed machine cannot ping the ISP gateway thru the ... But it doesn't ping the ISP gateway and other internet addresses like ... $IPTABLES -P INPUT ACCEPT ... 21:10:25.160082 arp who-has 195.44.182.161 tell 195.44.182.161 ...
    (comp.os.linux.networking)
  • Re: Freind lost internet connection, but 2 other PCs work
    ... Or do they use Internet Connection Sharing? ... Type ping www.yahoo.com) If it times out, ... If it can ping by ip but not by name, check the DNS settings. ... Compare the tcp/ip properties with the other computers that can ...
    (microsoft.public.win2000.networking)
  • Re: Security concern with ping?
    ... it is not important to allow the internet to ping your IP address. ... With Iptables, you can block bad ICMP traffic with the following chain ... > I have my linux box properly running squid and Jay's Firewall. ...
    (comp.os.linux.networking)
  • Re: Network Problem-solved..Now another problem
    ... Krishna's homepage on the internet! ... Harish Sabnani writes: ... > I can really be dumb at times,i forgot abt the Iptables:( ... Can you ping the gateway? ...
    (RedHat)