Hello,
I am trying to write a firewall rule to do the following:
I have a server with CPanel and have two IPs. One is the main system IP and the other is a dedicated IP for a website. I want to block access to a certain port being accessed from the website's ip. For example: example.com:2083 will allow me to access the cpanel login but I want to block this and just access from https://MAIN_IP:2083 How can I do this in ASL firewall?
Thanks.
Custom Firewall rule
Re: Custom Firewall rule
in the ASL GUI:
Click on Firewall, then on Firewall Rules
In the left hand Tables and Chains section, click on the INPUT item under the "filter" chain.
Click on ADD RULE (as opposed to QUICK RULE)
Add a comment
Change Append to Insert
Make sure the Chain is INPUT (it should be)
Change Jump Target to DROP
in Local IPs, select the IP on your system that you want to add the rule to
Add the port you want under Local Ports
Click on Save Rule button.
And that's it - you are done.
Click on Firewall, then on Firewall Rules
In the left hand Tables and Chains section, click on the INPUT item under the "filter" chain.
Click on ADD RULE (as opposed to QUICK RULE)
Add a comment
Change Append to Insert
Make sure the Chain is INPUT (it should be)
Change Jump Target to DROP
in Local IPs, select the IP on your system that you want to add the rule to
Add the port you want under Local Ports
Click on Save Rule button.
And that's it - you are done.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>