Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
Open Ports in CSF Firewall: WHM 2087 and SSH Access | Eka Server
CSF FIREWALL TECHNICAL GUIDE

CSF Firewall Configuration: Safely Open WHM, SSH and cPanel Ports

ConfigServer Security & Firewall simplifies iptables management on cPanel servers, but disabling and re-enabling CSF is not a permanent fix. A correct diagnosis separates the listening service, CSF policy, LFD blocks and the provider-level network firewall.

2087/TCPSecure WHM administration port
22/TCPDefault SSH port
TCP_INAllowed inbound TCP ports
LFDLogin and process monitoring daemon
01
DIAGNOSIS

Separate the symptoms by technical layer

The same error screen can originate from different services. Separate network reachability, service state, firewall policy and authentication before changing anything.

Connection timed out

Traffic may not reach the server or may be silently dropped by a firewall.

Connection refused

The host is reachable but no service is listening on the target port, or an active reject rule is applied.

Access works when CSF is disabled

The fault is in CSF/LFD policy or allow and deny ordering, not necessarily the service.

Local test works, remote test fails

The service is healthy; inspect CSF, the provider firewall and routing.

02
ROOT CAUSE

Investigate the most likely causes in risk order

Instead of disabling the entire protection stack, prove which rule blocks access and change only the required scope.

High

Custom SSH port missing from TCP_IN

sshd can listen correctly while CSF silently drops inbound traffic to the new port.

High

Administrator IP is denied or temporarily banned

csf.deny, a temporary ban or an LFD trigger can block the management address.

Medium

TESTING or CSF state is misunderstood

Rules may be flushed periodically in TESTING mode, while a fully disabled CSF provides no firewall protection.

Medium

Provider-level firewall blocks the port

Correct host rules cannot override a closed cloud or datacenter firewall.

03
SAFE REMEDIATION FLOW

Apply each step in order and keep it reversible

Back up the current configuration, validate syntax and keep a second administration session open before every service or firewall change.

01

Prepare console access

Do not modify firewall policy without KVM, VNC or a provider web console.

02

Verify listening sockets

Use ss to confirm that WHM and SSH ports are in LISTEN state and identify the owning process.

03

Back up the current CSF configuration

Create timestamped copies of csf.conf and the allow and deny lists.

04

Allow the administrator IP narrowly

For a static address, add only the required /32 management IP instead of exposing ports globally.

05

Match IPv4 and IPv6 policy

Confirm the WHM and SSH ports in TCP_IN and, when IPv6 is enabled, TCP6_IN.

06

Reload CSF and test remotely

Keep the current session open until a second connection succeeds after csf -r.

04
COMMANDS

Run commands as root and replace sample values

Replace example IP addresses, ports and paths with your own values. Review command output before moving to the next step.

Check ports and services
ss -lntp | grep -E ':(22|2087|3458)[[:space:]]'
systemctl status sshd --no-pager -l
systemctl status cpanel --no-pager -l
Inspect CSF state and rules
csf -v
csf -g 203.0.113.10
csf -g 3458
grep -E '^(TESTING|TCP_IN|TCP6_IN|TCP_OUT)' /etc/csf/csf.conf
Allow the administrator IP
csf -a 203.0.113.10 'Eka administrator IP'
csf -r
csf -g 203.0.113.10
Back up configuration
TARIH=$(date +%F-%H%M%S)
cp -a /etc/csf/csf.conf /etc/csf/csf.conf.$TARIH
cp -a /etc/csf/csf.allow /etc/csf/csf.allow.$TARIH
cp -a /etc/csf/csf.deny /etc/csf/csf.deny.$TARIH
Risk of administrative lockout

A wrong firewall, SSH or login-protection rule can make the server unreachable. Do not close management ports without KVM, VNC or provider console access.

05
FREQUENTLY ASKED QUESTIONS

Critical decision points

Is disabling CSF a valid permanent fix?

No. It only proves that the blocking layer is the firewall. The permanent fix is a narrow allow rule for the required port and administrator source address.

Is adding 2087 to TCP_IN enough?

Only when cpsrvd is listening on 2087 and any upstream firewall also permits the traffic. Verify with ss and a local curl request first.

What does Quick Allow IP do?

It places the address in csf.allow so CSF accepts it. Remove stale records when your public address changes.

Can CSF and firewalld run together?

cPanel documentation states that CSF does not function with firewalld. Parallel firewall managers can create conflicting and unpredictable policy.

07
RELATED GUIDES

Continue with the correct next step

EKA SERVER TECHNICAL KNOWLEDGE CENTER

Preserve access first, then harden security.

The correct security method is not to disable protection, but to measure the network, service and rule path and apply the narrowest safe change.

Technical support
Top