KVM networking: Firewall blocks traffic between guests on private network
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
KVM networking: Firewall blocks traffic between guests on private network
Hi all.
I'm playing with KVM, and have three computers: My host and two guest, all running linux of course. The setup is like this:
Code:
Internet -- host -- virbr1 (private network) -- guest1 and guest2
|
|
virbr0 (default KVM network)-- guest1
In words I have a private network defined which uses virbr1, while the default NET'ed KVM network uses virbr0.
Now for the first question, I'm having troubles setting up the firewall. For startes, I'm trying to get guest1 and guest2 to talk to one another on the private network. The host can reach both guests on that network, but they can't reach each other. I've set up forwarding by echoing "1" into /proc/sys/net/ipv4/ip_forward, but without success. Anyone knows why the bridge virbr1 don't forward packets?
Btw, I'm using guarddog to manipulate iptables, so advice on how to get things working using guarddog would be even better.
I am having this exact same problem. Did you get it to work? also, my virbr0 automatically assigns my router ip address thus creating a mess in my network. I have to manually change it everytime the server is rebooted. Any leads??
I am having this exact same problem. Did you get it to work? also, my virbr0 automatically assigns my router ip address thus creating a mess in my network. I have to manually change it everytime the server is rebooted. Any leads??
thanks
I don't think I got this up and running successfully. Since then I've reinstalled my computer, and are running guests on the default network setup.
Well just an update, I got this working. It was way simpler than what I thought. I was able to run everything with libvirt. I followed this instructions(just the part of bridge networking):
and then I started a new virtual guest using virt-manager remotely. Also note that when creating a virtual guest using virt-manager you have to explicitly type the bridge network which in this case was br0. I have connectivity between host/guests and LAN. Perfect and simple
Hope this helps anyone out there who struggled like I did.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.