microsocks
microsocks copied to clipboard
Systemd service, autotools support, rpm release
Thanks for the socks service, it's pretty handy :)
I made a few changes to build this automatically and create a package to support my deployment process. I figured someone upstream might find it useful.
The changes are as follows
-
Systemd service Added a systemd service file and its relevant configuration. Run as microsocks nologin user
-
Moved to autotools Exercise in adding flexibility
-
RPM Package creation I created the spec file needed to create an rpm package Creates the required nologin microsocks service account
-
Github automation Configured a github action to build the package when a push event with a 'v*' tag is detected. Should make future package releases easier; reference my release page for example
-
Clarified usage statement Nothing too crazy, just thought it could be clearer for first time users, can be considered the only functional code change in this PR
[builder@rpm-build microsocks]$ microsocks -h Usage: microsocks [options] Options: -b Bind outgoing connections to the listening ip (defined by -i) -i <ip addr> The ip address the server listens to for connections (default: 0.0.0.0) -p <port num> The port the server listens to for connections (default: 1080) -u <username> Authentication username, used to auth proxy clients (default: not set) -P <password> Authentication password, used to auth proxy clients (default: not set) -1 Activates auth_once mode. Once a specific ip address successfully authenticates with user/pass, it is added to a whitelist and may use the proxy without auth. This is handy for programs like firefox that don't support user/pass auth. for it to work you'd basically make one connection with another program that supports it, and then you can use firefox too. (default: disabled)
Cheers 👍
thanks, i'm not interested in changing the build system nor adding 3rd party stuff like systemd services but i'm leaving this open in case someone finds it useful.
Hi @rofl0r ,
And for a simple init.d script?
And for a simple init.d script?
out of scope as well