Skip to content

Commit

Permalink
Document usage of redir://
Browse files Browse the repository at this point in the history
  • Loading branch information
klzgrad committed Sep 28, 2019
1 parent 140a391 commit 7929e08
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions USAGE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,16 @@ Options:
--listen=<proto>://[addr][:port]

Listens at addr:port with protocol <proto>. Allowed values for
proto: "socks", "http". The default proto is socks. The default
addr is 0.0.0.0. The default port is 1080.
proto: "socks", "http", "redir". The default proto is socks.
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>]

Expand Down

0 comments on commit 7929e08

Please sign in to comment.