Spacecake
03-05-2002, 08:04 PM
I have been reading docs and fiddling *all day* now, about 12 hours.
This is my first time trying to do any networking at all, i am totally inexperienced... although i know all other aspects of linux pretty well.
Just incase you wanted to know, i use slack 8, and my current kernel is 2.4.17.
Right now, i just have my main computer (running linux like above, this will be the box connected to the internet [via ppp] and thus serve as the gateway) on 192.168.0.1, and another box running windows (192.168.0.2) connected via crossover cable.
Everything is working fine inbetween these two boxes, the windows one can request a page off the apache server on my linux box, i can telnet to it, set up samba shares that work either way, etc...
But i just cannot seem to get the windows box to access the internet.
I set up the ethernet card like this:
/sbin/ifconfig eth0 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0
And that's really all i have done. I know i have to set up IP Masquerading, but i keep following the instructions in every howto i can find and they all bring up errors i don't understand, or don't do anything at all.
I configured windows (clicked the properties thingie on TCP/IP) to use 192.168.0.1 as its gateway, which was the only option i could find relevant to this.
I get the feeling that all i need to do is issue the right iptables commands and i'll be okay, i just need someone to help me with WHAT the hell i need to type.
Sorry this doesn't provide that much info, i really don't know what i am talking about when it comes to networking.
This is my first time trying to do any networking at all, i am totally inexperienced... although i know all other aspects of linux pretty well.
Just incase you wanted to know, i use slack 8, and my current kernel is 2.4.17.
Right now, i just have my main computer (running linux like above, this will be the box connected to the internet [via ppp] and thus serve as the gateway) on 192.168.0.1, and another box running windows (192.168.0.2) connected via crossover cable.
Everything is working fine inbetween these two boxes, the windows one can request a page off the apache server on my linux box, i can telnet to it, set up samba shares that work either way, etc...
But i just cannot seem to get the windows box to access the internet.
I set up the ethernet card like this:
/sbin/ifconfig eth0 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0
And that's really all i have done. I know i have to set up IP Masquerading, but i keep following the instructions in every howto i can find and they all bring up errors i don't understand, or don't do anything at all.
I configured windows (clicked the properties thingie on TCP/IP) to use 192.168.0.1 as its gateway, which was the only option i could find relevant to this.
I get the feeling that all i need to do is issue the right iptables commands and i'll be okay, i just need someone to help me with WHAT the hell i need to type.
Sorry this doesn't provide that much info, i really don't know what i am talking about when it comes to networking.