Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 2003 11:59:36 +0200
From:      Antoine Jacoutot <ajacoutot@lphp.org>
To:        freebsd-questions@freebsd.org
Subject:   firewall dynamic IP
Message-ID:  <200304251159.36187.ajacoutot@lphp.org>

next in thread | raw e-mail | index | archive | help
Hi !

In my progress of still learning firewall with ipfw, I have a question.
Can I convert the following rule:

${fwcmd} add pass tcp from any to ${oip} 25 setup

into on of those (which one would be the best, I guess the second one, right 
?):

${fwcmd} add pass tcp from any to any via tun0 25 setup
${fwcmd} add pass tcp from any to me in via tun0 setup

I ask this question because I do not have a fixed @ip on the outside interface 
so I cannot use the ${oip} (outside @ip) variable.

By the way, is there a difference between:
${fwcmd} add pass... and ${fwcmd} add allow... ?

Thanks in advance for your answers.

Antoine



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304251159.36187.ajacoutot>