Dante socks server fix and sample files

Disable scheduler:

--- Makefile.bak
+++ Makefile
@@ -29,7 +29,8 @@
        --disable-libwrap

 CONFIGURE_VARS += \
-       ac_cv_search_pam_start=""
+       ac_cv_search_pam_start="" \
+       ac_cv_func_sched_setscheduler="no"

 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include

startup script:

#!/bin/sh /etc/rc.common

START=95

USE_PROCD=1

SOCKD_BIN="/usr/sbin/sockd"
WORKERS="1"

start_service() {
        procd_open_instance
        procd_set_param respawn
        procd_set_param stdout 1
        procd_set_param stderr 1
        procd_set_param command "$SOCKD_BIN"
        procd_append_param command "-N $WORKERS"
        procd_close_instance
}

Sample config file:

logoutput: stderr
#debug: 1

internal: 0.0.0.0 port = 1080
external: pppoe-wan

user.privileged: root
user.notprivileged: nobody

clientmethod: none
socksmethod: username

client pass {
        from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0
}

socks block {
        from: 0.0.0.0/0 to: 127.0.0.0/8
}

socks block {
        from: 0.0.0.0/0 to: 192.168.0.0/16
}

socks block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        command: bind
}

socks pass {
        from: 0.0.0.0/0 to: 0.0.0.0/0
        socksmethod: username
}

socks block {
        from: 0.0.0.0/0 to: 0.0.0.0/0
}

Would you mind explaining a bit what your intention with this posting is?

You seem to be fixing something, but what is broken? What is the problem you are solving?

1 Like

Dante not start due lack of scheduler.

I compiled it without scheduler and it is OK. will it start if I install a scheduler package and then compiled dante?

You need scheduler support only for those config options:
https://www.inet.no/dante/doc/1.4.x/config/cpu.html

@dssoft would you mind describing how to build it and generate a package? I need to build it for x86_64 target.

Thanks!

..as an alternative there's also a 3proxy pull request which features a socks proxy.

1 Like