how do i share the internet from dsl ?


Forum: Networking
Topic: how do i share the internet from dsl ?
started by: pieter

Posted by pieter on Aug. 05 2007,16:12
I want to share the wireless internet i have with more computers, for the rest i got everything running with dsl so it gets time to get that last windows machine ( i still use only for sharing the internet ) away.

my wireless device is ath0  inet addr: 192.168.2.4 Bcast: 192.168.2.255 Mask: 255.255.255.0

my networkcard is eth0 but i don't know how to get the internet out of that one

somebody know what to do? allready thanks

Posted by curaga on Aug. 05 2007,16:47
Get iptables from mydsl, and then read ip masquerading howto from tldp.org
Also I'd recommend you do a debian-style HD install on that routing machine..

Posted by pieter on Aug. 07 2007,11:53
Quote (curaga @ Aug. 05 2007,12:47)

Ok,thanks for the hint.  i got the iptables, tried to work myself trough the reading material but it still don't work... as far as what i understand ( could be wrong ) it is best to seperate the cable network from my computer i use to receive my wireless internet by using a 192.... and a 10.... network address so on my ath0 (wireless) i have a internal address 192.168.1.33 ( and the last number changes everytime when i connect to that signal ) Bcast: 192.168.1.255  Mask: 255.255.255.0.
On my eth0 ( network cable ) i can not get the numbers right, i trie to get working 10.0.0.3 Mask 255.0.0.0 but everything i trie with the rest of the numbers don't work, the network itself works and both machines can ping each other but internet still don't comes through that cable  
Both my systems work with DSL ( debian way install )

somebody knows?

Posted by curaga on Aug. 07 2007,15:35
Did you do the "route" commands from the howto?
As your sharing comp is a "gateway" if others connect through it to internet, so on all client machines you need to type "route add default gw 192.168.1.33/24" (I think that's correct..) to make them connect through that address...

Posted by curaga on Aug. 07 2007,15:36
And ip masquerading (=NATting) is needed to make it look to the internet that all packets are coming from the gateway comp, if it isn't on, they look like they came from 192.168.whatever and as that's a private address, they cannot connect you back...
Posted by pieter on Aug. 15 2007,04:11
Quote (curaga @ Aug. 07 2007,11:36)
And ip masquerading (=NATting) is needed to make it look to the internet that all packets are coming from the gateway comp, if it isn't on, they look like they came from 192.168.whatever and as that's a private address, they cannot connect you back...

ok thanks again for the help, it is finaly working,... it took some time and it made me allmost cry but the the problem was in the (by me ) wrong choosen numbers......  for the ones having the same problems here is my working configuration

on the wireless card (ath0) ip 192.168.2.3 broadcast 192.168.2.255 netmask 255.255.255.0

on the network card (eth0) 192.168.0.1     192.168.0.255     255.255.255.0

the remote machines 192.168.0.2 (and further 0.3, 0.4 ) 192.168.0.255    255.255.255.0 and the gateway and nameserver on 192.168.0.1

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.