From 8c525b598e3c19396585ac4b734b4ccbd4d1f0af Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 23 Jan 2022 23:12:48 +0300 Subject: [PATCH] tpws: always compile PF support, use --enable-pf flag in FreeBSD --- docs/bsd.eng.md | 2 +- docs/bsd.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/bsd.eng.md b/docs/bsd.eng.md index 66a157e..15788fe 100644 --- a/docs/bsd.eng.md +++ b/docs/bsd.eng.md @@ -157,7 +157,7 @@ rdr pass on em1 inet proto tcp to port {80,443} -> 127.0.0.1 port 988 ``` then ``` -/opt/zapret/tpws/tpws --port=988 --bind-addr=127.0.0.1 --bind-iface6=em1 --bind-linklocal=force +/opt/zapret/tpws/tpws --port=988 --enable-pf --bind-addr=127.0.0.1 --bind-iface6=em1 --bind-linklocal=force ``` Its not clear how to do rdr-to outgoing traffic. I could not make route-to scheme work. diff --git a/docs/bsd.txt b/docs/bsd.txt index 522f0f6..c90395e 100644 --- a/docs/bsd.txt +++ b/docs/bsd.txt @@ -156,7 +156,7 @@ PF в FreeBSD: rdr pass on em1 inet6 proto tcp to port {80,443} -> fe80::31c:29ff:dee2:1c4d port 988 rdr pass on em1 inet proto tcp to port {80,443} -> 127.0.0.1 port 988 ----------- -/opt/zapret/tpws/tpws --port=988 --bind-addr=127.0.0.1 --bind-iface6=em1 --bind-linklocal=force +/opt/zapret/tpws/tpws --port=988 --enable-pf --bind-addr=127.0.0.1 --bind-iface6=em1 --bind-linklocal=force В PF непонятно как делать rdr-to с той же системы, где работает proxy. Вариант с route-to у меня не заработал.