--On Thursday, May 20, 2004 12:28 AM -0600 Tommy McNeely <[EMAIL PROTECTED]> wrote:
...
I want to be able to allow the server itself to create an SMTP connection wherever it pleases (as it is a mail server) but I want to restrict the users on the network to only be able to create an SMTP connection to the box itself (and maybe a small list of exceptions) to prevent viruses from spamming the world and having my server NAT the connection. If I am reading this correctly, I should use the "block out" rules to stop packets, but the NAT happens first, so I would have to put my "own" IP in place, which would block my servers outbound SMTP connections.
Block it on the inside interface instead.
pass in quick on qfe0 proto tcp from any to my.ip.address port = 25 flags S/S
AFR keep state keep frags
pass in quick on qfe0 proto tcp from any to other.ip.address port = 25 flags S/S
AFR keep state keep frags
block in log quick on qfe0 proto tcp from any to any port = 25
-- Carson
