5G network traffic code
- The script sets up initial
iptablesrules to drop traffic from a specific IP range and allow traffic to a specific IP - It reads IP addresses from an
output.jsonfile and updatesiptablesrules accordingly - The script uses
tsharkto monitor network traffic and update theoutput.jsonfile iptablesrules are dynamically added or removed based on the IP addresses found inoutput.json