quietas
January 26th, 2009, 06:25 PM
Hey folks, I have an issue which I am not sure is Apache or my router though I think I have narrowed it down to something with the Ubuntu server. It's running 8.10 server and current updates.
I know the box works as I have Wordpress, GLPI, and OCS NG all running with their appropriate web interfaces.
The catch is when I access if from off of our local subnet. I have 4 VLANs managed by Cisco routers which our ISP handles. They say that the connection is not filtered or blocked and have tested port 80 to work.
192.168.13.0 - Main office, server here, my desk here
192.168.30.0 - Satellite office
192.168.40.0 - Satellite office
192.168.60.0 - Satellite office
192.168.70.0 - Satellite office
I have been testing through the .60 subnet as I have a Ubuntu 7.10 box over there I can SSH into. I can ping just fine, but nmap reports port 80 is closed|filtered. Lynx of course cannot connect and I can't telnet to port 80 as well. The server can get out just fine to our web as well as the separate LANs.
Let me know what I can help with.
user@server:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.13.201
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.13.12
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.13.10
dns-search domain.com
user@server:~$ cat /etc/hosts
127.0.0.1 localhost
192.168.13.201 server.domain.com server
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
server.domain.com
user@server:~$ cat /etc/resolv.conf
search domain.com
nnameserver 192.168.13.10
user@server:~$ sudo netstat -pln --inet
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 4148/mysqld
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 4223/smbd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5450/apache2
tcp 0 0 192.168.13.201:53 0.0.0.0:* LISTEN 4037/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4037/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 4058/sshd
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 4037/named
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 4223/smbd
udp 0 0 192.168.13.201:137 0.0.0.0:* 4221/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 4221/nmbd
udp 0 0 192.168.13.201:138 0.0.0.0:* 4221/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 4221/nmbd
udp 0 0 192.168.13.201:53 0.0.0.0:* 4037/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 4037/named
udp 0 0 0.0.0.0:51400 0.0.0.0:* 4037/named
user@server:~$ cat /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>
user@server:~$ cat /etc/apache2/sites-enabled/000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
I know the box works as I have Wordpress, GLPI, and OCS NG all running with their appropriate web interfaces.
The catch is when I access if from off of our local subnet. I have 4 VLANs managed by Cisco routers which our ISP handles. They say that the connection is not filtered or blocked and have tested port 80 to work.
192.168.13.0 - Main office, server here, my desk here
192.168.30.0 - Satellite office
192.168.40.0 - Satellite office
192.168.60.0 - Satellite office
192.168.70.0 - Satellite office
I have been testing through the .60 subnet as I have a Ubuntu 7.10 box over there I can SSH into. I can ping just fine, but nmap reports port 80 is closed|filtered. Lynx of course cannot connect and I can't telnet to port 80 as well. The server can get out just fine to our web as well as the separate LANs.
Let me know what I can help with.
user@server:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.13.201
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.13.12
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.13.10
dns-search domain.com
user@server:~$ cat /etc/hosts
127.0.0.1 localhost
192.168.13.201 server.domain.com server
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
server.domain.com
user@server:~$ cat /etc/resolv.conf
search domain.com
nnameserver 192.168.13.10
user@server:~$ sudo netstat -pln --inet
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 4148/mysqld
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 4223/smbd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5450/apache2
tcp 0 0 192.168.13.201:53 0.0.0.0:* LISTEN 4037/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 4037/named
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 4058/sshd
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 4037/named
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 4223/smbd
udp 0 0 192.168.13.201:137 0.0.0.0:* 4221/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 4221/nmbd
udp 0 0 192.168.13.201:138 0.0.0.0:* 4221/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 4221/nmbd
udp 0 0 192.168.13.201:53 0.0.0.0:* 4037/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 4037/named
udp 0 0 0.0.0.0:51400 0.0.0.0:* 4037/named
user@server:~$ cat /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
Listen 443
</IfModule>
user@server:~$ cat /etc/apache2/sites-enabled/000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>