sh -c "$(curl -fsSL https://gist.githubusercontent.com/sarkrui/ae2dcd9698665c92387336fca3b9cd65/raw/a6b00b901b8d1ef8a6b83178aff4aa38ca97c8d9/install.sh"
Last active
December 28, 2022 07:13
-
-
Save sarkrui/ae2dcd9698665c92387336fca3b9cd65 to your computer and use it in GitHub Desktop.
Rathole macOS Launchctl Plist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"encoding="utf-8"?> | |
<!DOCTYPE plist PUBLIC"-//Apple//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>KeepAlive</key> | |
<true/> | |
<key>RunAtLoad</key> | |
<true/> | |
<key>Label</key> | |
<string>rathole</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/rathole</string> | |
<string>-c</string> | |
<string>/etc/rathole/rathole.toml</string> | |
</array> | |
</dict> | |
</plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
mkdir -p /etc/rathole | |
wget -O /etc/rathole/rathole.toml https://gist.githubusercontent.com/sarkrui/ae2dcd9698665c92387336fca3b9cd65/raw/d38b6988bb26b5d53359a5f798aecb63958ec019/rathole.toml | |
wget -O ~/Library/LaunchAgents/com.rathole.plist https://gist.githubusercontent.com/sarkrui/ae2dcd9698665c92387336fca3b9cd65/raw/d38b6988bb26b5d53359a5f798aecb63958ec019/com.rathole.plist | |
launchctl unload -w ~/Library/LaunchAgents/com.rathole.plist | |
launchctl load -w ~/Library/LaunchAgents/com.rathole.plist | |
launchctl start rathole |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
remote_addr = "ip:port" | |
default_token = "token" | |
[client.services.name] | |
type = "tcp" | |
local_addr = "0.0.0.0:port" | |
nodelay = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[server] | |
bind_addr = "0.0.0.0:4000" | |
default_token = "verynerd" | |
[server.services.name] | |
type = "tcp" | |
bind_addr = "0.0.0.0:port" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment