[SOLVED] VM MASQUERADE and Firewall issue

Karpiu

New Member
Sep 26, 2016
8
0
1
41
Poland
Hello,
I set MASQUERADE for all my VM on vmbr0 and all works fine until I set Firewall on interface for VM after that I can't go out to Internet. All my politics on input/out set for ACCEPT but still going out doesn't work at all. Did I miss something ? When Firewall is disabled all works well.
 
Thx for a hint, It works great but sad in this solution is manual adding to every VM/CT :(
In your iptables lane I had to add fwbr<VMID>i0 instead of <VMID>i0 in input interface:

Code:
iptables -t raw -A PREROUTING -i fwbr103i0 -j CT --zone 1

Is there any solution to turn this trick automatically ?
 
I already mailed with @dietmar and this is not expected behaviour, yet I do not know if this will be fixed in upcoming releases or not. I have not filed a bug report about this.