How to make amportal restart does not delete my added manually iptables rules !?

hello
i need to ad manually iptable rules , the problem is once restart amportal or reboot OS i found all my added rules has deleted !
i need method to make rules persistent during amportal restart / OS reboot

i am using ast13 + freepbx 14
regards
Alaa

This is OS dependent. See https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-iptables-saving.html (just as an example). Find and follow the equivalent instructions for your system.

i already did this solution but once amportal restart or OS reboot, all iptables rules deleted

1- after freepbx booted

2- iptables after add my rule

3- iptables after amportal restart

why amportal delete all saved iptables rules ?
so, how can i put specific persist rule manually ?

Do you have the FreePBX Firewall enabled?

dear lgaetz thanks a lot , i uninstalled FreePBX Firewall from modules and solved >>

1 Like

https://wiki.freepbx.org/display/FPG/Firewall+Custom+Rules

1 Like

lgaetz , that mean i can leave FreePBX Firewall enabled andy add my custom FW rules ?

Yes. Lorne specifically added this functionality to the Integrated Firewall for cases like yours.

1 Like

I merely pointed to the wiki. This specific feature was provided by @xrobau.

1 Like

My mistake - I meant Rob…

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.