Hello.

Both of these relate to my little FreeBSD firewall I set up.  It's a
486 DX with 32MB RAM and a 250MB hard drive.  Acting as a gateway for
my cable modem.

1)  Is there a way to tell sendmail to only send mail from localhost
and to not relay at all?  I turned on sendmail so I can get the daily
security reports in the mail w/o having to log in, but don't want a
spammer to find it and use it for a relay.  Maybe it's that way by
default, but I'd like to verify that.

2) How does /etc/hosts.deny work?  I've got portsentry running on that
box and whenever someone tickles it, it adds 'ALL: <IP>' to that file.
Does another program run that reads this file?

Since I wasn't really sure, and know a little more about ipfw, I
turned on the ipfw feature of portsentry, and added a perl script to
my boot up that reads the /etc/hosts.deny file and adds each IP to
ipfw to deny all packets in that file (except those on my 192.
addresses, just in case I do something stupid :)  It's working, but I
wanted to make sure I wasn't overriding something else.

Thanks for the help,
Rob

Reply via email to