Looks like /etc/iptables.up.rules is not being read and applied on boot.
Given the simple set of rules you want to apply, I'd suggest
using ufw. You could implement your rules with the following commands:
Code:
sudo ufw default deny
sudo ufw allow domain/udp
sudo ufw allow 20000/tcp
sudo ufw allow 10000/tcp
sudo ufw allow https/tcp
sudo ufw allow http/tcp
sudo ufw allow imaps/tcp
sudo ufw allow imap/tcp
sudo ufw allow pop3s/tcp
sudo ufw allow pop3/tcp
sudo ufw allow ftp-data/tcp
sudo ufw allow ftp/tcp
sudo ufw allow domain/tcp
sudo ufw allow ssh/tcp
sudo ufw enable
sudo ufw status
Once enabled, ufw should automatically apply these rules on each boot.
Should you go this route, I recommend doing
apt-get purge apf-firewall to remove apf first to avoid having it compete with ufw. You may also have to
apt-get install ufw.