{"id":22850728,"url":"https://github.com/cmer/pfsense-bulk-dhcp-import","last_synced_at":"2025-10-27T23:37:23.243Z","repository":{"id":48151815,"uuid":"231255256","full_name":"cmer/pfsense-bulk-dhcp-import","owner":"cmer","description":"Import DHCP static mapping from CSV to pfSense","archived":false,"fork":false,"pushed_at":"2023-03-17T02:33:36.000Z","size":6,"stargazers_count":11,"open_issues_count":3,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T06:43:57.530Z","etag":null,"topics":["dhcp","pfsense","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-01T19:30:01.000Z","updated_at":"2024-10-22T15:25:13.000Z","dependencies_parsed_at":"2025-04-30T06:54:00.941Z","dependency_job_id":null,"html_url":"https://github.com/cmer/pfsense-bulk-dhcp-import","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cmer/pfsense-bulk-dhcp-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmer%2Fpfsense-bulk-dhcp-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmer%2Fpfsense-bulk-dhcp-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmer%2Fpfsense-bulk-dhcp-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmer%2Fpfsense-bulk-dhcp-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmer","download_url":"https://codeload.github.com/cmer/pfsense-bulk-dhcp-import/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmer%2Fpfsense-bulk-dhcp-import/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281361402,"owners_count":26487881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dhcp","pfsense","ruby"],"created_at":"2024-12-13T05:08:53.156Z","updated_at":"2025-10-27T23:37:23.225Z","avatar_url":"https://github.com/cmer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bulk DHCP entries import for pfSense\n\nThis script takes a CSV file and converts its entries to an XML file containing entries compatible with pfSense.\n\n## Installation\n\n1. Make sure Ruby 2.7.0 is installed. Not familiar with Ruby? See [RVM](https://rvm.io).\n2. Clone the repo locally.\n2. Run `gem install bundler \u0026\u0026 bundle` in the repo directory.\n\n## Data Conversion \u0026 Import\n\n1. Create a CSV file with the data you want to import.\n\n    - See `example.csv`. Note that your CSV file **requires** a header line with the proper field names.\n    - `ipaddr` and `mac` are required fields.\n    - Optional fields are: `CID HOSTNAME DESCR FILENAME ROOTPATH DEFAULTLEASETIME MAXLEASETIME GATEWAY DOMAIN DOMAINSEARCHLIST DDNSDOMAIN DDNSDOMAINPRIMARY DDNSDOMAINKEYNAME DDNSDOMAINKEY TFTP LDAP`\n\n2. Create an XML backup of your pfSense installation.\n\n    - **IMPORTANT:** only select \"DHCP Server\" as your Backup Area.\n\n3. Run the script against your CSV file.\n\n    - `./convert /path/to/dhcp.csv`\n    - or `./convert /path/to/dhcp.csv /path/to/output.xml`\n\n4. Add the generated entries to your pfSense backup file.\n\n    - With your favorite text editor, open BOTH the generated XML file and the pfSense backup XML file.\n    - Copy all the `staticmap` entries from the generated XML file and replace the old `staticmap` entries in your pfSense XML backup file.\n    - If your pfSense XML file does not contain `staticmap` entries, simply paste the generated content below `dhcpleaseinlocaltime`.\n\n5. In pfSense, import the modified backup file.\n\n    - **IMPORTANT:** only select \"DHCP Server\" as your Import Area.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmer%2Fpfsense-bulk-dhcp-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmer%2Fpfsense-bulk-dhcp-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmer%2Fpfsense-bulk-dhcp-import/lists"}