hosts/remilia: regular networking update
This commit is contained in:
@@ -2,13 +2,12 @@
|
|||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
hostName = "Remilia";
|
hostName = "remilia";
|
||||||
firewall =
|
firewall =
|
||||||
{
|
{
|
||||||
interfaces = {
|
interfaces = {
|
||||||
ens3 = {
|
ens3 = {
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
22
|
|
||||||
80
|
80
|
||||||
81
|
81
|
||||||
443
|
443
|
||||||
@@ -19,10 +18,10 @@
|
|||||||
25
|
25
|
||||||
22001
|
22001
|
||||||
22002
|
22002
|
||||||
6600
|
|
||||||
9898
|
9898
|
||||||
8999
|
8999
|
||||||
];
|
99
|
||||||
|
] ++ (map (x: x.sourcePort) config.networking.nat.forwardPorts);
|
||||||
allowedUDPPorts = [ 17840 ];
|
allowedUDPPorts = [ 17840 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -47,9 +46,13 @@
|
|||||||
internalInterfaces = [ "wg0" ];
|
internalInterfaces = [ "wg0" ];
|
||||||
forwardPorts = [
|
forwardPorts = [
|
||||||
{
|
{
|
||||||
destination = "10.55.0.2:222";
|
destination = "10.55.0.2:2002";
|
||||||
sourcePort = 22;
|
sourcePort = 22;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
destination = "10.55.0.2:22";
|
||||||
|
sourcePort = 23;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
destination = "10.55.0.3:6600";
|
destination = "10.55.0.3:6600";
|
||||||
sourcePort = 6600;
|
sourcePort = 6600;
|
||||||
|
Reference in New Issue
Block a user