Date: Wed, 20 Aug 2008 20:29:39 +0200 From: Nicolas KARP <nicolaskarp@freE.fr> To: Leslie Jensen <leslie@eskk.nu> Cc: freebsd-pf@freebsd.org Subject: Re: A problem with variable Message-ID: <48AC6293.4020607@freE.fr> In-Reply-To: <48AC595C.2090506@eskk.nu> References: <48AC595C.2090506@eskk.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
Leslie Jensen a écrit : > > I've defined a variable > > proxyport = "{ 8080 }" > > The rule > > rdr on $int_if inet proto tcp from $internal_net to any / > port $proxy_services -> $proxy port $proxyport > > gives me a "Syntax error in config file:" > > I use the same variable in another rule and it does not produce a > "Syntax error" > > pass in on $int_if inet proto tcp from $internal_net to / > $proxy port $proxyport keep state > > If I change the variable in the first rule to 8080 it works. > > Can someone shed some light on this? > > Thanks > > /Leslie > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" Hi (one more time ;) ) You can't use a list in a rdr rule : see man pf.conf anf precisely the Grammar of PF.conf <http://www.openbsd.org/cgi-bin/man.cgi?query=pf.conf&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html#end> rdr-rule = [ "no" ] "rdr" [ "pass" [ "log" [ "(" logopts ")" ] ] ] [ "on" ifspec ] [ af ] [ protospec ] hosts [ "tag" string ] [ "tagged" string ] [ "->" ( redirhost | "{" redirhost-list "}" ) [ *portspec* ] [ *pooltype* ] ] pooltype = ( "bitmask" | "random" | "source-hash" [ ( hex-key | string-key ) ] | "round-robin" ) [ sticky-address ] portspec = "port" ( number | name ) [ ":" ( "*" | number | name ) ]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48AC6293.4020607>