Re: Howto make Firewalld allow remote SSH into a Virtual Machine?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/24/2013 05:55 AM, Patrick Lists wrote:

I just did a fresh F19 x86_64 install on my workstation, copied a
Virtual Machine to it and started the VM (has IP addr 192.168.122.20).
Now I would like to be able to ssh into the VM from another box on my
local LAN like my laptop. Thus far I can't make it work. Steps:
So how do I make firewalld allow pings and ssh from remote hosts?

For the archive:

In Fedora's default configuration, there is one virtual network for hosts in a NAT configuration. In that configuration, you cannot achieve what you asked. There's no way to allow PING to the internal hosts. You *can* allow SSH, but only by forwarding specific ports.

There are other supported network configurations for libvirt. In addition to NAT networks, you can have routed or bridged networks:
http://wiki.libvirt.org/page/VirtualNetworking#Examples_of_common_scenarios

In a routed network, the firewall configuration should be pretty straightforward, but you'd need to add a route to the guest network at every remote host, or at the router that they share.

In a bridged network, guests are on the same LAN as the host and normally aren't subject to the host's firewall rules:
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/sect-Virtualization-Network_Configuration-Bridged_networking_with_libvirt.html

Bridged networking is the most straightforward configuration if you want remote access to your guests.
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux