Since I'm using KVM as virtualization engine, I just realize that ufw is block all traffic to my VMs. I found a page which is gave me a solution for this.
Based on the clue, I did this :
- Edit /etc/ufw/before.rules :
You must write exactly like that. -m physdev --physdev-is-bridged is a syntax.
- Edit /etc/sysctl.conf , and add these lines :
- Enable firewall
- If you do this from remote computer, answer "y" to this questions. But please BE CAREFULL that you might broke you ssh connection. Make sure that you already allow ssh service (and it's port if it is not default) to the firewall.
Command may disrupt existing ssh connections. Proceed with operation (y|n) ? yCongrats, now your firewall is online !!
Firewall is active and enabled on system startup