Paste number 344488: nixos firewall example

Paste number 344488: nixos firewall example
Pasted by: lfam
When:3 years, 1 month ago
Share:Tweet this! | http://paste.lisp.org/+7DT4
Channel:None
Paste contents:
Raw Source | XML | Display As
  networking.firewall = { 
    allowPing = true;
    allowedTCPPorts = [ 80 443 22000 ]; # 22000 syncthing traffic
    allowedUDPPorts = [ 21027 ]; # 21027 syncthing discovery
    allowedUDPPortRanges = [ 
      { from = 60000; to = 60100; } # mosh, mobile shell
    ];  
  };  

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.