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/25/2013 10:46 PM, Bill Davidsen wrote:
[snip]
The bridged network works wonders to solve this issue:
http://wiki.libvirt.org/page/Networking#Host_configuration_2

If you have another IP available, you can bind that to the same NIC and
use iptables to forward the connection.
    iptables -p tcp -d 288.41.42.43 --dport ssh -j DNAT 10.40.51.22

or use a non-standard port and send it to the ssh port on the VM. That
allows running a stock sshd on the VM.

I have a script in my firewall rules, which defines a bash function to
do all the stuff, then a one liner with parameters to do the setup. You
can even do some (very) crude load leveling by putting multiple machines
on the DNAT rule.

Thanks for the solution Bill. These VMs are not exposed to the Big Bad Internet. I decided to go with a bridge and after a bit of digging it's working fine now. The VMs all have SELinux in enforcing mode, their firewalls enabled and ssh access only via public key authentication.

Regards,
Patrick
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
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