add some notice

This commit is contained in:
garywill 2023-01-07 09:07:18 +08:00
parent 10ca7249cb
commit 7ec589b1c2
2 changed files with 9 additions and 5 deletions

View File

@ -138,7 +138,7 @@ sudo lnxrouter -i lxcbr5
### Transparent proxy
All clients' Internet traffic go through, for example, Tor
All clients' Internet traffic go through, for example, Tor (notice this example is NOT an anonymity use)
<details>
@ -155,6 +155,10 @@ TransPort [fd00:5:6:7::1]:9040
DNSPort [fd00:5:6:7::1]:9053
```
> **Warn**: Tor's anonymity relies on a purpose-made browser. Using Tor like this (sharing Tor's network to LAN clients) will NOT ensure anonymity.
>
> Although we use Tor as example here, Linux-router does NOT ensure nor is NOT aiming at anonymity.
</details>
### Clients-in-sandbox network
@ -173,7 +177,7 @@ sudo lnxrouter -i eth1 \
</details>
> This script comes with no warrenty. Use on your own risk
> Linux-router comes with no warranty. Use on your own risk
### Use as transparent proxy for LXD

6
lnxrouter Executable file → Normal file
View File

@ -73,8 +73,8 @@ Options:
--random-mac Use random MAC address
--tp <port> Transparent proxy,
redirect non-LAN TCP and UDP traffic to port.
(usually used with '--dns')
redirect non-LAN TCP and UDP(not tested) traffic to
port. (usually used with '--dns')
WiFi hotspot options:
--ap <wifi interface> <SSID>
@ -1037,7 +1037,7 @@ allow_dhcp() {
# TODO: use 'DNAT' instead of '--to-ports' to support other IP
start_redsocks() {
echo
echo "iptables: transparent proxy non-LAN TCP/UDP traffic to port ${TP_PORT}"
echo "iptables: transparent proxy non-LAN TCP and UDP(not tested) traffic to port ${TP_PORT}"
if [[ $NO4 -eq 0 ]]; then
iptb 4 n nat N lrt${$}${SUBNET_IFACE}-TP || die
iptb 4 n nat A lrt${$}${SUBNET_IFACE}-TP -d 0.0.0.0/8 -j RETURN || die