Jump to content

network prob: ssh, ping, dns but no http?


Guest dcolley
 Share

Recommended Posts

Guest dcolley

Hello,

 

I have an odd situation that I can't resolve at home?

 

I have:

- Netgear ADSL Router with WiFi and 4-port hard wire (192.168.0.1 internal ip) No special config other than to route port ssh, http, https & 10000 to 192.168.0.2

- WinXP laptop (using it now) (192.168.0.12 on wire via DHCP)

- Mandrake 10.0 CE server (192.168.0.2 on wire)

 

I can: :D

- ssh from laptop to mandrake (through the adsl router of course)

- access the internet from laptop/WinXP

- nslookup any domain from Mandrake

 

What I can't do is: :wall:

- [intermittent] ping external domains => "connect: Resource temporarily unavailable"

- lynx or Mozilla from Mandrake => "Page contains no data" in Mozilla...

 

I have the same issue, whether the firewall is up or down.

 

Some configuration info:

# cat /etc/resolv.conf
nameserver 192.168.0.2
nameserver 192.168.0.1

# cat /etc/hosts
127.0.0.1       localhost
192.168.0.2     mandrake
192.168.0.3     mandrake
192.168.0.2     nw4host
195.155.155.1   nw4host

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
195.155.155.0   *               255.255.255.0   U     0      0        0 eth1
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         192.168.0.1     0.0.0.0         UG    0      0        0 eth1

 

Can anyone help with this?

 

Many thanks in advance...

Derek

Edited by dcolley
Link to comment
Share on other sites

Although it may not be the root cause of the problem, its probably not a good idea to have more than one entry with the same hostname in /etc/hosts. Additionally the same IP address appears twice in /etc/hosts with different hostnames.

 

Are you obtaining your net info via dhcp on the linux box? I'm not sure the linux machines address should appear in /etc/resolv.conf - which is usually set by the router if you're using dhcp.

Link to comment
Share on other sites

I think your router don't do caching dns server or something since the nameserver in your mandrake goes to your router. Also, why do you put your mandrake ip address in the first line of your /etc/resolv.conf?

 

And the weird thing is that there are the IP address for 192.168.0.2 goes into both Mandrake and nwhost (whatever it is) and then there is a 192.168.0.3 too for the Mandrake. Try deleting one of them.

 

Try editing your /etc/resolv.conf and enter a real DNS server ip address.

Link to comment
Share on other sites

Guest dcolley

Mandrake IP is fixed.

 

For clarity: The reason I had 192.168.0.2 in /etc/resolve.conf was:

At one stage I thought there was a problem with the nameserver on the ADSL router as I wasn't getting any response for nslookup queries, so I configured bind on the Mandrake server (192.168.0.2), and forwarded requests from 192.168.0.2 to 192.168.0.1

 

I removed the additional entries from /etc/hosts and /etc/resolv.conf and restarted the network service:

[root@mandrake etc]# lynx <any domain>
Looking up <any domain> first
Looking up <any domain>
Making HTTP connection to <any domain>  <--- at this stage teh nslookup is successful!
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://<any domain>/

Link to comment
Share on other sites

Guest dcolley

This might be a problem with my ADSL router... After switching on the default DMZ ip address to 192.168.0.2, I am able to access the internet via lynx and intermittently via Mozilla...?

 

Connections still get dropped and many pages in Mozilla "contain no data"...

Link to comment
Share on other sites

edit your /etc/modprobe.d/aliases file from

alias net-pf-10 ipv6

to

alias net-pf-10 ipv6 off

 

or: install pump and dnsmasq

or: open firefox/mozilla, type "about:config" in searchbar and type "ipv" in your search bar. change the ignore-ipv6-entry you find there from false to true (double click on it).

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...