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.
I have my VPS account setup recently, as almost VPS provider offer FULL MANAGE service, so in this case, do i need to install firewall on my VPS server?
Presumably you mean a Virtual Private Sever, root on a linux server with an
internet ip address and bandwidth.
If you are paying for managed service then your provider should answer questions like this. Ask them.
If there are no security holes then you don't need a firewall. If you have security holes you should fix the holes. If you are running services that should not be accessable from other machine then turn off the services or configure them to only listen on the localhost interface.
I should add that if you want to go for maximum possible secuirty over the box being easy to use you could add a firewall to block all connection excepts those that are known to be required, eg if the box just runs a webserver you could block all connections except incoming connections to port 80. If someone cracks the box using an exploit for the web server software and you have the server processing running as a none root user they will have trouble spawning a shell on another port, ftping a rootkit into the box and doing other typical activity.
The "everything that is not specifically permitted is forbidden" approach is a pain when you firewall yourself out of the box and can't connect with
ssh. Blocking all outgoing connections will break non passive mode ftp.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.