diff --git a/README.md b/README.md index 917fe6a..3a393c5 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,13 @@ 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/) diff --git a/redsocks-start b/redsocks-start index e9536ae..0e76a46 100755 --- a/redsocks-start +++ b/redsocks-start @@ -1,8 +1,4 @@ #!/bin/sh - - - # start redsocks redsocks -c /etc/redsocks.conf - 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 { 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 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 -