Kare -
The script works fine (replaces the original file) but now when restarting the services this is what i get (see log below). There is not mention of 'PREROUTING' and using an online port scanning, the port 10025 becomes open/active. I've uninstall the modified file for the time being, which brings back the 'PREROUTING' line in the log and closes port 10025 in the Red IF. Any idea? i have backed-up Copfilter, uninstalled, re-installed, and restored and still does the same thing.
*******************************************************************************************************
Restarting proxmstpd..
sent a HUP signal to monit waiting 1 second(s) proxsmtpd killed
waiting 1 second(s)
removing firewall rules
proxsmtpd is not running
No firewall rules active, proxsmtp mail filtering not active
Iptables firewall rules active:
Configured with MAIL Server on network: GREEN
SMTP Traffic Scanning enabled on RED: eth1
starting proxsmtpd
waiting 1 second(s)
proxsmtpd is running with PID 7131
Iptables firewall rules active:
Table: filter Chain: INPUT 0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:10025
Table: nat Chain: OUTPUT 0 0 DNAT tcp -- * * xx.xxx.xxx.xxx xx.xxx.xxx.xxx tcp dpt:26 to:192.168.x.x:25
Table: nat Chain: POSTROUTING 0 0 SNAT tcp -- * * 192.168.x.x/24 192.168.x.x tcp dpt:26 to:192.168.x.x
