Author Topic: Lost access to CWP  (Read 11509 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Lost access to CWP
« on: May 05, 2014, 02:14:08 AM »
Hi,

I have installed OpenVPN, and after updating (according to the instructions) iptables/csf I lost access to my control panel. Getting generic nginx error 50x.html page instead.

Those are the updated rules:
Code: [Select]
[root@box ~]# iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
[root@box ~]# iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-source xxx.xxx.xxx.xxx
[root@box ~]# iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source xxx.xxx.xxx.xxx
[root@box ~]# iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
[root@box ~]# iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
[root@box ~]# iptables -A FORWARD -j REJECT
[root@box ~]# iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
[root@box ~]# iptables -t nat -A POSTROUTING -j SNAT --to-source xxx.xxx.xxx.xxx
[root@box ~]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]

Can you tell what went wrong and how to fix it? Everything else is working fine.

Thank you!



Offline
*
Re: Lost access to CWP
« Reply #1 on: May 05, 2014, 09:19:48 PM »
try service cwp restart
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Lost access to CWP
« Reply #2 on: May 05, 2014, 09:34:51 PM »
Thanks.

That's what I got:

Code: [Select]
Stopping nginx:                                            [  OK  ]
Stopping mysqld:                                           [  OK  ]
Stopping php-fpm:                                          [  OK  ]
Starting nginx:                                            [  OK  ]
Starting mysqld:                                           [  OK  ]
php-fpm is stopped
[root@box ~]# [05-May-2014 17:31:08] NOTICE: fpm is running, pid 17452
[05-May-2014 17:31:08] NOTICE: ready to handle connections
[05-May-2014 17:31:25] WARNING: [pool webpanel] child 17466 said into stderr: "ERROR: Connection disallowed: IP address 'xxx.xxx.xxx.xxx' has been dropped."