Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[risolto] script per verificare la presenza di client
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Thu Feb 25, 2010 6:52 pm    Post subject: [risolto] script per verificare la presenza di client Reply with quote

Salve, ho messo in piedi un piccolo serverino, configurando un bridge tra l'access point wifi e lo switch, alla quale ho assegnato come IP l'indirizzo 192.168.1.1. Su tale bridge è presente anche un server dhcp con dnsmasq.

Il serverino mi gestisce anche una connessione 3G, che ovviamente non è una flat. Per questo motivo vorrei mettere in crontab uno script che nel caso non ci fosse collegato nessun client chiudesse la connessione 3G, dopo 10 minuti di innatività

La mia domanda ora è la seguente, dove vado a leggere (in /proc ???) se il mio bridge è collegato a qualche ip locale? vorrei evitare di fare uno scan di tutti gli ip disponibili.

Qualche consiglio?
_________________
LP


Last edited by lucapost on Fri Feb 26, 2010 8:59 am; edited 2 times in total
Back to top
View user's profile Send private message
devilheart
l33t
l33t


Joined: 17 Mar 2005
Posts: 848
Location: Villach, Austria

PostPosted: Thu Feb 25, 2010 7:37 pm    Post subject: Reply with quote

ip neighbor show
da sys-apps/iproute2
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Fri Feb 26, 2010 8:58 am    Post subject: Reply with quote

Molto bene grazie! Mi sembra di capire che quel file legga le informazioni in /proc/net/arp, cosa che farrò pure io.

LP
_________________
LP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum