Add basic mycelium, change some hardware and browser stuff
This commit is contained in:
parent
f49316e600
commit
200bf7e711
6 changed files with 64 additions and 63 deletions
|
@ -9,14 +9,5 @@
|
|||
address = "10.1.0.1";
|
||||
interface = "eno1";
|
||||
};
|
||||
|
||||
vlans.internal = {
|
||||
id=100;
|
||||
interface="eno1";
|
||||
};
|
||||
interfaces.internal.ipv4.addresses = [{
|
||||
address = "11.0.0.2";
|
||||
prefixLength = 8;
|
||||
}];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,33 +9,6 @@
|
|||
address = "10.1.0.1";
|
||||
interface = "enp0s31f6";
|
||||
};
|
||||
|
||||
vlans.internal = {
|
||||
id=100;
|
||||
interface="enp0s31f6";
|
||||
};
|
||||
interfaces.internal.ipv4.addresses = [{
|
||||
address = "11.0.0.1";
|
||||
prefixLength = 8;
|
||||
}];
|
||||
|
||||
nftables.tables.forwarding = {
|
||||
family = "inet";
|
||||
content = ''
|
||||
chain incoming {
|
||||
type nat hook prerouting priority dstnat; policy accept;
|
||||
tcp dport 2211 dnat ip to 11.0.0.100:22 comment "Tower SSH"
|
||||
tcp dport 2222 dnat ip to 11.0.0.2:22 comment "Kitty SSH"
|
||||
|
||||
udp dport { 27005, 27015 } dnat ip to 11.0.0.100 comment "PC Hosted Games"
|
||||
}
|
||||
|
||||
chain forward {
|
||||
type nat hook postrouting priority 100; policy accept;
|
||||
masquerade
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
# Enable IP forwarding for the server configuration
|
||||
|
|
|
@ -10,15 +10,6 @@
|
|||
interface = "enp42s0";
|
||||
};
|
||||
|
||||
vlans.internal = {
|
||||
id=100;
|
||||
interface="enp42s0";
|
||||
};
|
||||
interfaces.internal.ipv4.addresses = [{
|
||||
address = "11.0.0.100";
|
||||
prefixLength = 8;
|
||||
}];
|
||||
|
||||
firewall.allowedUDPPorts = [ 27015 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue