I have 3 IP addresses assigned to my Internet interface. Off course two of them are virtual. So let say I have 212.1.1.1 which is originaly asigned to firewall for IPSec/VPN, then 212.1.1.2 that is a new one publishing an WEB server using a DNAT rule and 212.1.1.3 which is where my MX record points to. The problem is that I activate the SMTP proxy instead publishing with DNAT rule so the port 25 looks open for the three IP addresses. Off course another SMTP server will enter only using the 212.1.1.3 since the DNS is pointing that as MX record... but a hacker could try to mess with the other two IP addresses.
How can I assign the SMTP proxy to the 212.1.1.3 only????
I thought making some DNAT rules to no place but looks quite dirty solution to me . Any idea?
[ QUOTE ] The activation of the SMTP proxy opens port 25 for ANY incoming traffic. You can use a small hack to fix this. at the console, login as root.
make sure you use the "back tic" not single quote aournd the iptables -L command line.
[/ QUOTE ]
Not sure if this is a flaw, or I just did not enter it quite right, but when I made this change, I could no longer send mail. Incoming worked, but it appears to have blocked ALL SMTP connections except the one external address, including the internal one. Restarted ASL and all was well.
All seems to be working ok as my external email address was the first external address I put into ASL, and that seems to be the first one the SMTP Proxy uses to send. I added a second external address after setting up the ASL and the SMTP proxy.
[ QUOTE ] The activation of the SMTP proxy opens port 25 for ANY incoming traffic. You can use a small hack to fix this. at the console, login as root.
make sure you use the "back tic" not single quote aournd the iptables -L command line.
[/ QUOTE ]
Not sure if this is a flaw, or I just did not enter it quite right, but when I made this change, I could no longer send mail. Incoming worked, but it appears to have blocked ALL SMTP connections except the one external address, including the internal one. Restarted ASL and all was well.
All seems to be working ok as my external email address was the first external address I put into ASL, and that seems to be the first one the SMTP Proxy uses to send. I added a second external address after setting up the ASL and the SMTP proxy.