summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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