From 144f66574706c9e251c964b694e80406206cb10b Mon Sep 17 00:00:00 2001 From: Mikhail Osipov Date: Mon, 6 Jul 2020 00:53:18 +0300 Subject: single socket option --- USAGE | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'USAGE') diff --git a/USAGE b/USAGE index bd9a8a4..889c477 100644 --- a/USAGE +++ b/USAGE @@ -1,4 +1,8 @@ -1. Transparent proxy using redirect +# Simple tcp tunnel + +tunnel add srcport,listen [dsthost:]dstport + +# Transparent proxy using redirect iptables -t nat -A OUTPUT -p tcp -d 198.145.29.83 -j REDIRECT --to-port 4000 @@ -10,6 +14,6 @@ BUGS: Direct connection also possible. In this case original.addr will be equal to listen address. This happens when ipv4 is used. -2. Transparent proxy using tproxy +# Transparent proxy using tproxy - todo -- cgit v1.2.3-70-g09d2