I need a script that would track the records in the ARP table on the client access point, and if there is no records relating to the LAN port of SXT disabling wireless interface (on client sxt) and enable it back when a record appear.
ARP is dynamic, without any filters.
I want to track records that contains IP`s 192.168.1.*
Omnitik configured as router (wan - ether1 (dhcp), lan - wlan1 (192.168.0.1/24))
SXT`s configured as routers to (wan - wlan1(192.168.0.2/24, lan - ether1(192.168.1.1/24))
if the client turns on the computer once a day for two hours then the wlan1 on his SXT should work the same time.
If the omnitik is handing out dhcp, there is no way for the client pc to have an IP address prior to SXT WLAN being enabled, therefore nothing in the arp table. Would be easy enough to do if client pc had static address or a second deco server was set up on the SXT
I need to analyze ARP table on client SXT, that configured as router and provide dhcp for users behind LAN port.
If are no clients behind lan (arp table dont consist of IP`s 192.168.1.*) SXT must to disable wlan1 interface.
The script will run on SXT.