diff options
| -rw-r--r-- | TODO | 12 | ||||
| -rw-r--r-- | libevent.mk | 4 | ||||
| -rw-r--r-- | scheme | 6 |
3 files changed, 19 insertions, 3 deletions
@@ -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) @@ -0,0 +1,6 @@ +kernel.org:80 -> + iptables -> + localhost:xxx -> + tcp connect proxyhost proxyport -> + http connect proxyhost2 proxyport2 + http connect kernel.org:80 |
