Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2006 15:17:03 -0700
From:      "Jon Simola" <jsimola@gmail.com>
To:        freebsd-pf@freebsd.org
Subject:   Re: Another Lists/Macros Question
Message-ID:  <8eea04080608221517rd487cf1v35f5372c1a5bb157@mail.gmail.com>
In-Reply-To: <44EB6B18.4030201@2012.vi>
References:  <44EB6B18.4030201@2012.vi>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/22/06, beno <zope@2012.vi> wrote:
> This is accepted by the pfclt compiler just fine:
>
> http_ports="80 8080 7080"
> ssh_ports="22"
> ftp_ports="21 8021 7021"
> smtp_ports="25"
> pop3_ports="110"
> https_ports="443"
> imap_ssl_ports="993 143"
> squid_ports="3128"
> mysql_ports="3306"
> email_ports='"{' $smtp_ports $pop3_ports '}"'
> all_http_ports='"{' $http_ports $https_ports '}"'
> tcp_ports= "{" $ssh_ports $ftp_ports $all_http_ports $imap_ssl_ports "}"

Not here:

# pfctl -vvnf ./pf-beno-test
http_ports = "80 8080 7080"
ssh_ports = "22"
ftp_ports = "21 8021 7021"
smtp_ports = "25"
pop3_ports = "110"
https_ports = "443"
imap_ssl_ports = "993 143"
squid_ports = "3128"
mysql_ports = "3306"
email_ports = ""{ 25 110 }""
all_http_ports = ""{ 80 8080 7080 443 }""
tcp_ports = "{ 22 21 8021 7021 { 80 8080 7080 443 } 993 143 }"

Note the nested braces in the last line - that is your problem.

-- 
Jon



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