lass 2 steam: move config to new firewall
This commit is contained in:
parent
954f122d38
commit
29c5c49131
|
@ -16,15 +16,14 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
steam
|
||||
];
|
||||
networking.firewall = {
|
||||
allowedUDPPorts = [
|
||||
27031
|
||||
27036
|
||||
];
|
||||
allowedTCPPorts = [
|
||||
27036
|
||||
27037
|
||||
];
|
||||
lass.iptables = {
|
||||
tables = {
|
||||
filter.INPUT.rules = [
|
||||
{ predicate = "-p tcp --dport 27031"; target = "ACCEPT"; }
|
||||
{ predicate = "-p tcp --dport 27036"; target = "ACCEPT"; }
|
||||
{ predicate = "-p udp --dport 27031"; target = "ACCEPT"; }
|
||||
{ predicate = "-p udp --dport 27036"; target = "ACCEPT"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue