Hi
I am using a T440P laptop with FREEBSD 12.2p4 and DWM. So, I want to be able to easily toggle on and off all network to my laptop.
What are the command to temporarily disable internet? And commands to renable it?
Currently, I just comment out the ifconfig_wlan0 and ifconfig_em0 in /etc/rc.conf. But that requires a reboot.
What is the proper way to disable or enable internet network?
Thanks!
I am using a T440P laptop with FREEBSD 12.2p4 and DWM. So, I want to be able to easily toggle on and off all network to my laptop.
What are the command to temporarily disable internet? And commands to renable it?
Currently, I just comment out the ifconfig_wlan0 and ifconfig_em0 in /etc/rc.conf. But that requires a reboot.
Code:
ifconfig_em0="DHCP"
wlans_iwm0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"
What is the proper way to disable or enable internet network?
Thanks!