Tuesday, April 09, 2024

Re: Ping blocked by firewall

In /etc/pf.conf:
table <martians> persist file "/etc/martians"

In /etc/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

Op 09-04-2024 om 16:06 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.
> The martians example only appears on page 91, and if you had read that book
> or other PF references, you would have known full well that the syntax for
> defining and referencing macros differs from how you define and reference tables.
>
> Please actually read the advice offered by contributors to this thread.
>

No comments:

Post a Comment