Routing/NAT problem on Xenserver 6.2 with virtual firewall

Karl Pielorz kpielorz_lst at tdx.co.uk
Fri Sep 12 10:45:35 UTC 2014


--On 12 September 2014 12:33 +0200 Marko Lerota <mlerota at 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


More information about the freebsd-xen mailing list