3 ms·
My workaround for using captive portals with DoH is to authenticate on my phone first, then disable WiFI on the phone, then basically run this script to switch
by anaphor 7y ago
My workaround for using captive portals with DoH is to authenticate on my phone first, then disable WiFI on the phone, then basically run this script to switch my laptop to my phone's MAC addr.
```
sudo systemctl stop NetworkManager wpa_supplicant avahi-daemon
sudo ifconfig <your_interface_name> down
sudo macchanger <your_interface_name> --mac="$1"
sudo systemctl start NetworkManager wpa_supplicant avahi-daemon
sudo ifconfig <your_interface_name> up
```
It's stupid and hacky, but it works perfectly 99% of the time.