[SOLVED] The firewall doesn't work.

YANGBUJANG

Active Member
Nov 12, 2019
2
0
41
50
The firewall doesn't work.

I can not speak English.
I'm using a translator. sorry.

I created a VM.
Guest's OS is Ubuntu 22.04.
There are two NICs.

The first NIC uses a public IP.
The second NIC uses a private IP.

Up to this point, the firewall is operating normally.

However, a problem occurs when you create a bridge on the NIC in Ubuntu.
Ping to the outside does not work.
SSH connection to the outside is not possible.
However, SSH connection is possible to the VM from outside.
If you turn off the firewall, everything works normally.

Please help me.
 
I solved it.
I couldn't solve the firewall problem.
I created vmbr1 on the host.
And I set up NAT on vmbr1 with iptables on the host.
And the ubuntu vm used a private IP instead of a public IP.
I disabled the firewall.

Thank you~