Thursday, January 3, 2019

Firewall Rules For OpenVZ VPS?



I'm in the process of setting up a VPS server that I eventually plan to use for light web and email server operations.



I'd like it to be reasonably secure but I'm not all that familiar with iptables. Is there an easier way to configure the firewall access?



Thanks,



M


Answer




A more user-friendly approach to iptables that I've used is the CSF firewall. However there is one big caveat for you since you are running an OpenVZ VPS - the use of iptables at a VPS level requires your Hosting Provider to make some changes (See this SF question & here) at the Host Node (ie, physical server hosting your VPS) level. Unless they are willing to do that, you won't have much luck.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...