Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Xor

Pages: [1]
1
Installation / 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!



2
Apache / Apache LogFormat problem
« on: April 20, 2014, 10:11:28 PM »
Hello,

On a fresh default install of WebPanel (CentOS 6), saving of httpd.conf via GUI results in error:

Code: [Select]
Starting httpd: Syntax error on line 497 of /etc/httpd/conf/httpd.conf:
LogFormat takes 1-2 arguments, a log format string (see docs) and an optional format name
                                                           [FAILED]

The LogFormat block hasn't been touched. Commenting out the top two directives (combined and common) seems to fix the issue and httpd restarts normally. I do wish to use combined log though.

Any idea what could be wrong?

Thank you in advance.

Pages: [1]