Giter Site home page Giter Site logo

emonbhuiyan / redsocks-openwrt Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 37 KB

Redsocks is a proxy tunneling extension. However, I found a very rare tutorial about how to configure Redsocks on an OpenWRT router. With this tutorial, we can use it on our OpenWRT router easily. It will be helpful for BDIX bypass users of Bangladesh who are using the socks5 proxy.

Shell 100.00%
bdix bdix-bypass openwrt redsocks

redsocks-openwrt's People

Contributors

emonbhuiyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

redsocks-openwrt's Issues

My configuration scenario

Hi!

I have OpenWRT 19-something version on tp-link router.
I needed to create transparent proxy (so everyone who connects to this router by default uses proxy and won't be blocked by local firewall).

Here is my scenario:

base {
        log_debug = off;
        log_info = on;
        log = "syslog:local7";
        daemon = on;
        redirector = iptables;
}

redsocks {
        local_ip = 0.0.0.0;
        local_port = 1337;
        ip = YOUR_SOCKS5_PROXY_IP;		// <---------
        port = YOUR_SOCKS5_PROXY_PORT;		// <---------
        type = socks5;
        //login = "username";
        //password = "password";
}

service redsocks restart
iptables -t nat -A PREROUTING -s 192.168.0.0/24 -i br-lan -p tcp --syn -j ACCEPT
iptables -t nat -A PREROUTING -s 192.168.1.0/24 -i br-lan -p tcp --syn -j ACCEPT
iptables -t nat -A PREROUTING -s 10.44.127.0/24 -i br-lan -p tcp --syn -j ACCEPT
iptables -t nat -A PREROUTING -i br-lan -p tcp --syn -j REDIRECT --to-ports 1337

Maybe someone will make use of it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.