Date: Tue, 7 Apr 2015 07:04:40 +0000 From: Anton Farber <dr_sweety_1337@hotmail.com> To: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org> Subject: RE: FreeBSD sometimes uses the router for packets on the local network Message-ID: <BLU184-W7781B661517FF838390C84D6FD0@phx.gbl> In-Reply-To: <CAOtMX2izwRe_7K6ZjJOzbAwRcQLy2mRh0V6CRR3Lh7u8UXe9fA@mail.gmail.com> References: <BLU184-W192296030E569968682DFFD6FE0@phx.gbl>, <CAOtMX2izwRe_7K6ZjJOzbAwRcQLy2mRh0V6CRR3Lh7u8UXe9fA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Mon=2C Apr 6=2C 2015 at 12:15 PM=2C Anton Farber > <dr_sweety_1337@hotmail.com> wrote: > > I've opened a thread on the FreeBSD networking forum (https://forums.fr= eebsd.org/threads/jail-fails-to-connect-to-main-host.50833/) as sometime ag= o my FreeBSD server (initially running 10.1=2C now CURRENT) started to beha= ve strangely after an upgrade from 10.0 to 10.1. I first noticed that a jai= l (192.168.1.5) wasn't able to contact the base system (192.168.1.1). Runni= ng a tcpdump revealed the following: the jail is using em0 instead of lo0 f= or communicating with the base system: >=20 > You need to look at your routing tables. From inside the jail=2C run > "netstat -rn -f inet". You probably won't see any entry for 127.0.0.1 > or 127.0.0.0/8. Those are the entries that your jail needs in order > to talk to the base system. You can add them=2C but think carefully. > Many server processes=2C such as ntpd=2C have reduced security for > connections coming over 127.0.0.1. Whether or not it is appropriate > to add those routes depends on why you are using a jail. Ok=2C so the behaviour I'm seeing regarding the communication between jail = and base system is to be expected then. My reason for posting it was=2C tha= t I was unsure whether it might have anything to do with the main problem. = I don't think that this is the case so the question remains=2C why is my Fr= eeBSD server sometimes using the router for contacting hosts on the local n= etwork? Regards=2C Anton =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BLU184-W7781B661517FF838390C84D6FD0>