Have just installed openvpn on Centos 6.3 and now the cpsvrd stops and fails to restart. I'm fairly sure that the issue relates to iptables, because when I restart csf my iptable modifications are cleared and the problem goes away. Or when I reissue the iptable commands the problem returns.
For installing openvpn I followed this: https://safesrv.net/install-openvpn-on-centos/
And the iptable commands which seem to be the cause are:
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -A FORWARD -j REJECT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -j SNAT --to-source 123.123.123.123
(with 123.123.123.123 changed to my own ip)
Any ideas on what could be the problem ... and how to fix it?
For installing openvpn I followed this: https://safesrv.net/install-openvpn-on-centos/
And the iptable commands which seem to be the cause are:
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -A FORWARD -j REJECT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -j SNAT --to-source 123.123.123.123
(with 123.123.123.123 changed to my own ip)
Any ideas on what could be the problem ... and how to fix it?