Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2013
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Apache does not respond - firewall?

    Hi,


    I set up apache to listen on ports 80, 8080, 8008 (plus few others 8042 2420)

    I can access the apache sever via localhost, 127.0.0.1 and via http://10.0.0.3 (and 10.0.0.3:8080 etc.) BUT only from my own machine!

    trying to access it via http://10.0.0.3 but from say 10.0.0.2 and it times out!!!

    same timeout if I try to access it from external IP


    I set up port forwarding rules, and I do see these entries in the netgear log file, which seems to indicate that the traffic is forwarded to 10.0.03

    [LAN access from remote] from 70.32.122.27:53468 to 10.0.0.3:80 Friday, Feb 25,2011 23:05:02
    [LAN access from remote] from 70.32.122.27:53398 to 10.0.0.3:8008 Friday, Feb 25,2011 23:04:54
    [LAN access from remote] from 70.32.122.27:53384 to 10.0.0.3:8080 Friday, Feb 25,2011 23:04:47

    so from this it seems that the ISP (Verizon DSL) is not blocking, and traffic does get to the WNR3500L router...

    apache does seem to listen on these ports:
    tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 14136/apache2
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 14136/apache2
    tcp 0 0 0.0.0.0:8008 0.0.0.0:* LISTEN 14136/apache2

    which should be obvious, as it is accepting connection when I use the internal ip 10.0.0.3:8080 Yet 10.0.0.3 only works when I am on the same local host. BUT not from anywhere else on my internal network...


    trying to access other random ports results in an immediate error message, probably since the router does not let these through. yet 10.0.0.3:8080 requests from outside the machine take a long time to timeout

    so it seems that there is some sort of firewall running on Ubuntu, but I was not able to find it :-(

    or is apache mis-configured??? though this does not make sense, as it is responding to localhost/127.0.0.1 and 10.0.0.3 from the same machine...

    any ideas?
    Last edited by vinyl-junkie; 09-27-2013 at 01:47 PM. Reason: signatures only allowed through the control panel

  • #2
    New Coder
    Join Date
    Oct 2013
    Location
    Bangalore, Karnataka
    Posts
    43
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi,
    Default Ubuntu configuration doesn't have any firewalls.I don't believe Apache is the problem here (if it responds, it is working). You should double check your network (router configuration, network configurations).I would first check your Ubuntu box for the IP it is configured to use:
    ifconfig
    eth0 (or something like that sould have a correct ip address (10.0.0.3 or whatever you said is your lan ip)

    Then I would ping Ubuntu box. First from another machine in the same network. If it works, I would try http requests (from Firefox). If it works, then Ubuntu box is responding correctly. I would then test connecting from internet. If it doesn't respond, you might have misconfigured your router (probably NAT or Firewall rules).

    You could also try traceroute 10.0.0.3 (from inside of your network, to see which routers are on the way of your request).

  • #3
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,042
    Thanks
    15
    Thanked 240 Times in 240 Posts
    Simple question. Did you restart Apache ? service httpd restart
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •