Skip to content

Commit 7ae8362

Browse files
blink-so[bot]f0ssel
andcommitted
Fix PF rules syntax error with route-to clause
- Correct the order of 'on interface' and 'route-to' in PF rules - PF syntax requires 'pass out on interface route-to' not 'pass out route-to on interface' - Fixes syntax error on line 13 of PF rules file - Should resolve pfctl loading failure Co-authored-by: f0ssel <[email protected]>
1 parent 0fa48f5 commit 7ae8362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

namespace/macos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ rdr pass on lo0 inet proto tcp from any to any -> 127.0.0.1 port %d
230230
pass out route-to (lo0 127.0.0.1) inet proto tcp from any to any group %d keep state
231231
232232
# Also handle ALL TCP traffic on the specific interface from the group
233-
pass out route-to (lo0 127.0.0.1) on %s inet proto tcp from any to any group %d keep state
233+
pass out on %s route-to (lo0 127.0.0.1) inet proto tcp from any to any group %d keep state
234234
235235
# Allow all loopback traffic
236236
pass on lo0 all

0 commit comments

Comments
 (0)