summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-25 02:24:44 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-07-25 02:24:44 +0800
commit00ce489e3f839376463d1e6cb9520f30cd095d04 (patch)
tree1ed06fe7c5f6213e618b1164799c1f3cc8e0e776
parent6cb61d2471e815f60695e1c017a3ed514d39c5c6 (diff)
add and enable phantun_client service
-rw-r--r--etc/systemd/system/phantun_client.service13
-rw-r--r--home/xyz/.config/myconf/sye3
2 files changed, 15 insertions, 1 deletions
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
diff --git a/home/xyz/.config/myconf/sye b/home/xyz/.config/myconf/sye
index 309900ab..857d5def 100644
--- a/home/xyz/.config/myconf/sye
+++ b/home/xyz/.config/myconf/sye
@@ -10,6 +10,7 @@ nftables.service enabled disabled
nvidia-hibernate.service enabled disabled
nvidia-resume.service enabled disabled
nvidia-suspend.service enabled disabled
+phantun_client.service enabled disabled
sshd.service enabled disabled
swgp-go.service enabled disabled
systemd-resolved.service enabled enabled
@@ -21,4 +22,4 @@ paccache.timer enabled disabled
pacman-filesdb-refresh.timer enabled disabled
units_currency.timer enabled disabled
-21 unit files listed.
+22 unit files listed.