Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeancahu/wifi-to-ethernet-bridge
Create DHCP service on ethernet interface, forward and masquerade packages by NAT to the wireless network
https://github.com/jeancahu/wifi-to-ethernet-bridge
Last synced: 2 days ago
JSON representation
Create DHCP service on ethernet interface, forward and masquerade packages by NAT to the wireless network
- Host: GitHub
- URL: https://github.com/jeancahu/wifi-to-ethernet-bridge
- Owner: jeancahu
- License: gpl-3.0
- Created: 2023-05-01T03:25:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-22T22:34:18.000Z (over 1 year ago)
- Last Synced: 2024-11-21T11:38:25.424Z (2 months ago)
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wifi-to-ethernet-bridge
This Bash script sets up a DHCP server on a Linux machine to share its internet connection with devices connected to an ethernet interface. It first checks if the necessary dependencies, `dhcpd` and `fzf`, are installed, and if not, it provides instructions on how to install them via apt or pacman.
It then prompts the user to select the ethernet and wireless interfaces to use. The script sets up the selected ethernet interface by assigning it an IP address, bringing it down and back up, and checking that it is up. It then configures the machine to forward internet traffic to the selected wireless interface using sysctl and sets up the necessary iptables rules.
Finally, the script generates a temporary configuration file for dhcpd and starts the DHCP service in foreground mode.