{"id":26208173,"url":"https://github.com/douxxtech/wlan2eth","last_synced_at":"2026-05-28T08:31:05.284Z","repository":{"id":279644267,"uuid":"939493098","full_name":"douxxtech/wlan2eth","owner":"douxxtech","description":"Wlan2Eth allow your raspberry-pi to share his network thought ethernet","archived":false,"fork":false,"pushed_at":"2025-02-26T16:19:34.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T17:26:41.523Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/douxxtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-02-26T16:19:21.000Z","updated_at":"2025-04-17T15:37:04.000Z","dependencies_parsed_at":"2025-02-26T16:56:36.178Z","dependency_job_id":"e835a89b-6412-42a0-958e-14e15cd2581f","html_url":"https://github.com/douxxtech/wlan2eth","commit_stats":null,"previous_names":["douxxtech/wlan2eth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/douxxtech/wlan2eth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douxxtech%2Fwlan2eth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douxxtech%2Fwlan2eth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douxxtech%2Fwlan2eth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douxxtech%2Fwlan2eth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douxxtech","download_url":"https://codeload.github.com/douxxtech/wlan2eth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douxxtech%2Fwlan2eth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33601380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"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":[],"created_at":"2025-03-12T06:19:56.381Z","updated_at":"2026-05-28T08:31:05.266Z","avatar_url":"https://github.com/douxxtech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `wlan2eth` - Wi-Fi to Ethernet Sharing Script\r\n\r\nThe wlan2eth script configures a Raspberry Pi to share its Wi-Fi connection over Ethernet. This script automatically sets up the Raspberry Pi to assign a static IP to the Ethernet interface, configure a DHCP server for connected devices, and enable routing to allow these devices to access the internet via the Raspberry Pi’s Wi-Fi connection.\r\n\r\n## Features\r\n\r\n- Assigns a static IP to the Ethernet interface (`eth0`).\r\n- Configures a DHCP server to provide IP addresses to devices connected via Ethernet.\r\n- Enables IP forwarding to share the Wi-Fi connection.\r\n- Sets up NAT rules with `iptables` to enable connection sharing.\r\n\r\n## Prerequisites\r\n\r\n- A Raspberry Pi with a fresh installation of Raspberry Pi OS (or another Debian-based distribution).\r\n- A functional Wi-Fi connection on the Raspberry Pi.\r\n- An Ethernet cable to connect the device to the Raspberry Pi.\r\n\r\n## Injecting\r\n\r\nTo 'inject' wlan2eth in your system, run the following command in your terminal:\r\n```bash\r\ncurl -sSL https://douxx.tech/setups/wlan2eth -o wlan2eth\r\nchmod +x wlan2eth\r\nsudo ./wlan2eth\r\n```\r\n\r\n\r\n### Command-Line Options\r\n\r\n- `-h`, `--help` : Displays a help message with available options.\r\n- `-r`, `--ip-range` : Specifies the DHCP range for the Ethernet interface. The range should be in the format `\u003cip range start\u003e,\u003cip range end\u003e`.\r\n\r\n   Example to specify a different IP range:\r\n\r\n   ```bash\r\n   sudo ./wlan2eth -r 192.168.1.50,192.168.1.150\r\n   ```\r\n\r\n\u003e[!WARNING]\r\n\u003e This script will make permanent changes to your Raspberry Pi’s network configuration. It will set a static IP for the Ethernet interface, configure `dnsmasq` for DHCP, and set up routing and NAT rules to share the Wi-Fi connection.\r\n\r\nMake sure you understand the implications of these changes before proceeding. You will be prompted to confirm the changes before they are applied.\r\n\r\n## Troubleshooting\r\n\r\n- **Devices connected to the Ethernet port do not have internet access:** Ensure that the Wi-Fi is working correctly and that the `dnsmasq` and `iptables` configurations are correct. Check the `dnsmasq` logs for clues.\r\n\r\n- **The Raspberry Pi does not assign an IP address to Ethernet devices:** Verify that the `dnsmasq` configuration file has been updated correctly and that the `dnsmasq` service is running.\r\n\r\n## License\r\n\r\nThis script is distributed under the GNU General Public License (GPL) version 3. See the [LICENSE](LICENSE) file for details.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouxxtech%2Fwlan2eth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouxxtech%2Fwlan2eth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouxxtech%2Fwlan2eth/lists"}