wlan2eth/README.md

45 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2023-06-12 17:14:38 -06:00
# wlan2eth
2023-06-13 17:01:10 -06:00
2023-06-20 13:56:59 -06:00
_Transparently bridge your WiFi connection to your Ethernet interface._
2023-06-13 17:01:10 -06:00
2023-06-20 13:56:59 -06:00
There are three bridge versions:
2023-06-12 17:14:38 -06:00
2023-06-20 13:56:59 -06:00
- NAT in `bridge/nat/`
- The bridge creates a private LAN and clones the client's MAC address to its wired interface to get an IP from the DHCP server. All ports are forwarded to the client so traffic can flow in both directions. Supports only one bridged client.
- ARP proxy in `bridge/proxyarp/`
- Rewrites the MAC addresses of traffic passing through the bridge. Supports more than one bridged client.
2023-06-13 16:13:32 -06:00
2023-06-20 13:56:59 -06:00
- An experimental bridge written in Go in `go/`
- Similar to the ARP proxy. Mostly an experiment to learn how these things work. It has its own README file.
2023-06-13 17:01:10 -06:00
2023-06-13 16:13:32 -06:00
2023-06-20 13:56:59 -06:00
## Install
2023-06-13 16:13:32 -06:00
2023-06-20 13:56:59 -06:00
This service was developed for Ubuntu but will likely work with other Linux versions as well.
2023-06-13 16:13:32 -06:00
2023-06-20 13:56:59 -06:00
First, copy the config file:
2023-06-13 17:01:10 -06:00
2023-06-20 13:56:59 -06:00
- For the NAT bridge, copy `config/nat-config.sh.example` to `config/nat-config.sh`
- For the ARP proxy, copy `config/arp-config.sh.example` to `config/arp-config.sh`
2023-06-13 17:01:10 -06:00
2023-06-20 13:56:59 -06:00
Edit the config and enter your information. The file is well-commented and has instructions on what to set the values to.
2023-06-13 17:01:10 -06:00
2023-06-20 13:56:59 -06:00
Then, run the installer:
- For the NAT bridge, run `sudo ./bridge/nat/nat-install.sh`
- For the ARP proxy, run `sudo ./bridge/proxyarp/arp-install.sh`
Everything will be set up the way it needs to be. This should be installed on a fresh machine. The install script is safe to run as many times as you need to.
Once the install script has finished, reboot and you're good to go! The bridge service will automatically start at boot.
## Use
Refer to the `README.md` file in the individual bridge folders.