Change to more generic firewall rule
This commit is contained in:
parent
847684f67a
commit
7635beefb7
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
|||
{
|
||||
networking = {
|
||||
firewall.extraInputRules = ''
|
||||
ip saddr { 10.0.0.0/24, 10.1.0.0/24, 10.2.0.0/24, 10.100.0.0/24 } tcp dport 2049 accept comment "Accept NFS"
|
||||
ip saddr { ${config.ips.pc}, ${config.secrets.ips.luna}, ${config.secrets.ips.corn} } tcp dport { 1935, 1945 } accept comment "Accept RTMP"
|
||||
ip saddr { 10.0.0.0/8, 10.100.0.0/24 } tcp dport 2049 accept comment "Accept NFS"
|
||||
ip saddr { 10.0.0.0/8, ${config.secrets.ips.luna}, ${config.secrets.ips.corn} } tcp dport { 1935, 1945 } accept comment "Accept RTMP"
|
||||
'';
|
||||
|
||||
# Nftables configuration only if server is enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue