How to change VestaCP port and add firewall rules

Here is a simple all in one command solution that will do it for you from terminal

If you have not modified the default firewall rules #2 is for the 8083. If you have you can use this longer command to be more safe

Breakdown of the command

The parts of the first example are as follows so that you can see whats getting done and one command at a time.

Changes the port in the nginx file

Add firewall rule for new port using VestaCP command

Remove old port firewall rule using VestaCP command

Restart VestaCP


Feel free to download and see what the file actually does, and if you want to upload a file and run local here is the script in the file.


Tui là jamesblackvn!

Gửi phản hồi

Website này sử dụng Akismet để hạn chế spam. Tìm hiểu bình luận của bạn được duyệt như thế nào.