diff --git a/docs/bsdfw.txt b/docs/bsdfw.txt index 39c21dc..1788141 100644 --- a/docs/bsdfw.txt +++ b/docs/bsdfw.txt @@ -68,7 +68,8 @@ pfctl -f /etc/pf.conf ; dvtws works both for routed and local -pass out quick on em0 proto tcp to port {80,443} divert-packet port 989 +pass in quick on em0 proto tcp from port {80,443} no state +pass out quick on em0 proto tcp to port {80,443} divert-packet port 989 no state pfctl -f /etc/pf.conf ./dvtws --port=989 --dpi-desync=split2 @@ -78,12 +79,16 @@ set limit table-entries 2000000 table file "/opt/zapret/ipset/zapret-ip.txt" table file "/opt/zapret/ipset/zapret-ip-user.txt" table file "/opt/zapret/ipset/zapret-ip-exclude.txt" -pass out quick on em0 inet proto tcp to port {80,443} -pass out quick on em0 inet proto tcp to port {80,443} divert-packet port 989 -pass out quick on em0 inet proto tcp to port {80,443} divert-packet port 989 +pass out quick on em0 inet proto tcp to port {80,443} +pass in quick on em0 inet proto tcp from port {80,443} no state +pass out quick on em0 inet proto tcp to port {80,443} divert-packet port 989 no state +pass in quick on em0 inet proto tcp from port {80,443} no state +pass out quick on em0 inet proto tcp to port {80,443} divert-packet port 989 no state table file "/opt/zapret/ipset/zapret-ip6.txt" table file "/opt/zapret/ipset/zapret-ip-user6.txt" table file "/opt/zapret/ipset/zapret-ip-exclude6.txt" -pass out quick on em0 inet6 proto tcp to port {80,443} -pass out quick on em0 inet6 proto tcp to port {80,443} divert-packet port 989 -pass out quick on em0 inet6 proto tcp to port {80,443} divert-packet port 989 +pass out quick on em0 inet6 proto tcp to port {80,443} +pass in quick on em0 inet6 proto tcp from port {80,443} no state +pass out quick on em0 inet6 proto tcp to port {80,443} divert-packet port 989 no state +pass in quick on em0 inet6 proto tcp from port {80,443} no state +pass out quick on em0 inet6 proto tcp to port {80,443} divert-packet port 989 no state