Page 1 of 1

Alter Vesta Firewall From The Command Line

Posted: Fri May 26, 2017 3:06 pm
by Jetmo

I'm an experienced Linux user with a fresh install of CentOS 7 and Vesta CP on my VPS. Never used Vesta CP before, but so far it looks good and I'm anxious to learn it.

However, what I do on all my VPSs with iptables is restrict cPanels to my IP address. I would like to do the same thing with Vesta and I can - obviously - but how can I do this when Vesta controls the firewall? My IP address changes frequently. I have an iptables script where I change the cPanels port quickly and I can then log in.

If I block port 8083 to only my IP address and then it changes I can't log into Vesta. I would need to change the firewall rules via the command line. How would I do that?