Linux router, my boxes can ping outside, but no web
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Linux router, my boxes can ping outside, but no web
I have a Debian box with two network cards, eth0 connected to cable modem and eth1 connected to switch. I'm currently using ipmasq to handle iptables and routing stuff. I was doing it by hand before, but discovered ipmasq while trying to solve the problem I'm having, and liked it enough to stick with it.
Here's my /etc/networking/interfaces:
Code:
#loopback interface
auto lo iface lo inet loopback
# interface external network (internet), configured through dhcp
auto eth0
iface eth0 inet dhcp
#interface network 1
auto eth1
iface eth1 inet static
address 192.168.10.254
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
Debian box uses DHCP to get love from the cable modem, I can access web fine from the Deb box. I connected two other machines (one Windows, one Mac) to the switch, and configured each with a static 192.168.10.x ip address using 192.168.10.254 as the gateway. On both machines, I can ping yahoo no problem, and do a traceroute. I thought I was good to go.
But neither machine gets web. There's something fishy going on thats letting ICMP through but nothing else. I tried email and AIM as well, no love. But they can ping www yahoo com, which means DNS is good, and that forwarding is happening.
It sounds like you need to open port 80 and make sure that it's getting forwarded from the LAN to the WAN. Also, make sure that all established and related packets are getting forwarded from the WAN to the LAN.
What are using for a firewall? Straight IPTables (i.e. a script), Shorewall, etc.? I'm not really familiar with ipmasq, so I don't really know what to tell you as far as which command you should use :-p.
If anybody else has a good idea, feel free to chime in :-).
9 times out of 10, if you can ping/traceroute etc an IP but not a URL it's because URL's arent being resolved. Do you have a DNS nameserver line or 2 in your /etc/resolv.conf on all the machines or just the debian box? The debian box ip shouldn't be considered a DNS unless your actualy running one (Which your almost definetly not)
I had a similiar problem with Linux 9.. I ended up setting my ISP DNS server addresses in the etc/resolv.conf file...
This seemed to allow my clinets to access web pages......
Its not a DNS problem...I can ping an outside website...ala "ping www dot yahoo dot com"...and get a response. But I try to go to the web page (even by IP), and nothing. Both my client boxes have outside primary and secondary DNSes set.
And ipmasq uses iptables under the covers. Doing "iptables --list" shows me "LOG level warning" next to several entries. I found thread id 241279 pertaining to that, but no answer. Anyone know where the log files are? Doesn't smell like syslog.
Okay, I suppose the "LOG level warning" shows up because those particular lines are for LOG entries...not a problem. More information. I can FTP to the outside world from my boxen, and I noticed Bitorrent working on one of them. HTTP and HTTPS still no good. Curious about DNS I entered yahoo's IP in the browser (after resolving it by pinging), and it could not be reached.
I feel I'm so close...just can't understand why web not working for me.
Just a (hopefully gentle) reminder, there is no "Linux 9" per se -- the kernel is only up to 2.6 -- "9" could be RH, SuSE, Slack, & maybe others. Furthermore, OP is using Debian, which is only up to 3.1, so context isn't much help.
Please don't fall into the trap of thinking that your distro is the only one -- I count 515 in the Distrowatch drop-down menu this morning.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.