OESF Portables Forum
Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: alan on December 20, 2004, 10:13:29 am
-
Hi!
I've been accessing the internet from my zaurus for monthes now, but since yesterday, it won't work...
I have a mandrake 10.0 and a sl c750 running pdaxrom katherin RC5.
i can ping from my zaurus to my mandrake, and to www.google.fr without any pb.
i can't pig from my mandrake to my zaurus.
I can't access the net with dillo, ans the status bar indicates "Contacting the host".
my zaurus ip is 192.168.129.201
my mandrake ip is 192.168.129.200
both have the same bcast and mask given by ifconfig.
i really don't understand anything...
Any help would be apreciated...
Thanks.
-
I think we need some more information. What is your gateway? Is it the mandrake or a router? I assume you are using ethernet and not through USB. What dns server are you pointing to? Have you added any new devices to your network (ie duplicate IP). Can you browse the net by IP?
-
hola hola bluedevils ! Slow down a little bit
i set up as a gateway on the zaurus my mandrake ip, i. e. 192.168.129.200, which worked fine until now.
I'm connected to my z via the usb cable and i reach the internet trough a usb sagem fast 800 but i think that for some dark reasons the eagle drivers that are in charge of this modem "emulate" a eth0 interface...
the dns server the same as it has lways been, it's my provider's dns (wanadoo.fr). Plus i don't think it comes from this as Dillo pass through the "solving dns" step.
And about this new device added to the network, i don't think i did such a thing. Well, i kind of did some time ago, but it never prevented my zaurus from reaching the net.
Thank you very much for answering me, and excuse me if i didn't understand one (or more) of your questions, but i'm still an unexperimented linux user but i'm doing my best !
-
i think this can be useful :
[root@mandrake alan]# ifconfig
eth1 Lien encap:Ethernet HWaddr 00:60:4C:29:62:CF
adr inet6: fe80::260:4cff:fe29:62cf/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:875 errors:0 dropped:0 overruns:0 frame:0
TX packets:902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:553485 (540.5 Kb) TX bytes:111291 (108.6 Kb)
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:16416 (16.0 Kb) TX bytes:16416 (16.0 Kb)
ppp0 Lien encap:Protocole Point-Ã -Point
inet adr:83.xxx.xxx.xxx P-t-P:193.253.160.3 Masque:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:479 errors:0 dropped:0 overruns:0 frame:0
TX packets:441 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:3
RX bytes:364967 (356.4 Kb) TX bytes:49730 (48.5 Kb)
usb0 Lien encap:Ethernet HWaddr 2E:A0:65:A9:0E:6E
inet adr:192.168.129.200 Bcast:192.168.129.255 Masque:255.255.255.0
adr inet6: fe80::2ca0:65ff:fea9:e6e/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:454 (454.0 b) TX bytes:1082 (1.0 Kb)
the very strange thing is that i can ssh from my zaurus to my mandrake box without any problem...
I know i medded up my mandrake with some stupid manipulation (mainly eraising /var/log/*) and that causes me some error message at boot time but everything works fine, except of course this connection sharing. I don't know if it is related.
-
Since you have many adapters/interfaces, can you please also post the result of
#route -n
(maybe you've got a wrong default route)
-
hi zmiq2 !
i hope this is revelant :
[root@mandrake alan]# route -n
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
193.253.160.3 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.129.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 193.253.160.3 0.0.0.0 UG 0 0 0 ppp0
Thanks again.
-
sorry, i think my post was not clear
[root@mandrake alan]# route
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
193.253.160.3 * 255.255.255.255 UH 0 0 0 ppp0
192.168.129.0 * 255.255.255.0 U 0 0 0 usb0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 193.253.160.3 0.0.0.0 UG 0 0 0 ppp0
[root@mandrake alan]# ifconfig
eth1    Lien encap:Ethernet  HWaddr 00:60:4C:29:62:CF
     adr inet6: fe80::260:4cff:fe29:62cf/64 Scope:Lien
     UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     RX packets:27073 errors:0 dropped:0 overruns:0 frame:0
     TX packets:17848 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 lg file transmission:1000
     RX bytes:34641855 (33.0 Mb)  TX bytes:1733353 (1.6 Mb)
lo     Lien encap:Boucle locale
     inet adr:127.0.0.1  Masque:255.0.0.0
     adr inet6: ::1/128 Scope:Hôte
     UP LOOPBACK RUNNING  MTU:16436  Metric:1
     RX packets:248 errors:0 dropped:0 overruns:0 frame:0
     TX packets:248 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 lg file transmission:0
     RX bytes:19128 (18.6 Kb)  TX bytes:19128 (18.6 Kb)
ppp0 Â Â Â Lien encap:Protocole Point-Ã -Point
     inet adr:83.115.133.65  P-t-P:193.253.160.3  Masque:255.255.255.255
     UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
     RX packets:26882 errors:0 dropped:0 overruns:0 frame:0
     TX packets:17645 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 lg file transmission:3
     RX bytes:34586147 (32.9 Mb)  TX bytes:1372282 (1.3 Mb)
usb0    Lien encap:Ethernet  HWaddr EA:60:E5:09:D3:76
     inet adr:192.168.129.200  Bcast:192.168.129.255  Masque:255.255.255.0
     adr inet6: fe80::e860:e5ff:fe09:d376/64 Scope:Lien
     UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     RX packets:0 errors:0 dropped:0 overruns:0 frame:0
     TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
     collisions:0 lg file transmission:1000
     RX bytes:0 (0.0 b)  TX bytes:582 (582.0 b)
I hope it's better...
-
i'm still stuck into this... is there any thing else i should post ?
at boot time, i have an error bout http2 or something like that, i don't have time to read well... I guess there is a log somewhere, but i don't kniw which one it is.
Any help would be apreciated...
-
i'm still stuck into this... is there any thing else i should post ?
at boot time, i have an error bout http2 or something like that, i don't have time to read well... I guess there is a log somewhere, but i don't kniw which one it is.
Any help would be apreciated...
Perhaps I am not understanding, but what is the ppp0 interface used for? I see eth0 as well as usb0, and then there is the ppp0 with an interesting address on it (83.115.133.65). Your default gateway is via the 83.115.133.65 address right now.
Do you have a real ethernet interface for the Z. That would help.
Looking at what you have printed out, it looks like the usb0 is 192.168.129.200, not 201. That will cause you quite a few problems. Perhaps you could reconfigure the usb0 to something else, like .210 to ensure that it isn't the same as a current IP address.
I hope this helps,
Craig...
-
Hi cvmiller !
Perhaps I am not understanding, but what is the ppp0 interface used for? I see eth0 as well as usb0, and then there is the ppp0 with an interesting address on it (83.115.133.65)
the point is i use a USB Sagem fast 800 modem to access the internet (ADSL). This modem doesn't work properly with mandrake (and linux in general...) so i use the Eagle USB driver which is the only way to have it work.
I don't precisely know how nor why, but this driver creates a "fake" eth0 (i have no ethernet card on my pc and when i get this interface down, i have no internet access anymore) but to me the most important interface is ppp0.
Your default gateway is via the 83.115.133.65 address right now.
It just doesn't work, plus it used to work with the usb0 adress (192.168.129.200).
Thanks anyway !
Do you know if there is a way to completely reset the networking configuration under mandrake 10.0 ? Is used to work, it should work again !
-
At Zaurus, issue the following commad using root:
route add default gw 192.168.129.200
I hope the above will help.
-
I agree with freizugheit
Add the default route to your Zaurus. I miss understood earlier and thought those ifconfig displays were of your Z, not your Mandrake. So if I made a network diagram it would look like:
ADSL (USB)---> Mandrake-----USB---->Zaurus
Does that look right? If you Mandrake machine can get out to the internet and your Z can't, then it is probably your lack of a default route in the Z, and the Mandrake isn't setup to forward traffic (you will probably have to set it up for IP Masquerade.
I hope this helps,
Craig...
-
thank you guys, you're help is very appreciated, but it seems not to be the solution...
on the zaurus side, route gives me
Destination Geteway Genmask Flags Metric Ref Use Iface
193.168.129.0 * 255.255.255.0 U 0 0 0 usbd0
default 193.168.129.200 0.0.0.0 UG 0 0 0 usbd0
I think it means that the default gateway is already set up, does it ?
Craig : your network diagram is absolutely riht, i should have described it that way !
You say that the Mandrake may not be setup to forward traffic ? I think the solution is more in this way, but the thing is that it had been working for quite a lot of time before it stopped...
I use the Drakconf (gui) to configure everything on my mandrake. I did evrything that had been necessary on the first time, but it didn't work. I am not good at command line, so i have not been able to adapt the different how tos i've found here and there...
Sorry for so much newbiness
Thanks again guys.
-
OK, the routing table on the Z looks good.
Do you have forwarding turned on in Mandrake? I have never done it with a GUI, on CLI, so I don't now if I am going to be that much help, but you will need to turn on forwarding, and NAT, if you expect to surf the internet on the Z.
I run Mandrake on my Pismo Powerbook. It does look like there is a "Internet Connection Sharing" icon under "Network & Internet" in drakconf. You might want to check that to ensure that your forwarding and NAT are correctly setup.
I hope this helps,
Craig...
-
Last time, I used the following for iptables configuratino for sharing Internet from Linux Internet gateway:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
I hope this might help too.
-
Yes all the symptoms you are having are exactly what happened to me. I used to be able to surf through my slackware box, but all of the sudden I couldn't get through. Mine turned out that the wife's computer had a dup IP, but since you seemed to have ruled that out I would guess it is you NAT and IPforwarding. I'm not familiar with Mandrake, but there should be init scripts for the firewall and ipforwarding in either /etc/init.d or /etc/rc.d. You can manually start/stop these scripts to see what bearing this has on your network connectivity. If you do a man on iptables, you should be able to find a switch to list all your rules (and hopefully your active NAT rule). It might be -L.