Best solution I could come up with. Maybe no one else has this issue or simply no one runs the binary but in either case hope this can help someone out in the future
Originally created by @basher83 on GitHub (Feb 11, 2025).
I looked through the repo and didn't see this mentioned. Basically what the title says.
Steps to reproduce:
On host:
1. wget -O newt "https://github.com/fosrl/newt/releases/download/1.0.0-beta.3/newt_linux_amd64" && chmod +x ./newt
2. newt --id your_id --secret your_secret --endpoint https://pangolin.your_endpoint
Results in the cli being taken hostage. I tried & at the end with no luck, I then turned to tmux and that works but then I remembered systemd!
Did a simple:
[Unit]
Description=Newt VPN Client
After=network.target
[Service]
ExecStart=/usr/local/bin/newt --id your_id --secret your_secret --endpoint https://pangolin.your_endpoint
Restart=always
User=root
[Install]
WantedBy=multi-user.target
Best solution I could come up with. Maybe no one else has this issue or simply no one runs the binary but in either case hope this can help someone out in the future
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @basher83 on GitHub (Feb 11, 2025).
I looked through the repo and didn't see this mentioned. Basically what the title says.
Steps to reproduce:
On host:
Results in the cli being taken hostage. I tried & at the end with no luck, I then turned to tmux and that works but then I remembered systemd!
Did a simple:
[Unit]
Description=Newt VPN Client
After=network.target
[Service]
ExecStart=/usr/local/bin/newt --id your_id --secret your_secret --endpoint https://pangolin.your_endpoint
Restart=always
User=root
[Install]
WantedBy=multi-user.target
Best solution I could come up with. Maybe no one else has this issue or simply no one runs the binary but in either case hope this can help someone out in the future
@oschwartz10612 commented on GitHub (Feb 11, 2025):
I added this to the readme! Thanks!
@basher83 commented on GitHub (Feb 11, 2025):
Absolutely! I actually took this one step further with a quick bash script: