Re: internet sharing question

From: Shefali Joshi (shefali_s_joshi_at_hotmail.com)
Date: 05/28/04


Date: Fri, 28 May 2004 20:06:37 GMT


"Nils O. Selåsdal" <NOS@Utel.no> wrote in message
news:uXgtc.4276$RL3.83566@news2.e.nsc.no...
> 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
> >>
> >
> >
> >

Thanks everyone for all your help. Unfortunately, I couldn't experiment with
all your suggestions any longer (inpatient boyfriend hehe). Instead, I just
found this program called "firestarter" and it makes my LAN work
beautifully.
Thanks a lot again.



Relevant Pages

  • Re: Network Problem-solved..Now another problem
    ... I can really be dumb at times,i forgot abt the Iptables:( ... > Linux from win but not the other way then I would guess your blocking ICMP ... Can you ping the gateway? ... > Yes thats what I used 255.255.255.0, I know I am wrong but thats what my ...
    (RedHat)
  • nat POSTROUTING chain not traversed during loading?
    ... I've been experiencing some strange behaviour with my netfilter/ ... iptables setup. ... The test is to start a ping before the board is even powered, ... with a static route created when the ath0 interface gets its DHCP ...
    (comp.os.linux.networking)
  • RE: Ping Driving me Crazy....
    ... If you cannot ping from the windows boxes on the internal network to the ... internal nic of the linux box after stopping iptables, ...
    (RedHat)
  • Re: Forwarding not work in FC9 but ip_forward is turn on
    ... I installed FC9 on my PC that will work as official proxy / firewall. ... A ping from 192.168.10.20 works toward 192.168.5.254 ... iptables has no rule, in fact I have executed the following ... /sbin/ip route add 192.168.10.1/24 dev eth6 ...
    (Fedora)
  • Forwarding not work in FC9 but ip_forward is turn on
    ... I installed FC9 on my PC that will work as official proxy / firewall. ... A ping from 192.168.10.20 works toward 192.168.5.254 ... 1ms 192.168.5.1: ICMP echo request ... iptables has no rule, in fact I have executed the following ...
    (Fedora)