CSF – open port for only 1 specific domain and IP

1. Assign a dedicated IP to that account – say 1.2.3.4
2. Add the following line in your /etc/csf/csf.allow

tcp|in|d=5000|d=1.2.3.4

3. Restart csf with : csf -r

This will allow incoming connections to port 5000 on IP 1.2.3.4 precisely 1.2.3.4:5000

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s