[Kea-users] kea docker
Hi All, I am new to Kea and Docker. Looking to replace existing DHCP service + IPAM from Efficient IP to docker based DHCP server running Kea + phpIPAM. See many guides on how to do this – This seemed to be good - https://github.com/xjasonlyu/docker-kea-dhcp4/tree/master. Env I have is secured and is not connect to the internet directly, and I have downloaded deb files manually and install it. I assume that should do the trick and since I have new to docker also I need a test env to test this. My desktop which is Ubuntu is running the docker and I assume the only way to test this is to create few docker containers and request IP from kea DHCP. I know this is going out of scope, but can container setup to use DHCP and will kea DHCP server broadcast outside the docker network? Kind Regards, Michael -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
[Kea-users] DHCP server on Docker Swarm
Hello Looking to get Kea DHCP running to Docker Swarm. Is this possible, and anything else I need to bear in mind? Kind Regards, Michael -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
[Kea-users] Hosts Storage DB and multiple subnets/scopes
Hi All, We have pre-allocated all my desktops, 400+ in current DDI (replacing with Kea/phpIPAM). Hoping to do the same with kea. I see in section Hosts Storage, // The example below is not optimal from a performance perspective, but it // nicely showcases the host reservation capabilities. Please use the minimum // set of identifier types used in your network. * "host-reservation-identifiers":[ "circuit-id", "hw-address", "duid", "client-id" ],* // Specify connection to the database holding host reservations. The type // specifies that the MySQL database is used. user and password are the // credentials used to connect to the database. host and name specify // location of the host where the database instance is running, and the // name of the database to use. The server processing a packet will first // check if there are any reservations specified for this client in the // reservations list, within the subnet (configuration file). If there are // no reservations there, the server will try to retrieve reservations // from this database. "hosts-database": { "type": "mysql", "reconnect-wait-time": 3000, // expressed in ms "max-reconnect-tries": 3, "name": "keatest", "user": "keatest", "password": "keatest", "host": "localhost", "port": 3306, "trust-anchor": "my-ca", "cert-file": "my-cert", "key-file": "my-key", "cipher-list": "AES" }, "id": 1 <== is the subnet id? how does it work with multiple subnets/scopes, is there a column to identify a different subnet? in *host-reservation-identifiers * typically config but in my case reservations all in DB. { "subnet4": [ { "id": 1, "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ], "subnet": "192.0.2.0/24", "interface": "eth0", "reservations": [ { "hw-address": "1a:1b:1c:1d:1e:1f", "ip-address": "192.0.2.202" }, { "duid": "0a:0b:0c:0d:0e:0f", "ip-address": "192.0.2.100", "hostname": "alice-laptop" }, { "circuit-id": "'charter950'", "ip-address": "192.0.2.203" }, { "client-id": "01:11:22:33:44:55:66", "ip-address": "192.0.2.204" } ] } ], Regards, Michael -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
Re: [Kea-users] Hosts Storage DB and multiple subnets/scopes
I see this documentation https://github.com/josh73/migrate-host-reservations-to-kea-mysql/tree/master but i can't confirm or verify this - link does not exixts https://downloads.isc.org/isc/kea/cur/2.5/doc/html/search.html?q=ipv4-subnet-id&check_keywords=yes&area=default dhcpd_subnet_id A unique number associated with a particular subnet. See https://downloads.isc.org/isc/kea/cur/doc/kea-guide.html#ipv4-subnet-id On Wed, 4 Oct 2023 at 15:06, mtint hpc wrote: > Hi All, > > We have pre-allocated all my desktops, 400+ in current DDI (replacing > with Kea/phpIPAM). > Hoping to do the same with kea. I see in section Hosts Storage, > > // The example below is not optimal from a performance perspective, but it > // nicely showcases the host reservation capabilities. Please use the > minimum > // set of identifier types used in your network. > > > > * "host-reservation-identifiers":[ "circuit-id", "hw-address", > "duid", "client-id" ],* > > // Specify connection to the database holding host reservations. The type > // specifies that the MySQL database is used. user and password are the > // credentials used to connect to the database. host and name specify > // location of the host where the database instance is running, and the > // name of the database to use. The server processing a packet will first > // check if there are any reservations specified for this client in the > // reservations list, within the subnet (configuration file). If there are > // no reservations there, the server will try to retrieve reservations > // from this database. > "hosts-database": { > "type": "mysql", > "reconnect-wait-time": 3000, // expressed in ms > "max-reconnect-tries": 3, > "name": "keatest", > "user": "keatest", > "password": "keatest", > "host": "localhost", > "port": 3306, > "trust-anchor": "my-ca", > "cert-file": "my-cert", > "key-file": "my-key", > "cipher-list": "AES" > }, > > "id": 1 <== is the subnet id? > > how does it work with multiple subnets/scopes, is there a column to > identify a different subnet? > in *host-reservation-identifiers * > > typically config but in my case reservations all in DB. > { > "subnet4": [ > { > "id": 1, > "pools": [ { "pool": "192.0.2.1 - 192.0.2.200" } ], > "subnet": "192.0.2.0/24", > "interface": "eth0", > "reservations": [ > { > "hw-address": "1a:1b:1c:1d:1e:1f", > "ip-address": "192.0.2.202" > }, > { > "duid": "0a:0b:0c:0d:0e:0f", > "ip-address": "192.0.2.100", > "hostname": "alice-laptop" > }, > { > "circuit-id": "'charter950'", > "ip-address": "192.0.2.203" > }, > { > "client-id": "01:11:22:33:44:55:66", > "ip-address": "192.0.2.204" > } > ] > } > ], > > Regards, > > Michael > > > -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
[Kea-users] KEA DHCP with DB back end
Hello everyone, We are in the process of transitioning from our previous DDI solution to phpIPAM, KEA DHCP with a database backend, and PowerDNS. Currently, KEA is operational without a database backend for DHCP reservations. In our setup, there won't be any DHCP pools, and IP addresses will be allocated via the DHCP reservation. We have a total of 10 subnets. Can anyone provide guidance on how to proceed with this migration and which tables in the Kea schema should be edited? Thank you, Michael -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
Re: [Kea-users] KEA DHCP with DB back end
Hey Nicolò, I wanted to discuss something about my organization. We don't allocate any funds for software on our platforms, which are primarily used for research purposes. I was considering directly writing to the database tables, but you've advised against it due to the potential risks. If we manually insert IP addresses and subnets into the database, will KEA automatically detect them? I came across this resource [ https://gitlab.isc.org/isc-projects/kea/-/wikis/docs/editing-host-reservations], and I've been working on this project for a few months now, so I need a solution. Kind Regards, Michael On Mon, 15 Jan 2024 at 11:29, Nicolò Borghi wrote: > Hello, > > unfortunately, the DB backend is not supposed to be edited manually. > Instead, you'd need to load either the MySQL or PostgreSQL Configuration > Backend hook library. This exposes a convenient API to interact with the DB. > From this section of the manual: > https://kea.readthedocs.io/en/kea-2.4.0/arm/hooks.html#available-hook-libraries > you'll > find that both hook libs are open source. However, they have an inevitable > dependency on this other hook: > https://kea.readthedocs.io/en/kea-2.4.0/arm/hooks.html#std-ischooklib-libdhcp_cb_cmds.so > which > is only available after paying a recurring subscription. > > The structure of the DB is rather intuitive, but manually inserting rows > into it has been made rather difficult on purpose and I don't suggest > trying to bypass all the obstacles, otherwise the integrity of the DB may > not be fully guaranteed. > > Best, > Nicolò. > > > > > January 15, 2024 at 12:10 PM, "mtint hpc" > > wrote: > > Hello everyone, > > We are in the process of transitioning from our previous DDI solution to > phpIPAM, KEA DHCP with a database backend, and PowerDNS. Currently, KEA is > operational without a database backend for DHCP reservations. In our setup, > there won't be any DHCP pools, and IP addresses will be allocated via the > DHCP reservation. We have a total of 10 subnets. Can anyone provide > guidance on how to proceed with this migration and which tables in the Kea > schema should be edited? > > Thank you, > > Michael > > > -- > ISC funds the development of this software with paid support > subscriptions. Contact us at https://www.isc.org/contact/ for more > information. > > To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. > > Kea-users mailing list > Kea-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/kea-users > -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
[Kea-users] dhcp4 config file and ip reservation
Hi All, I am interested in utilizing mariadb as the backend for host reservations, without the need for a dhcp pool. The subnet and other relevant information will still be stored in the dhcp4 configuration file. I believe that using a database will not hinder kea from utilizing the defined subnet and other configurations specified in the config file, and it will only retrieve the dhcp reservations from the database. Can someone if this would work? Kind regards, Michael -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users
Re: [Kea-users] dhcp4 config file and ip reservation
fantastic and thanks for confirming. we have very static network and only new DT are added to our network when replaced or for a new user. this along with dhcp - using this https://gitlab.isc.org/isc-projects/kea/-/wikis/docs/editing-host-reservations - it should work. regards, michael On Tue, 16 Jan 2024 at 16:05, Dan Oachs wrote: > If I understand what you are doing correctly, yes, it will work. I am > running a kea server the same way. All the configuration is in the config > files and the host reservations are in the MySQL database. > > --Dan > > > On Tue, Jan 16, 2024 at 9:18 AM mtint hpc wrote: > >> Hi All, >> >> I am interested in utilizing mariadb as the backend for host >> reservations, without the need for a dhcp pool. The subnet and other >> relevant information will still be stored in the dhcp4 configuration file. >> I believe that using a database will not hinder kea from utilizing the >> defined subnet and other configurations specified in the config file, and >> it will only retrieve the dhcp reservations from the database. Can someone >> if this would work? >> >> Kind regards, >> >> Michael >> >> -- >> ISC funds the development of this software with paid support >> subscriptions. Contact us at https://www.isc.org/contact/ for more >> information. >> >> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. >> >> Kea-users mailing list >> Kea-users@lists.isc.org >> https://lists.isc.org/mailman/listinfo/kea-users >> > -- > ISC funds the development of this software with paid support > subscriptions. Contact us at https://www.isc.org/contact/ for more > information. > > To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. > > Kea-users mailing list > Kea-users@lists.isc.org > https://lists.isc.org/mailman/listinfo/kea-users > -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users