summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Osipov <mike.osipov@gmail.com>2019-10-21 00:32:40 +0300
committerMikhail Osipov <mike.osipov@gmail.com>2019-10-21 00:32:40 +0300
commit45c6387126ba8a09292ce72b0f568041950ef329 (patch)
tree63627b90c4beb30d1fc8df0bc5d866b344f23a01
parent8142854950bc510b8c21a210538d14a301dbcf63 (diff)
some comments
-rw-r--r--TODO12
-rw-r--r--libevent.mk4
-rw-r--r--scheme6
3 files changed, 19 insertions, 3 deletions
diff --git a/TODO b/TODO
index 663f2ab..e9cf48e 100644
--- a/TODO
+++ b/TODO
@@ -11,9 +11,15 @@ Usage:
tunnel route del port 80 via proxy
tunnel route drop via proxy
- tunnel add proxy httpconnect host port
- tunnel route add proxy port 80
- tunnel route add proxy port 22
+ tunnel create connect wan tcp host:port
+ tunnel create listen lan tcp host:port
+ tunnel add wan httptun host:port
+ tunnel add wan httptun ORIGINAL
+ tunnel connect lan wan
+
+ tunnel forward lan port 80
+ tunnel forward lan port 22
+
tunnel show proxy
tunnel del proxy
tunnel list
diff --git a/libevent.mk b/libevent.mk
index 194a525..74c9946 100644
--- a/libevent.mk
+++ b/libevent.mk
@@ -1,2 +1,6 @@
+ifeq ($(shell pkg-config libevent; echo $$?),1)
+$(error pkg libevent not found)
+endif
+
CFLAGS += $(shell pkg-config --cflags libevent)
LDFLAGS += $(shell pkg-config --libs libevent)
diff --git a/scheme b/scheme
new file mode 100644
index 0000000..aad8aee
--- /dev/null
+++ b/scheme
@@ -0,0 +1,6 @@
+kernel.org:80 ->
+ iptables ->
+ localhost:xxx ->
+ tcp connect proxyhost proxyport ->
+ http connect proxyhost2 proxyport2
+ http connect kernel.org:80