Thread: Adding Rules to APF
05-16-2005, 07:50 PM #1Web Hosting Master
- Join Date
- May 2003
Adding Rules to APF
I saw in another thread (http://www.webhostingtalk.com/showth...hreadid=376166) that APF will restart and clean out the iptables fules for SMTP TWEAK. Is it possible to add the rules to apf so they are not removed on restart?
Here are the rules that are added by SMTP TWEAK (whm).
0 0 ACCEPT tcp -- any any anywhere localhost tcp dptmtp
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dptmtp OWNER GID match mail
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dptmtp OWNER GID match mailman
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dptmtp OWNER UID match root
1 44 REJECT tcp -- any any anywhere anywhere tcp dptmtp reject-with icmp-port-unreachable