Open Port for Specific IP Address in CSF?
Hi,
i wanted to open port for a specific Ip
i use this at csf.allow
tcp:in:d=3306:s=151.236.33.9
tcp:in:d=27015:s=151.236.33.9
tcp:in:d=27016:s=151.236.33.9
tcp:in:d=27017:s=151.236.33.9
tcp:in:d=27018:s=151.236.33.9
tcp:in:d=27019:s=151.236.33.9
and restarted CSF +LFD
but still Port is being blocked I'm kinda newbie so help me please
-
You were right but use | instead of : tcp|in|d=3306|s=151.236.33.9 tcp|in|d=27015|s=151.236.33.9 tcp|in|d=27016|s=151.236.33.9 tcp|in|d=27017|s=151.236.33.9 tcp|in|d=27018|s=151.236.33.9 tcp|in|d=27019|s=151.236.33.9 0 -
not working, :( do I need to open those ports globally first? Like using CSF.CONF's TCP_IN, TCP_OUT, UDP_IN, UDP_OUT ? 0 -
Hi, I will show you how to open Port for Specific IP Address in CSF via Commandline: - ]
- Login to SSH.
- Open /etc/csf/csf.allow in your preferred text editor. For the sake of this tutorial I'll be using nano.
- Add your rules to this file, one per line.
- We'll be adding lines in the same format as tcp/udp|in/out|s/d=port|s/d=ip. tcp|in|d=3306|s=151.236.33.9 tcp|in|d=27015|s=151.236.33.9 tcp|in|d=27016|s=151.236.33.9 tcp|in|d=27017|s=151.236.33.9 tcp|in|d=27018|s=151.236.33.9 tcp|in|d=27019|s=151.236.33.9 4. Save the file. If you're in nano, use ^X (Ctrl+X) and tell it "Y" to overwrite the file. 5. Restart CSF using csf -r.
0 -
Please understand that CSF is not provided or supported by cPanel. You may find the best support at CSF forums: ConfigServer Community Forum - Index page do I need to open those ports globally first?
My understanding is that entries in `csf.allow' will override '*_IN' and '*_OUT' settings in `csf.conf'. Muhammed's suggestions should help resolve your issue.0 -
well I will like to let you guys know that any of above solutions are not working I already tried them thousands of time, so that's why I'm here for a solution tcp|in|d=3306|s=151.236.33.9 tcp|in|d=27015|s=151.236.33.9 tcp|in|d=27016|s=151.236.33.9 tcp|in|d=27017|s=151.236.33.9 tcp|in|d=27018|s=151.236.33.9 tcp|in|d=27019|s=151.236.33.9 isn't working at any cost 0 -
Hi, I will show you how to open Port for Specific IP Address in CSF via Commandline:
- ]
- Login to SSH.
- Open /etc/csf/csf.allow in your preferred text editor. For the sake of this tutorial I'll be using nano.
- Add your rules to this file, one per line.
- We'll be adding lines in the same format as tcp/udp|in/out|s/d=port|s/d=ip. tcp|in|d=3306|s=151.236.33.9 tcp|in|d=27015|s=151.236.33.9 tcp|in|d=27016|s=151.236.33.9 tcp|in|d=27017|s=151.236.33.9 tcp|in|d=27018|s=151.236.33.9 tcp|in|d=27019|s=151.236.33.9 4. Save the file. If you're in nano, use ^X (Ctrl+X) and tell it "Y" to overwrite the file. 5. Restart CSF using csf -r.
Doesn't works tried earlier too0 -
@Jr Sarath, I'd recommend reaching out on CSF forums, since this issue specifically concerns CSF, and no responses here have helped: ConfigServer Community Forum - Index page 0 -
I wish they could respond like you, they didn't responded since last 2 days, anyways I have another enquiry to do, cPanel remote MySQL do i need to open port 3306 via Firewall to enable remote sql ? coz adding host ip into user cPanel isn't working, i also clicked on "Click here" button on additional MySQL host in WHM 0 -
do i need to open port 3306 via Firewall to enable remote sql ?
Yes, you need to open 3306 port on your server firewall (CSF) inorder to access the database remotely. Regarding CSF port issue, sorry to hear that you are still having issues, you can contact CSF support to resolve this issue as @cPWilliamL mentioned.0
Please sign in to leave a comment.
Comments
9 comments