I am running a vServer with Ubuntu 10.04 LTS and Plesk 12. I am using the Plesk firewall module which was ok for me so far. However, now I set up a OpenVPN server on the server. In order to be able to route traffic over the VPN to the outside, I need to add the NAT rule to iptables:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0 -j MASQUERADE
The problem is that the Plesk firewall module creates an own set of iptables rulles and in Plesk itself I cannot add this specific rule. So I am looking for any way to make my rule permantent in a way that it will not be overwritten whenever Plesk runs its script. I was thinking of some kind to script that can be automatically executed after Plesk updates iptables or something similar.
I have also looked in the SQL database but the psa table for the firewall module seems to store the allow/deny rules in some custom format. Any help is much appreciated!