Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule scope? #34

Open
mvevitsis opened this issue Jul 22, 2024 · 1 comment
Open

Rule scope? #34

mvevitsis opened this issue Jul 22, 2024 · 1 comment

Comments

@mvevitsis
Copy link

mvevitsis commented Jul 22, 2024

With these:

Allow broadcasts on internal interface

pass from any to 255.255.255.255 keep state
pass from 255.255.255.255 to any keep state

Allow multicast

pass proto udp from any to 224.0.0.0/4 keep state
pass proto udp from 224.0.0.0/4 to any keep state

Aren't you technically allowing broadcasts over the VPN interface?

Shouldn't it be something like
pass on $int_if from any to 255.255.255.255 keep state

Or even
pass on $int_if from $my_subnet to 255.255.255.255 keep state

Likewise, the LAN rule enabled with -local doesn't specify the hardware interface:

pass from $subnet to $subnet keep state

Shouldn't this be:

pass on $int-if from $subnet to $subnet

@nbari
Copy link
Member

nbari commented Jul 23, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants