Date: Sun, 16 May 2010 12:32:24 -0700 (PDT) From: Jeff <dejamuse@yahoo.com> To: freebsd-net@freebsd.org Subject: Net problem with server running in jail Message-ID: <755761.58686.qm@web62505.mail.re1.yahoo.com>
next in thread | raw e-mail | index | archive | help
I have been running PCBSD 8 (FreeBSD 8.0) with no problems until recently. I have an Apache server running in a jail (created by The Warden PBI) with = PHP, MySQL, and Drupal.=A0 I also run Firefox on the same machine to access= the internet and the local server for development.=A0 I've never had a pro= blem accessing the server until recently when I moved to a new location and= tried to set up the new network on a new router and internet connection.= =A0 I switched the NIC card to a static IP from DHCP and then access to the= server got really slow, like 15 seconds delay from 2 seconds before.=A0 Al= so, Drupal can no longer access the net to check for module updates and suc= h. I asked for advice at PCBSD and reconfigured some things that fixed the pro= blem for a while, but now nothing works, so they advised me to ask here.=A0= I don't know what precipitated this problem or exactly what's wrong. Originally, both the NIC and the jail IPs were assigned to the lagg0 device= .=A0 I have another machine with the same setup that has none of these prob= lems, but it's using PCBSD=A0 7.1.1. which has no lagg interface, just the = NIC itself. If I manually assign the static IP (192.168.1.10) to the NIC, re0, and leav= e the jail (192.168.1.12) assigned to lagg0, the latency problems disappear= but Drupal still cannot talk to the outside world.=A0 I shut down the fire= wall but it had no effect. I assigned both the jail and the NIC to re0, and disabled lagg0 but that di= dn't work. The router gateway is 192.168.1.2 Here is the current state: # ifconfig re0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 =A0=A0=A0=A0=A0=A0=A0 options=3D389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,= VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC> =A0=A0=A0=A0=A0=A0=A0 ether 00:24:8c:a1:b3:f7 =A0=A0=A0=A0=A0=A0=A0 inet6 fe80::224:8cff:fea1:b3f7%re0 prefixlen 64 scope= id 0x1 =A0=A0=A0=A0=A0=A0=A0 media: Ethernet autoselect (100baseTX <full-duplex>) =A0=A0=A0=A0=A0=A0=A0 status: active lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 =A0=A0=A0=A0=A0=A0=A0 options=3D3<RXCSUM,TXCSUM> =A0=A0=A0=A0=A0=A0=A0 inet6 ::1 prefixlen 128 =A0=A0=A0=A0=A0=A0=A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 =A0=A0=A0=A0=A0=A0=A0 inet 127.0.0.1 netmask 0xff000000 pflog0: flags=3D0<> metric 0 mtu 33152 pfsync0: flags=3D0<> metric 0 mtu 1460 =A0=A0=A0=A0=A0=A0=A0 syncpeer: 224.0.0.240 maxupd: 128 lo1: flags=3D8048<LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 =A0=A0=A0=A0=A0=A0=A0 options=3D3<RXCSUM,TXCSUM> lagg0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15= 00 =A0=A0=A0=A0=A0=A0=A0 options=3D389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,= VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC> =A0=A0=A0=A0=A0=A0=A0 ether 00:24:8c:a1:b3:f7 =A0=A0=A0=A0=A0=A0=A0 inet 192.168.1.10 netmask 0xffffff00 broadcast 192.16= 8.1.255 =A0=A0=A0=A0=A0=A0=A0 inet6 fe80::224:8cff:fea1:b3f7%lagg0 prefixlen 64 sco= peid 0x5 =A0=A0=A0=A0=A0=A0=A0 inet 192.168.1.12 netmask 0xffffffff broadcast 192.16= 8.1.12 =A0=A0=A0=A0=A0=A0=A0 media: Ethernet autoselect =A0=A0=A0=A0=A0=A0=A0 status: active =A0=A0=A0=A0=A0=A0=A0 laggproto failover =A0=A0=A0=A0=A0=A0=A0 laggport: re0 flags=3D5<MASTER,ACTIVE> -------------------------------------- # netstat -rn Routing tables Internet: Destination=A0=A0=A0=A0=A0=A0=A0 Gateway=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 F= lags=A0=A0=A0 Refs=A0=A0=A0=A0=A0 Use=A0 Netif=A0=A0=A0 Expire default=A0=A0=A0=A0=A0=A0=A0=A0 =A0 =A0=A0 =A0 192.168.1.2=A0=A0=A0=A0=A0= =A0=A0 UGS=A0=A0=A0=A0=A0=A0=A0 12=A0=A0=A0=A0=A0 266 =A0=A0 lagg0 127.0.0.1=A0=A0=A0=A0=A0=A0=A0 =A0 =A0=A0 link#2=A0=A0=A0=A0=A0=A0=A0=A0 = =A0=A0 =A0=A0 UH=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0 0=A0=A0=A0=A0=A0=A0=A0 0=A0= =A0 =A0 lo0 192.168.1.0/24=A0=A0=A0=A0 link#5=A0=A0=A0=A0=A0=A0=A0 =A0=A0 =A0=A0=A0 U= =A0=A0=A0=A0=A0 =A0 =A0 =A0=A0=A0 3=A0=A0=A0=A0=A0=A0 52 =A0 =A0 lagg0 192.168.1.10=A0=A0=A0=A0 =A0=A0 link#5=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0 =A0= =A0 UHS=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0 =A0=A0 lo0 192.168.1.12=A0=A0=A0=A0 =A0=A0 link#5=A0=A0=A0=A0=A0=A0=A0 =A0=A0 =A0=A0= =A0 UHS=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0 29=A0 =A0=A0 lo0 =3D> 192.168.1.12/32 =A0 link#5=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0 =A0 U=A0=A0=A0= =A0=A0=A0 =A0 =A0 =A0=A0 0=A0=A0=A0=A0=A0=A0=A0 0 =A0 =A0=A0 lagg0 AppleTalk: Destination=A0=A0=A0=A0=A0=A0=A0 Gateway=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 F= lags=A0=A0=A0 Netif Expire Internet6: Destination=A0=A0=A0=A0=A0=A0=A0=A0=A0=A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A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 U=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 lo0 ff02::%lagg0/32=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 fe80:= :224:8cff:fea1:b3f7%lagg0 U=A0=A0=A0=A0=A0=A0=A0=A0 lagg0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D On the older machine with PCBSD 7.1.1 where the same jail setup with the se= rver running Drupal has none of these problems, the setup is as follows (19= 2.168.1.11 is the machine's static IP, the jail is also on 192.168.1.12 but= I never run both servers at the same time) Not sure why but the jail IP do= esn't show up here: # ifconfig bge0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST>=0A metric 0 mtu = 1500 =A0=A0=A0=A0=A0=A0=A0 options=3D9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VL= AN_HWCSUM> =A0=A0=A0=A0=A0=A0=A0=0A ether 00:11:11:c3:7a:e2 =A0=A0=A0=A0=A0=A0=A0 inet 192.168.1.11 netmask 0xffffff00=0A broadcast 192= .168.1.255 =0A=A0=A0=A0=A0=A0=A0=A0 media: Ethernet autoselect (100baseTX <full-duplex= >) =A0=A0=A0=A0=A0=A0=A0=0A status: active plip0: flags=3D108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT>=0A metric 0= mtu 1500 lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST>=0A metric 0 mtu 16384 =0A=A0=A0=A0=A0=A0=A0=A0 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 =A0=A0=A0=A0=A0=A0=A0 inet6 ::1 =0Aprefixlen 128 =A0=A0=A0=A0=A0=A0=A0 inet 127.0.0.1 netmask 0xff000000 pfsync0: =0Aflags=3D0<> metric 0 mtu 1460 =A0=A0=A0=A0=A0=A0=A0 syncpeer: 224.0.0.240 =0Amaxupd: 128 =0Apflog0: flags=3D0<> metric 0 mtu 33204 ---------------------------------- #=0A netstat -rn Routing tables Internet: Destination=A0=A0=A0=A0 =A0=A0=A0 =0AGateway=A0=A0=A0=A0=A0=A0=A0=A0 =A0 = =A0 =A0 =A0=A0 Flags=A0=A0=A0=A0=A0=A0 Refs=A0=A0=A0=A0 Use =A0=A0 Netif=A0= =A0 Expire default=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0 =A0 =A0=0A 192.168.1.2=A0=A0=A0=A0= =A0 =A0 =A0=A0 =A0 UGS=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0 =A0 =A0 3323=A0=A0= =A0=A0 bge0 =0A127.0.0.1=A0=A0=A0=A0=A0=A0=A0 =A0 =A0 127.0.0.1=A0=A0=A0=A0=A0 =A0 =A0 = =A0 =A0 =A0 UH=A0=A0=A0=A0=A0=A0=A0 =A0 =A0 0=A0=A0=A0=A0=A0=A0 22=A0=A0 = =A0 =A0=A0 lo0 192.168.1.0/24=A0=A0=A0=A0 =0Alink#1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0 =A0 = =A0 =A0=A0 UC=A0=A0=A0=A0=A0=A0 =A0=A0 =A0 0=A0=A0=A0=A0=A0=A0 0=A0 =A0 =A0= =A0 =A0 bge0 192.168.1.2=A0=A0=A0=A0=A0=A0 =A0=A0 =0A00:21:29:e4:34:e4=A0 UHLW=A0=A0=A0= =A0=A0=A0 2=A0=A0=A0=A0=A0 447 =A0 =A0 =A0 bge0=A0=A0 1176 =0A192.168.1.255=A0=A0=A0=A0=A0 ff:ff:ff:ff:ff:ff =A0 =A0 =A0 =A0 =A0 =A0= =A0 UHLWb=A0=A0=A0=A0 1=A0=A0=A0=A0=A0=A0 59=A0 =A0 =A0 =A0=A0 bge0 Internet6: Destination=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A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A0=A0=A0 lo0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D What could cause the server latency to be so high, and why can't Drupal acc= ess the internet?=A0 I have had this problem on and off for years, going ba= ck to FBSD 6, but have never figured out the problem or how I got out of it= .=A0 This time nothing is working. Thanks, Jeff =0A=0A=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?755761.58686.qm>