Custom Firewall rule

Customer support forums for Atomic Protector (formerly Atomic Secured Linux). There is no such thing as a bad question here as long as it pertains to using Atomic Protector. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)
KREATOR
New Forum User
New Forum User
Posts: 3
Joined: Thu Sep 10, 2015 5:46 am
Location: USA

Custom Firewall rule

Unread post by KREATOR »

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.
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: Custom Firewall rule

Unread post by faris »

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.
--------------------------------
<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>
Post Reply