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. To install and configure Redsocks, ensure you have installed OpenWrt on your router. Then run commands as follows:
Run the following command to install Redsocks automatically:
cd /tmp && wget https://github.com/emonbhuiyan/Redsocks-OpenWRT/raw/main/install.sh && chmod +x install.sh && clear && sh install.sh && rm install.sh && cd / && clear
Just run it and wait for completion. And enjoy. Click here to learn step by step manual installation
vi /etc/redsocks.conf
After the update press esc
key then :wq
to save or :q!
to discard changes
service redsocks start
service redsocks stop
service redsocks restart
service redsocks enable
service redsocks disable
opkg update
opkg install iptables iptables-mod-nat-extra redsocks
service redsocks stop && mv /etc/redsocks.conf /etc/redsocks.conf.bkp && cd /etc && wget https://github.com/emonbhuiyan/Redsocks-OpenWRT/raw/main/redsocks.conf && mv /etc/init.d/redsocks /etc/init.d/redsocks.bkp && cd /etc/init.d && wget https://github.com/emonbhuiyan/Redsocks-OpenWRT/raw/main/redsocks && chmod +x /etc/init.d/redsocks
Click here to install with one command run
Thanks for following my tutorial. Follow me to get more interesting tips and tricks.