Package Details: redsocks 0.5-3

Git Clone URL: https://aur.archlinux.org/redsocks.git (read-only, click to copy)
Package Base: redsocks
Description: Transparent redirector of any TCP connection to proxy using your firewall
Upstream URL: http://darkk.net.ru/redsocks/
Licenses: Apache
Conflicts: redsocks-git
Provides: redsocks
Submitter: anselmolsm
Maintainer: duanlab
Last Packager: LinRs
Votes: 8
Popularity: 0.025156
First Submitted: 2018-03-10 19:59 (UTC)
Last Updated: 2019-06-22 04:45 (UTC)

Latest Comments

yacosta commented on 2020-08-20 13:56 (UTC) (edited on 2020-08-20 14:02 (UTC) by yacosta)

I need help to make redsocks work for me, when I used debian and all its derived redsocks it worked wonders for me, but I have not managed to get it to work for me in Manjaro even though I use the same configuration that I used in debian. After installing the AUR package, what steps should I follow to make it work for me? Should I add the routes or this installation does it by itself. This is the script I used in debian to start the redsocks, I hope you can help me

#!/bin/bash

function on {
    echo 'Turning proxify on ...'
    sudo --prompt='Enter your password: ' iptables -t nat -N REDSOCKS
    sudo iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN
    sudo iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
    sudo iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN
    sudo iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN
    sudo iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
    sudo iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN
    sudo iptables -t nat -A REDSOCKS -d 224.0.0.0/4 -j RETURN
    sudo iptables -t nat -A REDSOCKS -d 240.0.0.0/4 -j RETURN

    sudo iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 23456

    sudo iptables -t nat -A OUTPUT -p tcp --dport 443 -j REDSOCKS
    sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDSOCKS

    sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDSOCKS
    sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDSOCKS
}

function off {
    echo 'Turning proxify off ...'
    #preclean
    sudo iptables -F
    sudo iptables -X
    sudo iptables -Z
    sudo iptables -t nat -F
    sudo iptables -t nat -X
    sudo iptables -t nat -Z
    #restore defaults
    sudo iptables -P INPUT ACCEPT
    sudo iptables -P OUTPUT ACCEPT
    sudo iptables -P FORWARD ACCEPT
  }

function print_usage {
    echo "Usage: internet on | off"
    exit 2
}

#if [ "$EUID" -ne 0 ]; then
#    echo "Please run as sudo"
#    exit 1
#fi

if [ "$#" -ne 1 ]; then
    print_usage
fi

if [ "$1" == 'on' ]; then
    on
elif [ "$1" == 'off' ]; then
    off
else
    print_usage
fi

#echo 'Done'
exit 0

LinRs commented on 2019-08-11 03:45 (UTC)

kmahyyg:

the upstream did not publish a new release tag, and thus the package is not out-of-date. Perhaps it need to be rebuilt with the new version of libevent.

try to use devtools from [extra] building this package, e.g. extra-x86_64-build -r /var/lib/archbuild/ -c PKGBUILD, if any problems occuerd again, feel free to comment here.