nuno revisou este gist 1 month ago. Ir para a revisão
1 file changed, 9 insertions
gistfile1.txt(arquivo criado)
| @@ -0,0 +1,9 @@ | |||
| 1 | + | grep -v "^{}$" /etc/wireguard/.wgctl/daemon/fw_events.log | head -3 | |
| 2 | + | {"timestamp": "2026-05-13T05:14:53.705778", "dvc": "Netfilter", "raw.pktlen": 113, "raw.pktcount": 1, "oob.prefix": "wgctl-drop:", "oob.time.sec": 1778649293, "oob.time.usec": 705778, "oob.mark": 0, "oob.ifindex_in": 32, "oob.ifindex_out": 2, "oob.hook": 2, "oob.family": 2, "oob.protocol": 2048, "raw.label": 0, "ip.protocol": 1, "ip.tos": 192, "ip.ttl": 63, "ip.totlen": 113, "ip.ihl": 5, "ip.csum": 29527, "ip.id": 61452, "ip.fragoff": 0, "icmp.type": 3, "icmp.code": 3, "icmp.csum": 47124, "src_ip": "10.1.3.1", "dest_ip": "10.0.0.103"} | |
| 3 | + | {"timestamp": "2026-05-13T05:14:53.706576", "dvc": "Netfilter", "raw.pktlen": 216, "raw.pktcount": 1, "oob.prefix": "wgctl-drop:", "oob.time.sec": 1778649293, "oob.time.usec": 706576, "oob.mark": 0, "oob.ifindex_in": 32, "oob.ifindex_out": 2, "oob.hook": 2, "oob.family": 2, "oob.protocol": 2048, "raw.label": 0, "ip.protocol": 1, "ip.tos": 192, "ip.ttl": 63, "ip.totlen": 216, "ip.ihl": 5, "ip.csum": 29423, "ip.id": 61453, "ip.fragoff": 0, "icmp.type": 3, "icmp.code": 3, "icmp.csum": 7957, "src_ip": "10.1.3.1", "dest_ip": "10.0.0.103"} | |
| 4 | + | {"timestamp": "2026-05-13T05:14:54.735657", "dvc": "Netfilter", "raw.pktlen": 60, "raw.pktcount": 1, "oob.prefix": "wgctl-drop:", "oob.time.sec": 1778649294, "oob.time.usec": 735657, "oob.mark": 0, "oob.ifindex_in": 32, "oob.ifindex_out": 2, "oob.hook": 2, "oob.family": 2, "oob.protocol": 2048, "raw.label": 0, "ip.protocol": 6, "ip.tos": 0, "ip.ttl": 63, "ip.totlen": 60, "ip.ihl": 5, "ip.csum": 54303, "ip.id": 20534, "ip.fragoff": 16384, "src_port": 47036, "dest_port": 443, "tcp.seq": 875754876, "tcp.ackseq": 0, "tcp.window": 65535, "tcp.offset": 0, "tcp.reserved": 0, "tcp.urg": 0, "tcp.ack": 0, "tcp.psh": 0, "tcp.rst": 0, "tcp.syn": 1, "tcp.fin": 0, "tcp.res1": 0, "tcp.res2": 0, "tcp.csum": 48639, "src_ip": "10.1.3.1", "dest_ip": "10.0.0.101"} | |
| 5 | + | ||
| 6 | + | root@wireguard:~# grep -c "^{}$" /etc/wireguard/.wgctl/daemon/fw_events.log | |
| 7 | + | 1 | |
| 8 | + | root@wireguard:~# grep -c "src_ip" /etc/wireguard/.wgctl/daemon/fw_events.log | |
| 9 | + | 1855 | |
Próximo
Anterior