diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-07-30 23:22:39 +0800 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-07-30 23:22:39 +0800 |
commit | f65a1febd16f08b6476a21f617076417810918a1 (patch) | |
tree | a16af631a2b6ab24fd0c4a96832a76bcb6331c30 /configs/configs_root_dir/etc/systemd/system | |
parent | cac2affdc1f907334036b4cc32164db1080b74df (diff) |
add my old phantun service
Diffstat (limited to 'configs/configs_root_dir/etc/systemd/system')
-rw-r--r-- | configs/configs_root_dir/etc/systemd/system/phantun_client.service | 13 | ||||
-rw-r--r-- | configs/configs_root_dir/etc/systemd/system/phantun_server.service | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/configs/configs_root_dir/etc/systemd/system/phantun_client.service b/configs/configs_root_dir/etc/systemd/system/phantun_client.service new file mode 100644 index 0000000..550bf39 --- /dev/null +++ b/configs/configs_root_dir/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/configs/configs_root_dir/etc/systemd/system/phantun_server.service b/configs/configs_root_dir/etc/systemd/system/phantun_server.service new file mode 100644 index 0000000..67b24f9 --- /dev/null +++ b/configs/configs_root_dir/etc/systemd/system/phantun_server.service @@ -0,0 +1,13 @@ +[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 |