diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-07-24 18:25:07 +0000 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-07-24 18:25:07 +0000 |
commit | d9e1da3d8a0f90b10624c037b864e62680d494ea (patch) | |
tree | 804770aae53a2bd77bea5855b7e53b2754d496b5 /etc | |
parent | a0b815b570a125bb14bfec9198b4761b69449c75 (diff) |
add and enable phantun_server service
Diffstat (limited to 'etc')
-rw-r--r-- | etc/systemd/system/phantun_server.service | 14 |
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 + |