Hi i'm using OSX Mojave,
trying to use PF to divert packets for modifications in userspace..
One example from here:
And another example:
Both fail with syntax errors..
I'm editing /etc/pf.conf and loading with pfctl -f /etc/pf.conf
Why is this happening? what's wrong?
trying to use PF to divert packets for modifications in userspace..
One example from here:
How to use pf's divert-to in FreeBSD9
Hi FreeBSD9's pf support divert-to option.I just can't figure out how to let it work. pass in log on em1 inet proto tcp from any to 192.168.1.1 flags S/SA keep state divert-to 8080 Without divert-to 8080, packet will go out through em0.So divert-to have some effect. The problem is when I...
forums.freebsd.org
Code:
pass on em0 from any to 192.168.1.1 port 80 divert-to localhost port 36895
And another example:
Code:
pass out on em0 inet proto tcp to port 80 divert-packet port 8080
Both fail with syntax errors..
I'm editing /etc/pf.conf and loading with pfctl -f /etc/pf.conf
Why is this happening? what's wrong?