Avatar Image
Gajendra Mahato

Spoofing MAC Address in a Persistent fashion

This method allows users to change their WiFi adapter’s MAC address persistently. It also enables users to bypass MAC address blacklisting by network owners, as it allows connection to WiFi networks with a spoofed MAC address. Step 1: Writing a systemd Service Create a systemd service to change your MAC address and place it in the /etc/systemd/system/ directory with the name mac-spoofer.service. cat /etc/systemd/system/mac-spoofer.service [Unit] Description=MAC Address Change/spoofing wlo1 Wants=network-pre.target Before=network-pre.target BindsTo=sys-subsystem-net-devices-wlo1.device After=sys-subsystem-net-devices-wlo1.device [Service] Type=oneshot User=root ExecStart=/usr/bin/ifconfig wlo1 down ExecStart=/usr/bin/macchanger -r -b wlo1 ExecStart=/usr/bin/ifconfig wlo1 up [Install] WantedBy=multi-user.target Step 2: Creating a Dispatcher Script Create a script in the /etc/NetworkManager/dispatcher.d/ directory and grant it executable permission. This directory contains scripts to handle various network-related events, which are automatically executed in response to specific events managed by NetworkManager. ...

January 13, 2026 · 2 min

Configure Custom DNS Servers in Arch based Linux.

First of all, check openresolv package is installed in your system or not. if not then simply install it by: sudo pacman -S extra/openresolv Step 2: Remove Immutable Permissions # Check for immutable permissions on /etc/resolv.conf lsattr /etc/resolv* # If immutable permissions exist, them remove it by sudo chattr -i /etc/resolv.conf Step 3: Set Custom DNS Servers # Edit the resolvconf.conf file sudo nano /etc/resolvconf.conf # Configuration for resolvconf(8) # See resolvconf.conf(5) for details resolv_conf=/etc/resolv.conf # If you run a local name server, you should uncomment the below line and # configure your subscribers configuration files below. #name_servers=127.0.0.1 ###### Block malware with 1.1.1.1 for Families ##### name_servers=1.0.0.2 name_servers=1.1.1.2 ###### Use 1.1.1.1 resolver ###### name_servers=1.0.0.1 name_servers=1.1.1.1 ###### AdGuard DNS ###### # name_servers=94.140.14.59 # name_servers=94.140.14.49 ######### AdGuard Non-filtering DNS ####### name_servers=94.140.14.141 name_servers=94.140.14.140 Enable dhcpcd services to work Custom DNS. if it is not installed in your system then install it by sudo pacman -S extra/dhcpcd sudo systemctl enable --now dhcpcd.service Conclusion: You’ve successfully configured custom DNS servers on Arch based Linux. Enjoy improved network security and privacy with your chosen DNS servers. ...

January 13, 2024 · 1 min