I have a server which is being kept behind a corporate firewall, so the corporate firewall takes care of all firewall issues. After making a fresh installation of the server, and setting the corresponding rules, the server allows traffic to the ports it should (PPTP, SSH, Web, FTP and allows forwarding of IP packages), but after a restart the changes are lost, and haven't been able to succesfully apply the rules again. What I think I should do is: 1) Somehow put the iptables and apparmor rules to the ones set after a fresh installation of the server. 2) Apply the changes so ip4 forwarding is allowed and SSH, VPN and Web ports are opened to LAN 3) Search for a way to keep the settings going even after a reboot of the system.
I need help to do points 1 and 3.