From 4cd704cf7b96a85ae1498666a6613987fd5b878c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Mon, 13 May 2024 16:06:01 +0800 Subject: [PATCH 1/6] Drop redundant file trailing blank lines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林博仁(Buo-ren, Lin) --- redsocks-start | 1 - start-proxifier.sh | 1 - 2 files changed, 2 deletions(-) diff --git a/redsocks-start b/redsocks-start index e9536ae..093f2db 100755 --- a/redsocks-start +++ b/redsocks-start @@ -5,4 +5,3 @@ # start redsocks redsocks -c /etc/redsocks.conf - diff --git a/start-proxifier.sh b/start-proxifier.sh index 79e68f8..e3c4602 100755 --- a/start-proxifier.sh +++ b/start-proxifier.sh @@ -2,4 +2,3 @@ ./setup-iptables ./redsocks-start - From 2a2a4a44883fd6e8212acf5d9f36ccf1b9120c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Mon, 13 May 2024 18:34:08 +0800 Subject: [PATCH 2/6] Fix inconsistent indentation width of the redsocks configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林博仁(Buo-ren, Lin) --- redsocks.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/redsocks.conf b/redsocks.conf index 80a6f9c..36d8fd0 100644 --- a/redsocks.conf +++ b/redsocks.conf @@ -1,9 +1,9 @@ base { - log_debug = on; - log_info = on; - log = "stderr"; - daemon = off; - redirector = iptables; + log_debug = on; + log_info = on; + log = "stderr"; + daemon = off; + redirector = iptables; } redsocks { From eaa140879fa124d78cc93dd5519662107b329599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Mon, 13 May 2024 18:37:42 +0800 Subject: [PATCH 3/6] Remove redundant trailing whitespace in setup-iptables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林博仁(Buo-ren, Lin) --- setup-iptables | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-iptables b/setup-iptables index 95fb9d0..bd3c273 100755 --- a/setup-iptables +++ b/setup-iptables @@ -20,6 +20,6 @@ iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 12345 iptables -t nat -A OUTPUT -p tcp --dport 443 -j REDSOCKS iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDSOCKS -# Defining the following rules in the PREROUTING chain. For redirecting incomming packets to the REDSOCKS chain. +# Defining the following rules in the PREROUTING chain. For redirecting incomming packets to the REDSOCKS chain. iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDSOCKS iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDSOCKS From 36d697ffd04984762d752203ad659879d1cbc7c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Tue, 14 May 2024 03:04:43 +0800 Subject: [PATCH 4/6] Fix ordered list item inconsistent formatting in the README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林博仁(Buo-ren, Lin) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 917fe6a..802784b 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,14 @@ cd proxifier-linux ## Usage 1. Setup redsocks.conf (Example config given) -`/etc/redsocks.conf` + `/etc/redsocks.conf` 2. Open Terminal and run -`sudo ./start-proxifier.sh` + `sudo ./start-proxifier.sh` -Done. [Check IP](https://ifconfig.me/) + Done. [Check IP](https://ifconfig.me/) 3. CTRL+Z to exit first script and flush iptables -`sudo ./stop-proxifier.sh` + `sudo ./stop-proxifier.sh` More Information: [redsocks](https://github.com/darkk/redsocks), [superuser](https://superuser.com/a/1402071), [crosp.net](https://crosp.net/blog/administration/install-configure-redsocks-proxy-centos-linux/) From 70dd234d573690b221d5d42a5fc453685d1c8264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Tue, 14 May 2024 14:24:54 +0800 Subject: [PATCH 5/6] Drop consecutive blank lines in the README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林博仁(Buo-ren, Lin) --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 802784b..3a393c5 100644 --- a/README.md +++ b/README.md @@ -22,5 +22,4 @@ cd proxifier-linux 3. CTRL+Z to exit first script and flush iptables `sudo ./stop-proxifier.sh` - More Information: [redsocks](https://github.com/darkk/redsocks), [superuser](https://superuser.com/a/1402071), [crosp.net](https://crosp.net/blog/administration/install-configure-redsocks-proxy-centos-linux/) From bc9d572f638d24188cbb9207bb4d4bb323f526fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=2C=20Lin=29?= Date: Tue, 14 May 2024 14:26:12 +0800 Subject: [PATCH 6/6] Drop redundant consecutive blank lines in the redsocks-start script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 林博仁(Buo-ren, Lin) --- redsocks-start | 3 --- 1 file changed, 3 deletions(-) diff --git a/redsocks-start b/redsocks-start index 093f2db..0e76a46 100755 --- a/redsocks-start +++ b/redsocks-start @@ -1,7 +1,4 @@ #!/bin/sh - - - # start redsocks redsocks -c /etc/redsocks.conf