You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to parse conntrack netlink updates to the NFCTAttrTuple, JSON or dictionary?
#!/usr/bin/env python3
from pyroute2.netlink import nfnetlink
from pyroute2 import conntrack
ct = conntrack.Conntrack()
ct.bind()
ct.add_membership(nfnetlink.NFNLGRP_CONNTRACK_NEW)
while True:
data = ct.recv(4096)
if data:
print(data)
Is there any native tool to parse/extract this data from the hex? To get the Source Address, Destination Address, sport, dport, translation address/port, protocol
The text was updated successfully, but these errors were encountered:
Is there any way to parse conntrack netlink updates to the NFCTAttrTuple, JSON or dictionary?
We get:
Is there any native tool to parse/extract this data from the hex? To get the Source Address, Destination Address, sport, dport, translation address/port, protocol
The text was updated successfully, but these errors were encountered: