ripe-atlas.service.j2 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. [Unit]
  2. Description=Atlas Probe
  3. After=network-online.target syslog.target
  4. [Service]
  5. RemoveIPC=yes
  6. CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_NET_RAW
  7. {% if ripe_atlas.allow is defined %}
  8. IPAddressAllow={% set comma = joiner(" ") %}{% for host in ripe_atlas.allow %}{{ comma() }}{{ host }}{% endfor %}
  9. {% endif %}
  10. IPAddressDeny=172.20.0.0/14 172.31.0.0/16 10.0.0.0/8 fd00::/8 172.24.0.0/16 2001:db8:dead:beef::/64 100.64.0.0/10 fd7a:115c:a1e0::/96 {% if ripe_atlas.deny is defined %}{% for host in ripe_atlas.deny %} {{ host }}{% endfor %}{% endif %}
  11. PrivateTmp=yes
  12. DeviceAllow=
  13. PrivateMounts=true
  14. ProtectControlGroups=true
  15. ProtectProc=noaccess
  16. ProtectSystem=true
  17. ProtectHome=read-only
  18. PermissionsStartOnly=true
  19. LimitNOFILE=1048576
  20. LimitNPROC=512
  21. UMask=600
  22. User=ripe-atlas
  23. Group=ripe-atlas
  24. Environment=HOME=/var/spool/ripe-atlas
  25. WorkingDirectory=/var/spool/ripe-atlas
  26. ExecStart=/usr/sbin/ripe-atlas
  27. ExecStop=/usr/bin/killall -n 0 telnetd perd eperd eooqd
  28. Restart=always
  29. TimeoutStopSec=60
  30. [Install]
  31. WantedBy=multi-user.target