From 45c6387126ba8a09292ce72b0f568041950ef329 Mon Sep 17 00:00:00 2001 From: Mikhail Osipov Date: Mon, 21 Oct 2019 00:32:40 +0300 Subject: some comments --- TODO | 12 +++++++++--- libevent.mk | 4 ++++ scheme | 6 ++++++ 3 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 scheme 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 -- cgit v1.2.3-70-g09d2