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:
[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!