Skip to content

Instantly share code, notes, and snippets.

@tanpengsccd
Last active April 16, 2023 09:32
Show Gist options
  • Save tanpengsccd/41a7ba56f31a9b58bfa1177e9228b239 to your computer and use it in GitHub Desktop.
Save tanpengsccd/41a7ba56f31a9b58bfa1177e9228b239 to your computer and use it in GitHub Desktop.
udp2raw.service & speeder.service
[Unit]
Description=speeder service
After=syslog.target network.target auditd.service
[Service]
Type=notify
NotifyAccess=all
User=root
ExecStart=/usr/local/bin/speederv2_amd64 -c -l0.0.0.0:34000 -r47.74.239.218:34002 -f2:18 --timeout 0
ExecReload=/bin/kill -HUP
ExecStop=/bin/kill -s QUIT PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target
[Unit]
Description=speeder service
After=syslog.target network.target auditd.service
[Service]
Type=notify
NotifyAccess=all
User=root
ExecStart=/usr/local/bin/speederv2_amd64 -s -l0.0.0.0:34002 -r127.0.0.1:34000 -f2:18 --timeout 0 #十倍流量⚠️
ExecReload=/bin/kill -HUP
ExecStop=/bin/kill -s QUIT PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target
[Unit]
Description=tinymapper service
After=syslog.target network.target auditd.service
[Service]
Type=notify
NotifyAccess=all
User=root
ExecStart=/usr/local/bin/tinymapper_amd64 -l0.0.0.0:34000 -r47.74.239.218:34000 -t
ExecReload=/bin/kill -HUP
ExecStop=/bin/kill -s QUIT PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target
[Unit]
Description=udp2raw service
After=syslog.target network.target auditd.service
[Service]
Type=notify
NotifyAccess=all
User=root
ExecStart=/usr/local/bin/udp2raw_amd64 -s -l0.0.0.0:20001 -r 127.0.0.1:9999 --raw-mode faketcp -k tanpeng123
ExecReload=/bin/kill -HUP
ExecStop=/bin/kill -s QUIT PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target
@tanpengsccd
Copy link
Author

/etc/systemd/system/udp2raw.service
/etc/systemd/system/speeder.service
先得下载好二进制文件

@warmonkey
Copy link

Improved version
/etc/systemd/system/speeder.service

[Unit]
Description=speeder service
After=syslog.target network-online.target
[Service]
Type=simple
User=root
ExecStart=/usr/local/bin/speederv2_amd64 -c -l 0.0.0.0:34000 -r 11.22.33.44:34000 -i 10 --timeout 60 --mode 1
ExecReload=/bin/kill -HUP
ExecStop=/bin/kill -s QUIT PrivateTmp=true
Restart=on-failure
[Install]
WantedBy=multi-user.target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment