Here is my python script for calling IPtables and I need SQLite output to make a rule (df2)
subprocess.run(["/usr/sbin/iptables", "-A", "INPUT", "-p", "udp", "-m", "udp", "--dport 5060", "-m" "string", "--string" , "/home/as/Documents/mydf.csv", "-algo", "bm", "--to 655535", "-j" ,"REJECT"]) Error I am getting
iptables v 1.8.4v(legacy): unknown option --string
"-algo bm"needs to be two strings:"-algo", "bm". Same with"--to 65535". The path to iptables is wrong, so this can't be your exact code."--dport 5060"subprocess.call(["/usr/sbin/iptables"(iptable file location),..(all the middle strings separated by " ")....,"/home/Documents/.csv(file location)"])