From d9e1da3d8a0f90b10624c037b864e62680d494ea Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Thu, 24 Jul 2025 18:25:07 +0000 Subject: add and enable phantun_server service --- etc/systemd/system/phantun_server.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 etc/systemd/system/phantun_server.service (limited to 'etc/systemd/system/phantun_server.service') 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 + -- cgit v1.2.3-70-g09d2