Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix minor linting problems #3

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
4 changes: 0 additions & 4 deletions redsocks-start
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#!/bin/sh




# start redsocks
redsocks -c /etc/redsocks.conf

10 changes: 5 additions & 5 deletions redsocks.conf
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion setup-iptables
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion start-proxifier.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@

./setup-iptables
./redsocks-start