[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing RDR outside of RDR rule



On Mar 24, 2005, at 8:55 PM, Daniel Hartmeier wrote:

Can you please post the verbatim output of pfctl -vvsn?

Got it. Unlike /bin/sh, which does NOT concatenate a comment line ending in \ with the following line, pf.conf considers

	# foo \
	bar

to be a multi-line comment. Hence, in testing:

	#rdr pass on $ext inet proto tcp \
	rdr on $ext inet proto tcp \
		to port $fwd_lan_port -> $fwd_lan_dest_ip port $fwd_lan_dest_port

No rdr rules were loaded, nor were any errors thrown.

(Having one of those "duh" moments...)