Skip to content

Commit

Permalink
Add pic to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Jipok committed Aug 7, 2024
1 parent 9bc3949 commit 11cfe61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A Go-based proxy tool that redirects blocked or throttled domains through a user-specified SOCKS5 proxy while allowing direct connections for all other traffic. This tool is designed to work on both Linux PCs and routers.

![image](https://github.com/user-attachments/assets/f772e8a4-f3f2-499f-8c6b-5d7d414b6592)

## Features

- Redirects blocked or DPI-throttled domains through a SOCKS5 proxy
Expand All @@ -12,7 +14,7 @@ A Go-based proxy tool that redirects blocked or throttled domains through a user

## Usage

1. Download the appropriate binary for your system from the [Releases](https://github.com/yourusername/your-repo-name/releases) page.
1. Download the appropriate binary for your system from the [Releases](https://github.com/Jipok/dpi-bypass-proxy/releases) page.

2. Run the binary with root privileges:

Expand All @@ -22,8 +24,8 @@ A Go-based proxy tool that redirects blocked or throttled domains through a user

Available flags:
- `-socks5`: SOCKS5 proxy address (default: "127.0.0.1:1080")
- `-proxyList`: File/URL with list of domains to redirect (default: "https://antifilter.download/list/urls.lst")
- `-blockList`: File/URL with list of domains to BLOCK (default: "https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts")
- `-proxyList`: File/URL with list of domains to redirect (default: [antifilter urls](https://antifilter.download/list/urls.lst))
- `-blockList`: File/URL with list of domains to BLOCK (default: [StevenBlack/hosts](https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts))
- `-v`: Print all dials (verbose mode)

3. The tool will set up iptables rules and start redirecting traffic as configured.
Expand Down
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ func main() {
return
}

// if err := syscall.Setuid(2354); err != nil {
// fmt.Println("syscall.Setuid error:", err)
// os.Exit(1)
// }

go func() {
for {
conn, err := ln.Accept()
Expand Down Expand Up @@ -380,6 +375,7 @@ func readDomains(source string) map[string]bool {
domain, _ = strings.CutPrefix(domain, "http-")
domain, _ = strings.CutPrefix(domain, "http.")
domain, _ = strings.CutPrefix(domain, "0.0.0.0 ")
domain, _ = strings.CutPrefix(domain, "127.0.0.1 ")
if domain != "" {
if domain[0] == '#' {
continue
Expand Down

0 comments on commit 11cfe61

Please sign in to comment.