tangled
alpha
login
or
join now
devins.page
/
flake
0
fork
atom
configurations for my servers and desktops
nix
nixos
flake
dots
dotfiles
0
fork
atom
overview
issues
pulls
pipelines
fix: ughhh pmo
devins.page
1 month ago
f59e87c0
cf758c00
+9
-7
1 changed file
expand all
collapse all
unified
split
hosts
bluepill-proxy
modules
socat.nix
+9
-7
hosts/bluepill-proxy/modules/socat.nix
···
10
10
after = ["network-online.target"];
11
11
serviceConfig = {
12
12
ExecStart = ''
13
13
-
${pkgs.socat}/bin/socat TCP-LISTEN:25565,reuseaddr,fork TCP:100.108.47.83:25565 &
14
14
-
${pkgs.socat}/bin/socat UDP-LISTEN:25565,reuseaddr,fork UDP:100.108.47.83:25565 &
15
15
-
${pkgs.socat}/bin/socat UDP-LISTEN:24454,reuseaddr,fork UDP:100.108.47.83:24454 &
13
13
+
sh -c "
14
14
+
${pkgs.socat}/bin/socat TCP-LISTEN:25565,reuseaddr,fork TCP:100.108.47.83:25565 &
15
15
+
${pkgs.socat}/bin/socat UDP-LISTEN:25565,reuseaddr,fork UDP:100.108.47.83:25565 &
16
16
+
${pkgs.socat}/bin/socat UDP-LISTEN:24454,reuseaddr,fork UDP:100.108.47.83:24454 &
16
17
17
17
-
${pkgs.socat}/bin/socat TCP-LISTEN:23343,reuseaddr,fork TCP:100.108.47.83:23343 &
18
18
-
${pkgs.socat}/bin/socat UDP-LISTEN:23343,reuseaddr,fork UDP:100.108.47.83:23343 &
19
19
-
${pkgs.socat}/bin/socat UDP-LISTEN:22232,reuseaddr,fork UDP:100.108.47.83:22232 &
20
20
-
wait
18
18
+
${pkgs.socat}/bin/socat TCP-LISTEN:23343,reuseaddr,fork TCP:100.108.47.83:23343 &
19
19
+
${pkgs.socat}/bin/socat UDP-LISTEN:23343,reuseaddr,fork UDP:100.108.47.83:23343 &
20
20
+
${pkgs.socat}/bin/socat UDP-LISTEN:22232,reuseaddr,fork UDP:100.108.47.83:22232 &
21
21
+
wait
22
22
+
"
21
23
'';
22
24
Restart = "always";
23
25
User = "nobody";