Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkcyankitty <darkcyan_kitty@proton.me>2025-08-31 16:26:46 +0300
committerGitHub <noreply@github.com>2025-08-31 16:26:46 +0300
commit664269d513f4c122c9f5a713d3293777872d3353 (patch)
tree40cec32339b904c3654ba05ce82fecb5b392bad5
parentd0796b26c94da1132390446cf7a59c18ff36bb25 (diff)
x-ui.service hardneing (#3397)
-rw-r--r--x-ui.service9
1 files changed, 8 insertions, 1 deletions
diff --git a/x-ui.service b/x-ui.service
index 29d2a63a..3b375c3e 100644
--- a/x-ui.service
+++ b/x-ui.service
@@ -10,6 +10,13 @@ WorkingDirectory=/usr/local/x-ui/
ExecStart=/usr/local/x-ui/x-ui
Restart=on-failure
RestartSec=5s
+ProtectHome=tmpfs
+ProtectKernelModules=true
+ProtectControlGroups=true
+ProtectKernelLogs=true
+ProtectHostname=true
+ProtectClock=true
+MemoryDenyWriteExecute=true
[Install]
-WantedBy=multi-user.target \ No newline at end of file
+WantedBy=multi-user.target