At 2:55 PM -0400 4/29/02, Matt Stein wrote: >On Mon, 29 Apr 2002, Matt Stein wrote: > >> pass in quick on eth0 proto tcp from any to eth0/32 port 25 flags >>S keep state >> ^^^^^^^ > >Right after I hit send, this occured to me. You could write the rule like >this: > >pass in quick on eth0 proto tcp from any to my.domain.com port 25 >flags S keep state > >When ipf loads the rule, it will lookup my.domain.com and fill in the ip >for you. This, of course, assumes that you have DNS for the outside ip >address.
I had thought of that. It might work. The only problem might be... if the address changed, I'd have to wait until my ddclient updated my dynamic dns before I bring up my ipf rules. And, when ipfilter looks up my.domain.com, it might get a cached copy instead of the newly changed one. At the worst, I'd have to wait a few minutes and then refresh my rules again and hopefully get a good address in there. It's probably still easier than going in and editing by hand though. I've heard some say that 0/32 and 0.0.0.0/32 works and some have said it won't. All I can do is try. Cheers, - Rog
