Net problem with server running in jail

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Sun May 16 20:20:08 UTC 2010


On Sun, 16 May 2010, Jeff wrote:

> 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.  I also run Firefox on the same machine to access the internet and the local server for development.  I've never had a problem 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.  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.  Also, Drupal can no longer access the net to check for module updates and such.
>
> I asked for advice at PCBSD and reconfigured some things that fixed the problem for a while, but now nothing works, so they advised me to ask here.  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.  I have another machine with the same setup that has none of these problems, but it's using PCBSD  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 leave the jail (192.168.1.12) assigned to lagg0, the latency problems disappear but Drupal still cannot talk to the outside world.  I shut down the firewall but it had no effect.
>
> I assigned both the jail and the NIC to re0, and disabled lagg0 but that didn't work.
>
> The router gateway is 192.168.1.2
>
> Here is the current state:
...
> What could cause the server latency to be so high, and why can't Drupal access the internet?  I have had this problem on and off for years, going back to FBSD 6, but have never figured out the problem or how I got out of it.  This time nothing is working.

it's a bit hard to say and I admit I haven't read all the output I am
not quoting.

I'd suggest you'd check your resolv.conf inside the jail as DHCP
wouldn't update that one and as you moved, things might have changed?

/bz

-- 
Bjoern A. Zeeb                                     (from 21) Micky Rosa:
    But as we've all said, this game is about the past and the future,
    and tonight we forget about the past. We just focus on the future.


More information about the freebsd-net mailing list