summaryrefslogtreecommitdiff
path: root/USAGE
diff options
context:
space:
mode:
authorMikhail Osipov <mike.osipov@gmail.com>2020-07-06 00:53:18 +0300
committerMikhail Osipov <mike.osipov@gmail.com>2020-07-06 00:53:18 +0300
commit144f66574706c9e251c964b694e80406206cb10b (patch)
treeaaed72a4c250787b5dc9aa27fa94278b92217868 /USAGE
parente00995cf2a5968ae94d4dc0abfe21a66dae5cd54 (diff)
single socket option
Diffstat (limited to 'USAGE')
-rw-r--r--USAGE8
1 files changed, 6 insertions, 2 deletions
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