hairpin optional; may not be needed any more

master
Jordan Sokolic 2020-09-15 21:34:16 +03:00
parent ffdd16e7f3
commit 4115aeff95
3 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,8 @@ This will delete the container and all associated Docker networks so you can sta
In order for WLAN clients to see one another, OpenWrt bridges all interfaces in the LAN zone and sets hairpin mode (aka [reflective relay](https://lwn.net/Articles/347344/)) on the WLAN interface, meaning packets arriving on that interface can be 'reflected' back out through the same interface.
`run.sh` tries to handle this, and prints a warning if it fails.
`run.sh` tries to handle this if `WIFI_HAIRPIN` is set to true, and prints a warning if it fails.
Hairpin mode may not be needed in all cases, but if you experience an issue where Wi-Fi clients are unable to see each other despite AP isolation being disabled, this may fix it.
### Network namespace

View File

@ -43,6 +43,8 @@ WIFI_IFACE=wlan0
WIFI_SSID=test123
WIFI_ENCRYPTION=psk2
WIFI_KEY=12345678
# See README.md for explanation of this mode
WIFI_HAIRPIN=false
# Only one of the following sections at a time (5 / 2.4 GHz) are supported!
## 5GHz 802.11ac (if your hw supports it)

1
run.sh
View File

@ -89,6 +89,7 @@ function _init_network() {
}
function _set_hairpin() {
test $WIFI_HAIRPIN = 'true' || return
echo -n "* set hairpin mode on interface '$1'"
for i in {1..10}; do
echo -n '.'