migrate firewall config increase security
This commit is contained in:
parent
1cf7f2c054
commit
4ecc6a4ae6
4 changed files with 55 additions and 3 deletions
|
|
@ -14,6 +14,20 @@
|
|||
};
|
||||
|
||||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
ygg0 = {
|
||||
allowedTCPPorts = [ 22 ];
|
||||
allowedUDPPorts = [ ];
|
||||
};
|
||||
};
|
||||
|
||||
# Default deny policy for all interfaces (including ygg0)
|
||||
allowPing = false;
|
||||
allowedTCPPorts = [ ];
|
||||
allowedUDPPorts = [ ];
|
||||
};
|
||||
dhcpcd.enable = false;
|
||||
useDHCP = false;
|
||||
useHostResolvConf = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue