LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-19-2017, 03:39 PM   #1
laredotornado
Member
 
Registered: Apr 2011
Posts: 71

Rep: Reputation: 0
How do I figure out what is blocking our connection to port 80 on our Debian box?


I'm using Debian 8. I'm trying to troubleshoot why we cannot access our dev site running in Apache (port 80). I thought we opened the internal firewall to port 80, at least, "ufw status" produces this ...

Code:
myuser@mymachine:~ $ sudo ufw status
[sudo] password for myuser:
Status: active

To                         Action      From
--                         ------      ----
22                         LIMIT       Anywhere
Anywhere                   DENY        218.67.129.36 22
22/tcp                     LIMIT       Anywhere
22/udp                     LIMIT       Anywhere
80                         ALLOW       Anywhere
22                         LIMIT       Anywhere (v6)
22/tcp                     LIMIT       Anywhere (v6)
22/udp                     LIMIT       Anywhere (v6)
80                         ALLOW       Anywhere (v6)
However, using "http://192.168.0.255" from ifconfig

Code:
myuser@mymachine:~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:37:ae:d2:3f:29
          inet addr:192.168.0.114  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::d964:f94e:233d:6f55/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23384 errors:0 dropped:4 overruns:0 frame:0
          TX packets:8640 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8872950 (8.4 MiB)  TX bytes:1041578 (1017.1 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2639603 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2639603 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:421417413 (401.8 MiB)  TX bytes:421417413 (401.8 MiB)
I'm still unable to connect to the server. I'm wondering if we still haven't configured the Debian firewall properly. What other tweaks do we need to make to the Debian firewall to allow access externally on port 80?
 
Old 09-19-2017, 04:22 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,937

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
When you are on this particular web server computer, what happens when you try to access the web address?
 
Old 09-19-2017, 08:01 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
Are you trying to access the machine locally from within your LAN?

If you are trying to access the address from the Big Wide World, know that many ISPs (including mine) block port 80 for any but business level accounts.

Last edited by frankbell; 09-19-2017 at 08:04 PM.
 
Old 09-20-2017, 01:28 AM   #4
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,141

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
try posting the output of this:

netstat -ntlup | grep 80
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 6: iptables blocking certain IP ranges on a certain port range templar Linux - Security 1 05-16-2011 11:23 AM
iptables port 25 connection limit without blocking Barracudas/Smart_Phones rhbegin Linux - Security 4 01-17-2011 01:54 AM
[SOLVED] Port Forwarding to Debian box cov Linux - Networking 1 12-01-2009 05:20 AM
hlds on a debian box not listening on port rdjw Linux - Games 2 06-18-2009 07:47 AM
Best Way To Port Debian Installation To Another Box merrsh1 Linux - Software 4 06-24-2007 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration