LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Networking problems with gateway - no internet (https://www.linuxquestions.org/questions/linux-networking-3/networking-problems-with-gateway-no-internet-126569/)

Belize 12-17-2003 03:25 AM

Networking problems with gateway - no internet
 
Greetings O_O :)

I have a home server ( red hat 9 - 192.168.20.3 ) and a PC ( WinXP and slack 9.1 - 192.168.20.1 ). The server has internet - 512k LAN - and shares the net to my PC with this line in /etc/rc.d/rc.local

iptables -t nat -A POSTROUTING -s 192.168.20.1 -j MASQUERADE

In the WinXP options, I only type my IP, Netmask, Gateway(192.168.20.3) and DNS servers from my ISP and I have net. With slack, I can ping the server, and I see that in ifconfig they are connected, but I dont have internet.

Thats it, peace

beyer42 12-17-2003 03:58 AM

Hi Belize

Im guessing that your XP might be connecting via PPPoe of some sort.

Check if you ISP uses PPPoe and what brand/model of DSL modem you
have.

Check out the following free PPPoe client software:

Roaring Penguin PPPoe

If ISP does not use PPPoe then I would check your nameserver
entries in /etc/resolv.conf on the slack machine.

Hope this helps.

Belize 12-17-2003 05:24 AM

Hey,

thanks for the fast reply.

My connection is 512 k LAN and the server is connected to the ISP with cable. Again, the server is connected to the PC with LAN

/etc/resolv.conf contains :

search cancun.cubanet.cc ( which is irrelevant and not working for now )
nameserver 192.168.20.3 ( IP of linux server - gateway )

I think I should change something in this file, but dunno what exactly

peace

beyer42 12-17-2003 06:07 AM

I would try removing the search line, it could cause long DNS hangs if it can't find any working DNS servers in that domain.

Belize 12-17-2003 11:39 AM

I commented the "search" line and for nameservers I wrote the 2 DNS'es assigned by my ISP, and it worx :D


All times are GMT -5. The time now is 04:02 PM.