@@ -507,52 +507,52 @@ func (a *Agent) processDNSTypeAResponse(domain string, answer *layers.DNSResourc
507507 // Add to in-memory allowed IPs map
508508 // No need to update nftables - Go agent handles all decisions
509509 a .allowedIps [ip ] = true
510- a .addConnectionLog (ConnectionLog {
511- Decision : "allowed" ,
512- Protocol : "DNS-response" ,
513- SrcIP : pkt .SrcIP ,
514- SrcPort : pkt .SrcPort ,
515- DstIP : ip ,
516- DstPort : "53" ,
517- Domain : domain ,
518- Reason : "dns-resolved" ,
519- PID : pkt .PID ,
520- ProcessName : pkt .ProcessName ,
521- CommandLine : pkt .CommandLine ,
522- ExecutablePath : pkt .ExecutablePath ,
523- })
510+ // a.addConnectionLog(ConnectionLog{
511+ // Decision: "allowed",
512+ // Protocol: "DNS-response",
513+ // SrcIP: pkt.SrcIP,
514+ // SrcPort: pkt.SrcPort,
515+ // DstIP: ip,
516+ // DstPort: "53",
517+ // Domain: domain,
518+ // Reason: "dns-resolved",
519+ // PID: pkt.PID,
520+ // ProcessName: pkt.ProcessName,
521+ // CommandLine: pkt.CommandLine,
522+ // ExecutablePath: pkt.ExecutablePath,
523+ // })
524524 }
525525 } else if a .isIpAllowed (ip ) {
526526 fmt .Println ("-> Allowed request" )
527- a .addConnectionLog (ConnectionLog {
528- Decision : "allowed" ,
529- Protocol : "DNS-response" ,
530- SrcIP : pkt .SrcIP ,
531- SrcPort : pkt .SrcPort ,
532- DstIP : ip ,
533- DstPort : "53" ,
534- Domain : domain ,
535- Reason : "ip-allowed" ,
536- PID : pkt .PID ,
537- ProcessName : pkt .ProcessName ,
538- CommandLine : pkt .CommandLine ,
539- ExecutablePath : pkt .ExecutablePath ,
540- })
527+ // a.addConnectionLog(ConnectionLog{
528+ // Decision: "allowed",
529+ // Protocol: "DNS-response",
530+ // SrcIP: pkt.SrcIP,
531+ // SrcPort: pkt.SrcPort,
532+ // DstIP: ip,
533+ // DstPort: "53",
534+ // Domain: domain,
535+ // Reason: "ip-allowed",
536+ // PID: pkt.PID,
537+ // ProcessName: pkt.ProcessName,
538+ // CommandLine: pkt.CommandLine,
539+ // ExecutablePath: pkt.ExecutablePath,
540+ // })
541541 } else {
542- a .addConnectionLog (ConnectionLog {
543- Decision : "blocked" ,
544- Protocol : "DNS-response" ,
545- SrcIP : pkt .SrcIP ,
546- SrcPort : pkt .SrcPort ,
547- DstIP : ip ,
548- DstPort : "53" ,
549- Domain : domain ,
550- Reason : "domain-not-allowed" ,
551- PID : pkt .PID ,
552- ProcessName : pkt .ProcessName ,
553- CommandLine : pkt .CommandLine ,
554- ExecutablePath : pkt .ExecutablePath ,
555- })
542+ // a.addConnectionLog(ConnectionLog{
543+ // Decision: "blocked",
544+ // Protocol: "DNS-response",
545+ // SrcIP: pkt.SrcIP,
546+ // SrcPort: pkt.SrcPort,
547+ // DstIP: ip,
548+ // DstPort: "53",
549+ // Domain: domain,
550+ // Reason: "domain-not-allowed",
551+ // PID: pkt.PID,
552+ // ProcessName: pkt.ProcessName,
553+ // CommandLine: pkt.CommandLine,
554+ // ExecutablePath: pkt.ExecutablePath,
555+ // })
556556 if blocking {
557557 fmt .Println ("-> Blocked request" )
558558 } else {
0 commit comments