Score:0

How to prevent WiFi monitor mode reset after reboot?

cn flag

I have successfully set my WiFi adapter to monitor mode using these three commands:

sudo ip link set wlan0 down
sudo iw wlan0 set monitor control
sudo ip link set wlan0 up

But it seems to be reset back into "non-monitor" (managed?) mode after a reboot. How can I prevent this from happening?

This is my /etc/netplan/50-cloud-init.yaml:

network:
    ethernets:
        enp2s0:
            addresses:
            - 10.0.0.10/24
            gateway4: 10.0.0.1
            nameservers:
                addresses:
                - [[REMOVED]
        [[REMOVED]]:
            match:
                macaddress: [[REMOVED]]
            set-name: wlan0
    version: 2
Pilot6 avatar
cn flag
Are you using Ubuntu? Which version?
birgersp avatar
cn flag
Ubuntu, 20.10 .
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.