So, your linux box dials your pppoe  to your DSL provider.  You want your
windows box to to use the Internet through the Linux box.  Right?

Here is what you need to do concept wise.

1- Your linux box must do NAT for your network. (through IPTABLES  rules)

2- Your Win box must be configured to use Linux box IP as the default
gateway. TCPIP config

searching for "Linux NAT setup windows" will lead you to so many pages
discussing the setup you want to have.

http://www.aboutdebian.com/proxy.htm   is a good start..

What you are trying to do will be accomplished with 3-4 commands.  You just
need to understand the concept behind it.

on linux issue following commands:

modprobe iptable_nat
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

on windows:

- an IP from the same subnet as linux box
- tcpip conf:  DNS ips .+ linux IP as gateway.

done.

Please let us know how things turn out with you.


Abdallah



On 7/14/07, rage <[EMAIL PROTECTED]> wrote:
>
>
> it is enabled, didnt work :D
>
> On Jul 14, 8:19 pm, "Al-Faisal El-Dajani" <[EMAIL PROTECTED]>
> wrote:
> > I ran into that problem once, you solve it by enabling ip forwarding.
> Try
> > this:
> > echo 1 > /proc/sys/net/ipv4/ip_forward
> >
> > I don't know how to automatically enable this, and i'm fairly sure that
> this
> > would solve it for you.
> >
> > On 7/14/07, rage <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > > Hi all im a linux newbie,i recently downloaded and installed fedora 7
> > > on my computer,which also has a windows xp installed on it,but thats
> > > not relevant, my problem is the following:
> > > i have another windows xp based computer, an adsl modem,and a switch,
> > > so the the modem,windows xp computer, and the fedora 7 computer are
> > > all connected to the switch,and i can easily connect to the internet
> > > using the fedora 7 computer,where i created the adsl connection using
> > > the network configuration panel in the nome desktop,what i need is for
> > > my fedora 7 computer to provide the internet connection to the windows
> > > xp computer through the switch,in other words,i need the fedora 7
> > > computer to be the default gateway, this was my previous configuration
> > > when both my computers where windows xp based,i tried simply changing
> > > the ip to a static one putting both computers in the same class etc
> > > like i would do in a windows xp environment,but of course it didn't
> > > work,or our lives would be easy,contradicting the fact that life is a
> > > pain,so if anyone has any idea.im all ears!
> >
> > > thank you :D!
> >
> > --
> > Al-Faisal El-Dajani
> > Phone: +962-7-77 799 781
> > P.O Box: 140056
> > 11814 Amman, Jordan
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Jolug" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.com/group/Jolug?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

رد على