[Unit] Description=UniSOC Honeypot Agent (forward + commands) After=network-online.target Wants=network-online.target [Service] Type=simple User=root Group=root EnvironmentFile=-/etc/unisoc-honeypot-agent/agent.env ExecStart=/usr/bin/python3 /opt/unisoc-honeypot-agent/agent.py Restart=always RestartSec=15 StandardOutput=append:/var/log/unisoc-honeypot-agent.log StandardError=append:/var/log/unisoc-honeypot-agent.log # Need root for iptables / systemctl restart cowrie / regen files in /opt + /srv AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE ProtectSystem=false ProtectHome=true NoNewPrivileges=false [Install] WantedBy=multi-user.target