module must retry connect to server
NetFlow iptables module for Linux kernel
Brought to you by:
aabc
Hello. Feature request.
In situation when module can't connect to destination (no route to distination) module must try reconnect later.
Example:
2 network cards. No routes. Server get routes by BGP4(quagga) at 1-3 minutes after load.
Thanks.
P.S. Why you do not send it to netfilter team? Or add to patch-o-matic repository?
Slavon
Patch to get actual destinations
File Added: ipt_netflow-patch
After patch we get actual connected destinations in
cat /sys/module/ipt_NETFLOW/parameters/destination
and
sysctl -a | grep net.netflow.destination
if no have route and count of destinations is 0 - add default destination
this if i try add destination 131.131.131.131:111 and not have route to it
[12122.047005] netflow: remove destination 127.0.0.1:2055 (e2dedb00)
[12122.047056] netflow: error connecting UDP socket -101
[12122.047060] netflow: remove destination 131.131.131.131:111 (00000000)
[12122.047081] netflow: added destination 127.0.0.1:2055
if module can't create socket for connect its delete it from destinations.
It's help for me.
File Added: ipt_netflow-patch
Fix count = 0
Thanks. I will apply them today.
About netfilter, well, is there demand for this?..
After some thinking, I see that your patch contradicting with your feature request. You are requestiong that no connect destinations should reconnect later, but your patch removing no connect destinations from 'destinations'. Thus, requested feature should keep all destinations, but patch strips wrong destinations. Now I don't understand what actually you are intending/requesting.
View and moderate all "bugs-requests-patches Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs/Requests/Patches"
Any news?
With latest dev version from git now I observe following:
ipt_netflow is loaded at bootup through /etc/modules.autoload.d/kernel-2.6 (Gentoo).
At this time no network interfaces exists so ipt_netflow simply removes collectors from its configuration:
ay 13 13:05:47 linbras kernel: ipt_netflow version 1.7.1 (8192 buckets) May 13 13:05:47 linbras kernel: netflow: registered: /proc/net/stat/ipt_netflow May 13 13:05:47 linbras kernel: netflow: registered: sysctl net.netflow May 13 13:05:47 linbras kernel: netflow: error connecting UDP socket -101 May 13 13:05:47 linbras kernel: netflow: remove destination 172.16.2.7:2069 ((null)) May 13 13:05:47 linbras kernel: netflow: error connecting UDP socket -101 May 13 13:05:47 linbras kernel: netflow: remove destination 172.16.2.50:2069 ((null)) May 13 13:05:47 linbras kernel: ipt_netflow loaded.
Last edit: Anonymous 2014-03-15
You can set destination (via sysctl) after routes are loaded. Isn't it?