Date: Fri, 18 Aug 2006 12:23:53 -0700 (PDT) From: beno - <purabachata@yahoo.com> To: "Jeremy C. Reed" <reed@reedmedia.net>, freebsd-pf@freebsd.org Subject: Re: Syntax Error Message-ID: <20060818192353.35680.qmail@web33905.mail.mud.yahoo.com> In-Reply-To: <Pine.NEB.4.64.0608181345470.298@glacier.reedmedia.net>
next in thread | previous in thread | raw e-mail | index | archive | help
You're right, I did confuse the terms "macro" and "list". However, I believe you're wrong on your assessment. Here's the complete code again: 1. # SETTING THE STAGE 2. # macros 3. ext_if="vr0" 4. int_if="lo0" 5. http_ports="80 8080 7080" 6. ssh_ports="22" 7. ftp_ports="21 8021 7021" 8. smtp_ports="25" 9. pop3_ports="110" 10. https_ports="443" 11. imap_ssl_ports="993 143" 12. squid_ports="3128" 13. mysql_ports="3306" 14. email_ports="{" $smtp_ports $pop3_ports "}" 15. all_http_ports="{" $http_ports $https_ports "}" 16. tcp_ports= "{" $ssh_ports $ftp_ports $all_http_ports $imap_ssl_ports "}" 17. int_ports="{" $squid_ports $mysql_ports "}" 18. tcp_services="ssh, ftp, http" 19. web_server="202.71.106.119" 20. NoRouteIPs = "127.0.0.0/8 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8" 21. shinjiru_ip_addresses="202.71.102.114 202.71.100.126 202.71.106.30 202.71.106.118 202.71.106.188 203.142.1.8" 22. directv_ip_addresses="69.19.0.0/17" 23. shadday_ip_addresses="" 24. ssh_ip_addresses="{" $shinjiru_ip_addresses $directv_ip_addresses $shadday_ip_addresses "}" 3 * The first error is thrown from the $all_http_ports macro in line #16. That is a macro with two other macros nested inside it, not lists. * The second error is thrown from the CIDR block which is nested as the macro $directv_ip_addresses in line #24. An earlier respondent indicated I should research that subject in the archives, since it was a known problem, but searching for "CIDR" in both this and the main list turned up nothing :( Hoping for answers, beno "Jeremy C. Reed" <reed@reedmedia.net> wrote: On Fri, 18 Aug 2006, beno - wrote: > > > 6. ssh_ports="22" > > > 7. ftp_ports="21 8021 7021" > > > 8. smtp_ports="25" > > > 9. pop3_ports="110" > > > 10. https_ports="443" > > > 11. imap_ssl_ports="993 143" > > > 12. squid_ports="3128" > > > 13. mysql_ports="3306" > > > 14. email_ports="{" $smtp_ports $pop3_ports "}" > > > 15. all_http_ports="{" $http_ports $https_ports "}" > > > 16. tcp_ports= "{" $ssh_ports $ftp_ports $all_http_ports > > > $imap_ssl_ports "}" > > > > I don't think you can put a list inside of another list. > > You most certainly can nest lists. It works in several examples above. > For some reason--and I would like to know that reason--it doesn't work > in line #16. Please help. What examples? You only have one example above of putting a list in a list (and it is your error). You have several examples of putting macros in a list. I think you are confusing the terminology or usage of "lists" versus "macros". --------------------------------- Coming soon: PF Book http://www.reedmedia.net/book/pf-book/ greytrapping :) fun@reedmedia.net --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. --------------------------------- How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060818192353.35680.qmail>