Koozali.org: home of the SME Server

Controlling users connected to the network

Offline masotsha

  • 14
  • +0/-0
Controlling users connected to the network
« on: July 20, 2015, 08:31:52 AM »
I added DHCP manager to my SME SERVER. While I can see devices connected. I cannot tell exactly which device it is and whose it is. All the names are represented as follows:  pc-00013.mydomain.com and an IP address. How do I tell who pc-00013 is considering that the ip address was DHCP assigned? I also want to be able to disconnect a client from the network at my discretion. Is that possible?

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Controlling users connected to the network
« Reply #1 on: July 20, 2015, 12:47:47 PM »
Do some searching for 'dhcpactiv.sh' (a script to list active leases & more).

Here's the bug listing with the script attached:
http://bugs.contribs.org/show_bug.cgi?id=2641

I don't know if anyone ever made a server-manager panel that incorporates this info.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Controlling users connected to the network
« Reply #2 on: July 20, 2015, 02:33:19 PM »
I wikised the bug 2641 sometime ago...see http://wiki.contribs.org/Dhcpd_lease_time

The special name pc-00013.mydomain.com comes because smeserver is not able to retrieve the client hostame.
It is cover by the bug http://bugs.contribs.org/show_bug.cgi?id=2388 but it is still in development since a really long time.

Probably i will propose that feature as a contrib first and we will see later if we can push it to the core.

Concerning the disconnection of clients (I suppose that you want to revoque  the dhcp lease) I worry that you can have the same IP several time because the old client keeps its ip and a new client can get by the server the same ip.
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Controlling users connected to the network
« Reply #3 on: July 21, 2015, 04:44:01 AM »
masotsha

This may assist you.

Where the workstations are known & accessible to you, you can add hostnames (in the server manager Hostnames panel) for each workstation & assign a fixed IP address that is based on the workstations NIC MAC address.
That way you know which PC is connected by identifying the IP.

You can also allocate fixed IP addresses for VPN connections (done elsewhere IIRC by db command).
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline johnp

  • ****
  • 312
  • +0/-0
Re: Controlling users connected to the network
« Reply #4 on: July 22, 2015, 02:12:09 AM »
Quote
Where the workstations are known & accessible to you, you can add hostnames (in the server manager Hostnames panel) for each workstation & assign a fixed IP address that is based on the workstations NIC MAC address.
That way you know which PC is connected by identifying the IP.

You can also allocate fixed IP addresses for VPN connections (done elsewhere IIRC by db command).

Great answer

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: Controlling users connected to the network
« Reply #5 on: July 25, 2015, 10:26:43 AM »
The special name pc-00013.mydomain.com comes because smeserver is not able to retrieve the client hostame.
It is cover by the bug http://bugs.contribs.org/show_bug.cgi?id=2388 but it is still in development since a really long time.

Probably i will propose that feature as a contrib first and we will see later if we can push it to the core.

please can you test -> http://forums.contribs.org/index.php/topic,50859.msg264323.html#msg264323
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!