sorry for the late reply guys,i was at work and couldn't come online earlier. so i was gona try what Abdallah suggested, then saw what a7mad suggested and decided to give it a ago since it wont take alot of time and if it doesnt work,no harm done,and what do u know,it worked,but im talking bout the tutorial link,bout the manual of the save part,i cant seem to understand what the hell im suppose to do(my bad,not the man),so can any1 clarify what i have to do, here is the link just in case <http://www2.yo-linux.com/cgi-bin/man.cgi?topic=iptables-save>
On Jul 15, 9:41 am, "Ahmad alsane" <[EMAIL PROTECTED]> wrote: > see this > tutorialhttp://www.yolinux.com/TUTORIALS/LinuxTutorialIptablesNetworkGateway.... > > and yes u can save ur configuration without any script, see iptables-save > man page <http://www2.yo-linux.com/cgi-bin/man.cgi?topic=iptables-save> > > On 7/14/07, Abdallah <[EMAIL PROTECTED]> wrote: > > > > > On 7/14/07, rage <[EMAIL PROTECTED]> wrote: > > > > third,yes Abdallah,u described exactly what i want to do,and also > > > yes,i have been searching the net in a whole different field, the > > > terms u r suggesting seem more logical. > > > > 4th,i did all what u said (adding the sbin when needed) and it didnt > > > work,do i need to restart anything?and another q,will these setings u > > > r giving me be automaticly saved? > > > Well.. Did not work does not tell us much . We need to know where the not > > working is happening. :) > > > 1- can you ping the linux box from windows ? > > > 2- what is the output of "ipconfig /all " on windows ? > > > 3- what is the output of: > > - iptables -L -t nat > > - route > > - ifconfig > > > on linux ? > > > Just for starter. :) > > > The iptables commands lines I sent you will be lost the next time you > > reboot.. You will need to put then on a shell script thats is executed at > > booting but that is for later .. > > > Abdallah > > > On Jul 14, 9:09 pm, Abdallah < [EMAIL PROTECTED]> wrote: > > > > 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 -~----------~----~----~----~------~----~------~--~---

