Koozali.org: home of the SME Server

Obsolete Releases => SME 8.x Contribs => Topic started by: masotsha on July 20, 2015, 08:31:52 AM

Title: Controlling users connected to the network
Post by: masotsha 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?
Title: Re: Controlling users connected to the network
Post by: mmccarn 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.
Title: Re: Controlling users connected to the network
Post by: stephdl 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.
Title: Re: Controlling users connected to the network
Post by: janet 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).
Title: Re: Controlling users connected to the network
Post by: johnp 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
Title: Re: Controlling users connected to the network
Post by: stephdl 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