summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-24 18:25:07 +0000
committerXiao Pan <xyz@flylightning.xyz>2025-07-24 18:25:07 +0000
commitd9e1da3d8a0f90b10624c037b864e62680d494ea (patch)
tree804770aae53a2bd77bea5855b7e53b2754d496b5
parenta0b815b570a125bb14bfec9198b4761b69449c75 (diff)
add and enable phantun_server service
-rw-r--r--etc/systemd/system/phantun_server.service14
-rw-r--r--home/xyz/.config/myconf/sye3
2 files changed, 16 insertions, 1 deletions
diff --git a/etc/systemd/system/phantun_server.service b/etc/systemd/system/phantun_server.service
new file mode 100644
index 00000000..68a57480
--- /dev/null
+++ b/etc/systemd/system/phantun_server.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=phantun client
+After=network.target
+
+[Service]
+Type=simple
+Environment=RUST_LOG=info
+ExecStart=/usr/bin/phantun_server --local 59083 --remote [::1]:54635 --tun-local 10.0.2.1 --tun-peer 10.0.2.2 --tun-local6 fdc9:281f:04d7:9eeb::1 --tun-peer6 fdc9:281f:04d7:9eeb::2 --tun pt0
+#ExecStart=/usr/bin/env RUST_LOG=info /usr/bin/phantun_server --local 59083 --remote [::1]:54635 --tun-local 10.0.2.1 --tun-peer 10.0.2.2 --tun-local6 fdc9:281f:04d7:9eeb::1 --tun-peer6 fdc9:281f:04d7:9eeb::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 36172544..91515e8c 100644
--- a/home/xyz/.config/myconf/sye
+++ b/home/xyz/.config/myconf/sye
@@ -1,6 +1,7 @@
UNIT FILE STATE PRESET
getty@.service enabled enabled
nftables.service enabled disabled
+phantun_server.service enabled disabled
sshd.service enabled disabled
swgp-go.service enabled disabled
systemd-network-generator.service enabled enabled
@@ -15,4 +16,4 @@ remote-fs.target enabled enabled
paccache.timer enabled disabled
pacman-filesdb-refresh.timer enabled disabled
-15 unit files listed.
+16 unit files listed.