-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an installer #17
Comments
Thank you for the feedback - this one is a bit challenging, even if keeping aside the headaches of Windows services in general. Px can only run once you are logged in since it authenticates as the logged in user. If you want it to run as a service (which typically start before login), it means you need to setup the service with the user's credentials and that's a manual process. And it defeats the purpose of Px which is to not require any credential setup (and maintenance), unlike cNTLM and the like. What we could build is a simple installer that creates a Px shortcut into the Windows Startup folder and also collect and setup px.ini during install instead of requiring manual copying and editing. I'm curious what your thoughts are on such an installer and whether it will meet the needs of most users of Px. |
Hey, thanks for your answer. I'm not really a windows pro, but I had in mind that there was some options to start a service as a specific user. A simple installer with an option to add a shortcut in the windows startup folder would be something I use as it makes setuping new machines easier. |
Px can now add/remove an entry into the Windows registry to start on install. Please see if it meets your needs. px --install You will need to have all settings specified in px.ini in order for this to work since no command line flags are saved in the registry. I'm currently working on the ability to --save all settings on the command line so you can create a px.ini with all custom settings without having to manually edit the file. E.g. px --proxy=proxyserver:80 --port=3129 --noproxy=10...* --save |
Just posted v0.3.0 so marking this as closed. |
What about installing with nssm? Will that work? |
I think this should be possible but I didn't go that far considering Px uses the credentials of the logged in user to authenticate with the proxy server. The fact that the user has already provided his login/pass to the OS on logging in, they don't need to type it in again for Px. This means if their password changes, Px does not care since the user would have to login with the new password. To run Px as a service, you have to store the service account password in Windows services and it's still hard coded and if the password changes, you need to change it there. I was thinking you might as well use cNTLM but then just realized that it requires it's own copy of the login/pass in its ini file to work. It appears there might be value in enabling Px to run pre-login. You would just update the service account password in Windows services and not have to update another copy of the password. I think this could be handled with just documentation but having a |
Agreeed- if we can encapsulate it into I have tried running px as a windows service via nssm; it just crashes at present:
|
I just tried via nssm and it worked nicely. Here's the steps I used:-
Note I set this up and tested Px from the same system so I was logged in already. Let me know what you find. Given installing a service requires admin access and the actual user/pass, I'd rather document this in the README than to add it as a command. |
So I deleted the first nssm services and reinstalled it; now I can see the service starting but I have the following in debug-MainProcess.log:
Any connections are refused with:
|
It appears you are running px.py rather than the binary and an older version since line 996 is no longer related to |
Okay i'll give that a go, and will open new issue if I see any; thanks! |
Hi,
In order to be able to ease the use in a work environnement, providing an installer that can install a windows service directly would be really useful.
Ton of thanks for Px :)
The text was updated successfully, but these errors were encountered: