From 00ce489e3f839376463d1e6cb9520f30cd095d04 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Fri, 25 Jul 2025 02:24:44 +0800 Subject: add and enable phantun_client service --- etc/systemd/system/phantun_client.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 etc/systemd/system/phantun_client.service (limited to 'etc') diff --git a/etc/systemd/system/phantun_client.service b/etc/systemd/system/phantun_client.service new file mode 100644 index 00000000..550bf391 --- /dev/null +++ b/etc/systemd/system/phantun_client.service @@ -0,0 +1,13 @@ +[Unit] +Description=phantun client +After=network.target + +[Service] +Type=simple +Environment=RUST_LOG=info +ExecStart=/usr/bin/phantun_client --local [::1]:59083 --remote 104.224.159.210:59083 --tun-local 10.0.1.1 --tun-peer 10.0.1.2 --tun-local6 fdc9:281f:04d7:9eea::1 --tun-peer6 fdc9:281f:04d7:9eea::2 --tun pt0 +#ExecStart=/usr/bin/env RUST_LOG=info /usr/bin/phantun_client --local [::1]:59083 --remote 104.224.159.210:59083 --tun-local 10.0.1.1 --tun-peer 10.0.1.2 --tun-local6 fdc9:281f:04d7:9eea::1 --tun-peer6 fdc9:281f:04d7:9eea::2 --tun pt0 +Restart=always + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3-70-g09d2