Go Back   Web Server Hosting Forum by BODHost > Support > Control Panel Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-10-08, 19:25
BOD Member
 
Join Date: Oct 2008
Posts: 30
Default Problem to access cPanel / WHM /webmail after enabling firewall on VPS.

This is caused for a basic reason; Virtuozzo was designed by the people who created Plesk. As such, by default, cPanel's and WHM's ports are closed in iptables. We will need to be open them using SSH.

As root, run the following commands:

Quote:
/sbin/iptables -A VZ_INPUT -p tcp -m tcp --dport 2082 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp --dport 2083 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp --dport 2086 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp --dport 2087 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp --dport 2095 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp --dport 2096 -j ACCEPT
To save the firewall changes, use the following:

Quote:
/etc/rc.d/init.d/iptables save
You should see content:

Quote:
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
The firewall changes will take effect immediately and you can see all your firewall rules by using following command:

Quote:
iptables --list
__________________
Regards
George
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 03:24.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.