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

Re: rdr problem



On Mon, Jan 27, 2003 at 09:30:03PM -0500, Scircuit wrote:
> Any idea why this would cause a syntax error?
> 
> FtpPort="{ 7777, 7778 }"
> rdr on $ExtIF proto tcp from any to any port $FtpPort -> $FtpServer port $FtpPort
You cannot use lists of ports for either the destination port or the
redirection port with rdr rules. In this particular case, you can
specify a range of addresses instead of the list:
rdr on $ExtIF proto tcp from any to any port 7777:7778 -> $FtpServer
(you don't have to specify the redirection port range since it is the
same as the destination range)
-Ryan