tpws: always compile PF support, use --enable-pf flag in FreeBSD

This commit is contained in:
bol-van 2022-01-23 23:12:48 +03:00
parent cc5f0af5a8
commit 8c525b598e
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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 у меня не заработал.