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: bleh
devins.page
3 months ago
fab52dd5
0cd97dcb
+3
-6
1 changed file
expand all
collapse all
unified
split
hosts
bluepill-proxy
services
nftables.nix
+3
-6
hosts/bluepill-proxy/services/nftables.nix
···
5
5
};
6
6
7
7
networking.firewall = {
8
8
-
allowedTCPPorts = [25565];
8
8
+
enable = true;
9
9
+
allowedTCPPorts = [22 25565];
9
10
allowedUDPPorts = [25565 24454 19132];
10
10
-
extraCommands = ''
11
11
-
nft add rule ip nat postrouting oif tailscale0 ip daddr 100.109.134.42 counter snat to 100.108.47.83
12
12
-
'';
13
11
};
14
14
-
15
15
-
networking.nftables.enable = true;
16
12
17
13
networking.nat = {
18
14
enable = true;
19
15
externalInterface = "ens6";
16
16
+
externalIP = "100.108.47.83";
20
17
forwardPorts = [
21
18
{
22
19
sourcePort = 25565;