Modify

Opened 2 years ago

Last modified 22 months ago

#21341 new defect

dante / sockd missing init script

Reported by: bjonas Owned by: developers
Priority: normal Milestone:
Component: packages Version: Chaos Calmer 15.05
Keywords: dante sockd init script Cc:

Description

After installing sockd package (sockd - 1.2.2-1) on CHAOS CALMER (15.05, r46767), I found that the init script and config files are missing for this package.
I wrote it and attach to this ticket. I know the config generation is not complete yet, but usable. If you find it useful I'll finish it.

Attachments (4)

etc_init.d_sockd (2.2 KB) - added by bjonas 2 years ago.
/etc/init.d/sockd
etc_hotplug.d_iface_60-sockd (101 bytes) - added by bjonas 2 years ago.
/etc/hotplug.d/iface/60-sockd
etc_config_sockd (352 bytes) - added by bjonas 2 years ago.
/etc/config/sockd
etc_sockd.conf (211 bytes) - added by bjonas 2 years ago.
/etc/sockd.conf

Download all attachments as: .zip

Change History (7)

Changed 2 years ago by bjonas

/etc/init.d/sockd

Changed 2 years ago by bjonas

/etc/hotplug.d/iface/60-sockd

Changed 2 years ago by bjonas

/etc/config/sockd

Changed 2 years ago by bjonas

/etc/sockd.conf

comment:1 Changed 2 years ago by anonymous

some changes to /etc/init.d/sockd

sockd(){
        local cfg="$1"
        append_parm "$cfg" "clientmethod" "--clientmethod"
        append_parm "$cfg" "method" "--method"
        append_parm "$cfg" "user_privileged" "--user.privileged" "root"
        append_parm "$cfg" "user_notprivileged" "--user.notprivileged" "nobody"
        append_parm "$cfg" "logoutput" "--logoutput" "syslog"
        local _extif _intif _extip _intip
        config_get _extif "$cfg" "external"
        [ -z "$_extif" ] && _extif="wan"
        config_get _intif "$cfg" "internal"
        [ -z "$_intif" ] && _intif="lan"
        network_flush_cache
        network_get_ipaddr _extip $_extif
        xappend "--external:$_extip"
        network_get_ipaddr _intip $_intif
	local _port
	config_get _port "$cfg" "port" "1080"
        xappend "--internal:$_intip port = $_port"
        echo >> $CONFIGFILE
}

comment:2 Changed 22 months ago by anonymous

Thanks for this.

comment:3 Changed 22 months ago by anonymous

The scripts don't work when there is no wan configured.

I use my openwrt as an openvpn client and proxy http through squid.

Would love socks but this package needs a cleanup and rectification.

Its currently very broken.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.