I want to run http and smtp servers on my NetBSD box over a cable 
modem with a DHCP assigned address.
After spending a long time reading the ipfilter-howto I came up with 
a set of rules that I thought was pretty secure.

<--snip-->
# Finally, allow access to our SSH, SMTP and HTTP Servers
     pass  in  quick on eth0 proto tcp  from any       to $myip port = 
25  flags S  keep state
     pass  in  quick on eth0 proto tcp  from any       to $myip port = 
80  flags S  keep state

# Throw off casual snoopers.
     block return-rst in log proto tcp  from any  to $myip port = 21
     block return-rst in log proto tcp  from any  to $myip port = 22
     block return-rst in log proto tcp  from any  to $myip port = 23
<--snip-->

But I've found there's no way to put a dynamic address into my filter list.

Are there any problems, or would I be any less secure by eliminating my address
and rewriting the above rules like this?

     pass  in  quick on eth0 proto tcp  from any  port = 25  flags S  keep state
     pass  in  quick on eth0 proto tcp  from any  port = 80  flags S  keep state
     block return-rst in log proto tcp  from any  port = 21
     block return-rst in log proto tcp  from any  port = 22
     block return-rst in log proto tcp  from any  port = 23

Reply via email to