mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
Document usage of redir://
This commit is contained in:
parent
6ea09954ee
commit
2faa8b1b9e
12
USAGE.txt
12
USAGE.txt
@ -34,8 +34,16 @@ Options:
|
|||||||
--listen=<proto>://[addr][:port]
|
--listen=<proto>://[addr][:port]
|
||||||
|
|
||||||
Listens at addr:port with protocol <proto>. Allowed values for
|
Listens at addr:port with protocol <proto>. Allowed values for
|
||||||
proto: "socks", "http". The default proto is socks. The default
|
proto: "socks", "http", "redir". The default proto is socks.
|
||||||
addr is 0.0.0.0. The default port is 1080.
|
The default addr is 0.0.0.0. The default port is 1080.
|
||||||
|
|
||||||
|
For redirecting local traffic from the same machine:
|
||||||
|
|
||||||
|
iptables -t nat -A OUTPUT -p tcp -d ... -j REDIRECT --to-ports 1080
|
||||||
|
|
||||||
|
For redirecting forwarded traffic on a router:
|
||||||
|
|
||||||
|
iptables -t nat -A PREROUTING -p tcp -d ... -j REDIRECT --to-ports 1080
|
||||||
|
|
||||||
--proxy=<proto>://[<user>:<pass>@]<hostname>[:<port>]
|
--proxy=<proto>://[<user>:<pass>@]<hostname>[:<port>]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user