Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
Newbie here dealing with network security (!). I have an ftp/sshd/NX server that I need to access from the internet.
Originally, I accessed my server via ssh and ftp using passwords. I routinely closed these ports remotely via hardware firewall when I didn't need them. The firewall has an https web server (password protected) that is always accessible from the internet. So... I always had at least one port open on the network (firewall's web interface) and sometimes two (sshd) or three (ftpd).
Recently, I added a vpn utilizing shared-secret-keys (no passwords=no brute force attacks), and now can close off ports 21 and 22 to the outside. I think that I can even close the firewall's web interface to the outside too, right? Instead of 2 or 3 open ports I'll have one - which won't be susceptible to brute force attacks. Plus, I can still use all the above services once I'm connected to the vpn.
Aside from the threat of a stolen laptop with the shared-secret-key, am I right thinking that my new setup is more secure? Am I getting a free lunch?
Is your setup more secure? That is a tough question to answer as it depends on many factors. Based on what you have said, I would say yes for the reason that you are providing less exposure to the outside world by limiting your connections via OpenVPN.
Most of the 'script' attacks either try to brute force port 22 or scan of ssh. You have neither and will bypass most of that. To the best of my knowledge, there isn't a whole lot of interest in OpenVPN's port (UDP on port 1194) so you probably won't attract a lot of interest. Then as you pointed out, connections are based upon a password-less authentication using keys, which is reasonably secure.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.