Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Using ARP to kill idle connections

Options
  • 02-08-2013 3:26pm
    #1
    Registered Users Posts: 1,477 ✭✭✭


    I am building a custom Wifi solution for a client and bashing some solutions for disconnecting idle connections (without some extra involvement!). I am building this on an embedded linux device using iptables. iptables doesn't have any parameters for dealing with idle connections so I am doing a little lateral thinking. The idea is, once a user has been authenticated, I drop them into an ipset group. I was thinking of using ARP and every x minutes running a script to check the contents of the ipset group, clearing the ARP cache on the linux server then doing an ARP lookup against all the IPs in the list. Any clients still connected will respond while the dead ones should let arp know. At this point I can just remove them from the ipset group.

    My question is; does anyone see any practical issue with clearing the ARP cache on the linux box so often? Its not a switch (there is 2 interfaces WIFI/LAN) and I can't see why the cache won't just rebuild as the clients announce again. The network(s) will be fairly small too - max 15 clients.


Advertisement