Tuesday, April 09, 2024

Re: Ping blocked by firewall

I can assure you that I did not use capital letters in the macro names,
and used the '<' and '>'.

Op 09-04-2024 om 11:58 schreef Peter N. M. Hansteen:
> On Tue, Apr 09, 2024 at 10:52:45AM +0200, Karel Lucas wrote:
>> I defined the table as stated in your book (3rd edition, page 42). However,
>> that gives an error message. In the lines with that table: macro 'martians'
>> not defined. Moreover, I now also have a Syntax error in lines 38, 39 and
>> 46, causing the pf lines not to be loaded.
> macro names are case sensitive, to wit
>
> peter@kapet:~$ cat martians
> Martians = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, \
> 10.0.0.0/8, 169.254, 0.0/16, 192.0.2.0/24, \
> 0.0.0.0/8, 240.0.0.0/4 }"
>
> block from $martians
> peter@skapet:~$ doas pfctl -vnf martians
> Martians = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8, 169.254, 0.0/16, 192.0.2.0/24, 0.0.0.0/8, 240.0.0.0/4 }"
> martians:5: macro 'martians' not defined
> martians:5: syntax error
>
> for conversion to tables, keep in mind that references need the
> surrounding '<' and '>'.
>

No comments:

Post a Comment