batch update of conntrack?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I`m trying hard to find if it is possible to update multiple (tens, hundreds and maybe thousands too) conntrack table flows with just one run of the "conntrack -U ...". I need to massively change "--mark" parameter on some of the flows depending on some external "values" I`m creating in my userspace scripts.

In other words, I`m looking for a way howto read a file with those multiple flows prepared. I mean flows like this example:
conntrack -U -p $protokol --orig-src $src1 --orig-dst $dst1 --sport $sport1 --dport $dport1 --reply-src $src2 --reply-dst $dst2 --reply-port-src $sport2 --reply-port-dst $dport2 --mark 0

So, is there somethink like:
conntrack -U < ./batch_file_with_changed_mark
?

Like iptables has:
iptables-restore < ./iptables-save-restore-rules
or tc has:
tc -b ./tc_final_batch_file

Thank you
be brave...
Pep.




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux