Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've set up a number of guests running on kvm on Ubuntu. Network access for the guests is via network bridge with br0 sitting on top of eth0. I have ufw running on the host machine and this is restricting traffic to the host. Is there a way to make the rules on the host apply to all the guests, so blocking a port on the host firewall would prevent access on all the guests?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I'm not sure about ufw specifically, but I can block / filter ports to guests by using iptables on the host. You must add the rules to the FORWARD chain. If you can access the FORWARD chain from ufw, then add your rules to it, and they should apply to the guests as well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.