- Server operating system version
- CentOS Linux 7.9.2009 (Core)
- Plesk version and microupdate number
- Plesk Obsidian Version 18.0.52 Update #3
I need to make a custop iptables rule persistent so that I can enable our docker containers to access Internet.
This is the rule:
But this rule is lost everytime I make a change using the Plesk Firewall GUI.
How can I make this rule persistent? I've seen post talking about iptables-persistent but that might not apply to Obsidian.
What is the right way to add custom rules?
This is the rule:
iptables -t nat -A POSTROUTING -s 172.17.0.0/16 -o eth0 -j MASQUERADE
But this rule is lost everytime I make a change using the Plesk Firewall GUI.
How can I make this rule persistent? I've seen post talking about iptables-persistent but that might not apply to Obsidian.
What is the right way to add custom rules?