Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2014 11:42:45 +0100
From:      Karl Pielorz <kpielorz_lst@tdx.co.uk>
To:        Marko Lerota <mlerota@pdsvelebit.hr>, FreeBSD XEN <freebsd-xen@freebsd.org>
Subject:   Re: Routing/NAT problem on Xenserver 6.2 with virtual firewall
Message-ID:  <9864A2A7BE97EB706ED0FC04@Mail-PC.tdx.co.uk>
In-Reply-To: <86k359p1qm.fsf@arch.perpetuum.hr>
References:  <86k359p1qm.fsf@arch.perpetuum.hr>

next in thread | previous in thread | raw e-mail | index | archive | help

--On 12 September 2014 12:33 +0200 Marko Lerota <mlerota@pdsvelebit.hr> 
wrote:

> Can somebody help me in this situation? I don't know what's wrong.
> The firewall/NAT doesn't work if the virtual hosts are on the same
> machine where firewall is. The funny thing is that ICMP packets are
> passing through, but ordinary traffic does not. Do I have to change
> something on Xenserver dom0 or PF firewall?

This is a known bug - see:

  <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188261>;

It's also an absolute PITA :( - It also affects DHCP (as I found out a 
while ago).

You either have to run a separate pool for the 'router' VM's (and setup the 
VM's accordingly balanced between pools) - or you can run the router VM's 
in HVM mode only, and they will work (i.e. xn0 etc. become re0 etc.) - 
performance isn't brilliant in that mode, and also as it's HVM they're not 
'agile' (so no xen motion migration, no moving storage while they're 
running).

I'd love to look at this further - but I don't have enough knowledge about 
either Xen or how the 'netfront' code is handled, and have been unable to 
find anyone either interested enough to look - or with the time to look :-(

You're more than welcome to add a '/me too' to the PR :)

-Karl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9864A2A7BE97EB706ED0FC04>