Guest h.houdini Posted November 27, 2005 Report Share Posted November 27, 2005 (edited) Hi, this is my first message here. :) I'm trying to share an ADSL connection between two computers, a Mandriva 2006 (kernel 2.6.12-12 mdk), directly connected to Internet, and a Win 98( it's not mine). They are linked by a crossed network cable. I configured ppp0 on eth0. eth1, where the cable between the two computers is hanging, has IP address 192.168.0.1(subnet mask 255.255.255.0), while the win98 has ip address 192.168.0.2 (subnet mask 255.255.255.0). To enable IP-forwarding, i give the command echo 1 > /proc/sys/net/ipv4/ip_forward , To enable NAT, i give the command iptables -t nat -I POSTROUTING -o ppp0 -j MASQUERADE On the win98 computer, i use the same DNS as in my /etc/resolv.conf; as gateway, I indicated 192.168.0.1. From this computer, i can ping the gateway without problem, but: 1)when one tries to get to some sites, some can be seen (for example, www.google.com), while other not (for example, www.hattrick.org or www.repubblica.it): it gives a time-out error (in Mandriva, I can see any of these sites without problem) 2) I can't ping DNS server(but I can ping eth0 and eth1). I also con ping the address of the not-resolved sites, but if I use that address in the browser the request goes time-out. I tried with other OS and computer (Laptop with XP), but thing are just the same (so, I think that the problem is myMandriva, that blocks some traffic). I provisionally disabled iptables (I'm not vey happy with this ). I also tried to reinstall the kernel, but the result is the same. Can anyone help me? I really can't understand what's happening :( Edited January 7, 2006 by h.houdini Quote Link to comment Share on other sites More sharing options...
Qchem Posted November 28, 2005 Report Share Posted November 28, 2005 Did you check the tips in the thread pinned at the top of this forum? I've never tried to set this up so that's the best advice I can give - sorry. Someone else may know better :D And welcome to the board!! Quote Link to comment Share on other sites More sharing options...
Guest flummer Posted December 22, 2005 Report Share Posted December 22, 2005 Hey, I've got the same problem, did you ever find a solution for it ? I can connect on my client to webpages like google.com. But no www.di.fm and messenger 7.5 doesn't work either. It works fine on the Mandrive Desktop, or if I use a hardware router. Can someone please help, i'm going out of my mind here. BR Flummer Quote Link to comment Share on other sites More sharing options...
Guest flummer Posted December 28, 2005 Report Share Posted December 28, 2005 Okay problem solved. By some reason you need to add this rule : iptables -I FORWARD -i eth0 -o ppp0 -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu Where eth0 is your internal interfase and ppp0 is your dail-up adsl connection. Don't know why this is needed to get it running, maybe someone can explain ?! Quote Link to comment Share on other sites More sharing options...
Guest h.houdini Posted January 7, 2006 Report Share Posted January 7, 2006 Okay problem solved. To fix this problem, i bought a router about a month ago. Now it works... Thank you anyway :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.