[Gllug] Can't connect to apache locally

Darren Beale bealers at gmail.com
Mon Oct 25 12:56:00 UTC 2004


Hi

I cannot connect to apache on localhost and I'm guessing that it's a
routing problem. As it's a production machine I don't want to do any
half-arsed messing about with the routing tables so I wondered if
someone here had any ideas?

links foo.url.com sits there doing nothng and a php
fsockopen("foo.url.com","80") gives (110) Connection timed out

The machine has two network cards:

eth0 is the NATed interface on 10.0.3.0/24
eth1 is the DMZ interface 10.0.2.0/24

Apache is bound to 10.0.3.131 and the VirtualHost for foo.url.com uses
the same IP

the firewall (ipcop 1.3) green interface is 10.0.3.130 and it's
forwarding xxx.xxx.xxx.131:80 to 10.0.3.131:80

ping foo.url.com comes back with the external IP

I then try and add the eth0 and eth1 interface IP's to /etc/hosts one
at a time to try and avoid the firewall to see if it makes any
difference, but it doesn't.

------------8<------------

netstat -nr

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.3.128      0.0.0.0         255.255.255.192 U         0 0          0 eth0
10.0.0.0        10.0.2.1        255.255.255.0   UG        0 0          0 eth1
10.0.1.0        10.0.2.1        255.255.255.0   UG        0 0          0 eth1
10.0.2.0        0.0.0.0         255.255.255.0   U         0 0          0 eth1
0.0.0.0         10.0.3.130      0.0.0.0         UG        0 0          0 eth0

------------8<------------

ifconfig

eth0      Link encap:Ethernet  HWaddr 00:04:75:8F:7E:AE
          inet addr:10.0.3.131  Bcast:10.0.3.191  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37378056 errors:0 dropped:0 overruns:1 frame:0
          TX packets:34887656 errors:0 dropped:0 overruns:0 carrier:4
          collisions:420629 txqueuelen:1000
          RX bytes:1872928448 (1.7 GiB)  TX bytes:3918182752 (3.6 GiB)
          Interrupt:18 Base address:0x2800

eth0:0    Link encap:Ethernet  HWaddr 00:04:75:8F:7E:AE
          inet addr:10.0.3.132  Bcast:10.0.3.191  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:18 Base address:0x2800

eth0:1    Link encap:Ethernet  HWaddr 00:04:75:8F:7E:AE
          inet addr:10.0.3.133  Bcast:10.0.3.191  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:18 Base address:0x2800

eth1      Link encap:Ethernet  HWaddr 00:D0:B7:65:C0:F7
          inet addr:10.0.2.131  Bcast:10.0.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25555891 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80989741 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1880147851 (1.7 GiB)  TX bytes:104337893 (99.5 MiB)
          Interrupt:21

eth1:0    Link encap:Ethernet  HWaddr 00:D0:B7:65:C0:F7
          inet addr:10.0.2.133  Bcast:10.0.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:21

------------8<------------


-- 
IE uers: I suggest that you upgrade to a speedy, stable, secure and
highly configurable web browser.
http://www.GetFirefox.com (it really is very good)
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list