networking question
hello,
is it possible to connect two computers using this particular configuration and then have them share an internet connection? i apologize, i dont know the technical terms to use so i cant start researching on the topic. i just need help on the terms and verify if this could work so that i can look up the procedure on my own. :) the configuration: -a laptop with wireless internet using slackware 12.1 connecting on a out of site wireless router. -connected into it is another laptop using debian etch(no wireless card) by a LAN wire (i dont know what its really called) and sharing(?) the internet access of the laptop with slackware on it i really need to set it up on this particular config, is this possible? and if it is, is there a particular term that i can use so that i could research how to go about it? thank you for your time, mikel |
It is possible. Try something searching something like: linux sharing internet connection
Related terms: masquerade, NAT, iptables The cable you're using (or should) is called crossover cable, it has the connectors reversed (you can peek at their colors) and is used for that kind of connections. |
To make life easier, configure dhcpd and BIND9 on Slack - that allows Slack to act as the DNS and also to give your Debian machine a local IP address. You also need to set up the iptables rules; I don't know what tools are available to you on Slack, but on Debian I just run a script named "ipmasq". It's probably better to not be lazy and write your own script to set up the iptables because you have better control over things.
If you will only ever connect in this configuration given that one wireless access point, you can skip DHCP and BIND9 and just statically set up the Debian NIC: - fixed address - gateway = slack computer - DNS = wireless router IP address or fixed DNS on the internet Using DHCPD + BIND9 allows you to create all the right connections even if your slack computer is doing wireless roaming - the slack machine will be aware of all changes, but the Debian machine won't see any changes at all - as far as it is concerned, the slack machine does all the DNS and gateway stuff. |
Quote:
|
Quote:
|
Quote:
Also have a look at Alien Bob's script http://www.slackware.com/~alien/efg/ and the classic (but in depth) reference by Oskar Andreasson http://iptables-tutorial.frozentux.n...-tutorial.html Quote:
|
read this /usr/doc/Linux-HOWTOs/IP-Masquerade-HOWTO and this Networking-Overview-HOWTO and this Network-Install-HOWTO
the first thing you need to do is get the 2 computers talking to each other after that go to /etc/rc.d/rc.ip_forward and do as it says pinniped this guy dose not even have the back ground to ask for what he wants forget about hem writing a script to do IP-masquerading all your reply would is discourage hem from doing this and more |
Quote:
thanks for the guidance everyone! mikel |
All times are GMT -5. The time now is 04:06 AM. |