How I can disallow vistors to access webmail by closing port 2096 ?
How I can disallow vistors to access webmail by closing port 2096 ?
If you want to block access to webmail for all users you can just add a firewall rule (note webmail uses two ports: 2095 and 2096 [SSL]):
Code:iptables -A INPUT -p tcp -m tcp --dport 2095:2096 -j DROP
NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!
Correct, that is a shell command.
NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!
If you have only a shared account you will not have access to do something like blocking a port as that is considered a admin-level task. YOu'll have to ask your server administrator to do this for you.
NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!
As my prevoius question to close port 2096
Close port 2096
This is will block port 2096 in whole server or only one shared account while other shared accounts will be not blocked ?
The GNU iptables command is used to block and route traffic on specified ports; it operates against the network packets that traverses the network interface on a server. This program has no concept of applications like WHM & cPanel, or server system environments like accounts.
David Neimeyer
Integration Developer
sdk.cpanel.net
APIs: XML-API API1 & API2
Check Out: Developer Downloads Integration Blog
Need Support? Support Ticket Developer Forum Feature Requests
If you want to block webmail for most users but allow for others and you do have root WHM access, you might consider using WHM > Host Access Control instead. You can allow set IPs to access webmaild (the webmail deamon for cPanel) and deny all other IPs.
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support
Submit a ticket | Check an existing ticket