summaryrefslogtreecommitdiff
path: root/etc/systemd/system
diff options
context:
space:
mode:
Diffstat (limited to 'etc/systemd/system')
-rw-r--r--etc/systemd/system/phantun_server.service14
1 files changed, 14 insertions, 0 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
+