Menu

#7 module must retry connect to server

open-postponed
nobody
5
2009-03-18
2008-12-26
No

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

Discussion

  • Badalian Slava

    Badalian Slava - 2008-12-26

    Patch to get actual destinations

     
  • Badalian Slava

    Badalian Slava - 2008-12-26

    File Added: ipt_netflow-patch

     
  • Badalian Slava

    Badalian Slava - 2008-12-26

    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

     
  • Badalian Slava

    Badalian Slava - 2008-12-26

    Fix count = 0

     
  • ABC

    ABC - 2008-12-26
    • labels: --> 1163941
    • status: open --> open-accepted
     
  • ABC

    ABC - 2008-12-26

    Thanks. I will apply them today.

    About netfilter, well, is there demand for this?..

     
  • ABC

    ABC - 2008-12-26
    • labels: 1163941 --> Feature request
     
  • ABC

    ABC - 2008-12-26

    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.

     
  • ABC

    ABC - 2009-03-18
    • status: open-accepted --> open-postponed
     
  • Anonymous

    Anonymous - 2011-05-14

    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
  • ABC

    ABC - 2011-05-16

    You can set destination (via sysctl) after routes are loaded. Isn't it?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.