mirror of
https://github.com/oqyude/nixos.git
synced 2026-10-07 20:47:14 +03:00
3x
This commit is contained in:
@@ -25,8 +25,12 @@ let
|
||||
# 14380-15379/tcp+udp — Xray inbounds (matches firewall open range)
|
||||
"0.0.0.0:2049:2049/tcp"
|
||||
"0.0.0.0:2096:2096/tcp"
|
||||
"0.0.0.0:14380-15379:14380-15379/tcp"
|
||||
"0.0.0.0:14380-15379:14380-15379/udp"
|
||||
"0.0.0.0:8443:8443/tcp"
|
||||
"0.0.0.0:8443:8443/udp"
|
||||
"0.0.0.0:18443:18443/tcp"
|
||||
"0.0.0.0:18443:18443/udp"
|
||||
# "0.0.0.0:14380-15379:14380-15379/tcp"
|
||||
# "0.0.0.0:14380-15379:14380-15379/udp"
|
||||
];
|
||||
# VDS-only: nginx stream forwards host:443 → host:15380 → container:443,
|
||||
# so Xray inside the container sees its REALITY inbound on its real
|
||||
@@ -113,17 +117,25 @@ in
|
||||
|
||||
# Enable container name DNS for all Podman networks.
|
||||
networking.firewall = {
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
from = 14380;
|
||||
to = 15380;
|
||||
}
|
||||
# allowedUDPPortRanges = [
|
||||
# {
|
||||
# from = 8443;
|
||||
# to = 15380;
|
||||
# }
|
||||
# ];
|
||||
# allowedTCPPortRanges = [
|
||||
# {
|
||||
# from = 14380;
|
||||
# to = 15380;
|
||||
# }
|
||||
# ];
|
||||
allowedUDPPorts = [
|
||||
18443
|
||||
8443
|
||||
];
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
from = 14380;
|
||||
to = 15380;
|
||||
}
|
||||
allowedTCPPorts = [
|
||||
18443
|
||||
8443
|
||||
];
|
||||
interfaces =
|
||||
let
|
||||
|
||||
Reference in New Issue
Block a user