{"id":5805,"date":"2019-12-11T23:37:34","date_gmt":"2019-12-12T04:37:34","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=5805"},"modified":"2019-12-11T23:37:34","modified_gmt":"2019-12-12T04:37:34","slug":"external-access-to-libvirt-vms","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5805","title":{"rendered":"External Access to libvirt VMs"},"content":{"rendered":"<p>Instead of trying to map individual ports over to guest OS&#8217;s, I am just routing traffic to the VM bridge from the host.<\/p>\n<p><em>Testing to ensure it works:<\/em><\/p>\n<p>systemctl start firewalld<br \/>\nfirewall-cmd &#8211;direct &#8211;passthrough ipv4 -I FORWARD -i br5 -j ACCEPT<br \/>\nfirewall-cmd &#8211;direct &#8211;passthrough ipv4 -I FORWARD -o br5 -j ACCEPT<br \/>\nfirewall-cmd &#8211;reload<\/p>\n<p><em>Permanent setup:<\/em><\/p>\n<p>systemctl enable firewalld<br \/>\nfirewall-cmd &#8211;permanent &#8211;direct &#8211;passthrough ipv4 -I FORWARD -i br5 -j ACCEPT<br \/>\nfirewall-cmd &#8211;permanent &#8211;direct &#8211;passthrough ipv4 -I FORWARD -o br5 -j ACCEPT<br \/>\nfirewall-cmd &#8211;reload<\/p>\n<p>Then I just added a static route for the network defined on br5 to the VM host.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instead of trying to map individual ports over to guest OS&#8217;s, I am just routing traffic to the VM bridge from the host. Testing to ensure it works: systemctl start firewalld firewall-cmd &#8211;direct &#8211;passthrough ipv4 -I FORWARD -i br5 -j ACCEPT firewall-cmd &#8211;direct &#8211;passthrough ipv4 -I FORWARD -o br5 -j ACCEPT firewall-cmd &#8211;reload Permanent setup: &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[861,862,860],"class_list":["post-5805","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-kvm","tag-libvirt","tag-qemu"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5805"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5805\/revisions"}],"predecessor-version":[{"id":5806,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5805\/revisions\/5806"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}