You are not logged in.
I've tried everything at https://wiki.archlinux.org/index.php/MA … s_spoofing. I've created and edited:
Inside /etc/systemd/network/00-default.link
[Match]
MACAddress=11:22:33:44:55:66
[Link]
MACAddress=22:33:44:55:66:77
NamePolicy=kernel database onboard slot path
Inside /etc/udev/rules.d/75-mac-spoof.rules
ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="11:22:33:44:55:66", RUN+="/usr/bin/ip link set dev $name address 22:33:44:55:66:77"
Inside /etc/systemd/system/macspoof@.service
[Unit]
Description=MAC Address Change enp2s0
Wants=network-pre.target
Before=network-pre.target
BindsTo=sys-subsystem-net-devices-enp2s0.device
After=sys-subsystem-net-devices-enp2s0.device
[Service]
Type=oneshot
ExecStart=/usr/bin/ip link set dev enp2s0 address 11:22:33:44:55:66
ExecStart=/usr/bin/ip link set dev enp2s0 up
[Install]
WantedBy=multi-user.target
Inside /etc/systemd/system/macspoof@.service
[Unit]
Description=macchanger on enp2s0
Wants=network-pre.target
Before=network-pre.target
BindsTo=sys-subsystem-net-devices-enp2s0.device
After=sys-subsystem-net-devices-enp2s0.device
[Service]
ExecStart=/usr/bin/macchanger -e enp2s0
Type=oneshot
[Install]
WantedBy=multi-user.target
I did these in ascending order and when I was done with one of these methods I deleted everything I had done as to not interfere with the next method. All .service methods was enabled with systemctl enable and I restarted the computer after each change.11:22:33:44:55:66 was of course replaced with my mac address that I acquired from executing the command
ip a | grep link/ether
The mac address I replaced 22:33:44:55:66:77 was a mac address I got from executing macchanger accordingly:
macchanger -ra enp2s0
Of course macchanger was executed whilst my network was down. Macchanger was installed from the repo. I get the same error from all of these methods: no local ip and my network completely fails and can't be restarted with:
netctl stop-all
netctl start wireless
Everytime I start the computer and have any of these methods in use I get a start job error: 'A start job is running for sys-subsystem-net-device-enp2s0.device (10s / 1min 30s)'
Edit: I have iproute2 installed, my shell is bash 4.4.23 and my Kernel is 4.17.4-1-ARCH
Last edited by leethaxor (2018-07-14 11:27:54)
Offline
All of these are mutually exclusive, decide for one approach and remove/disable all others. Come back with the specific journal failure entry of the specific approach chosen.
Last edited by V1del (2018-07-09 13:48:45)
Online
00-default.link and 75-mac-spoof.rules gives no output to journal -xe but only the start job error and both services gives me:
● macspoof@multi-user.service - MAC Address Change enp2s0
Loaded: loaded (/etc/systemd/system/macspoof@enp2s0.service; disabled; vendor
preset: disabled)
Active: failed (Result: exit-code) since Mon 2018-07-09 15:54:36 CEST;
2min 8s ago
Main PID: 419 (code=exited, status=2)
Jul 09 15:54:35 arch systemd[1]: Starting MAC Address Change enp2s0...
Jul 09 15:54:35 arch ip[419]: RTNETLINK answers: Too many open files in
system
Jul 09 15:54:36 arch systemd[1]: macspoof@multi-user.service: Main process
exited, code=exited, status=2/INVALIDARGUMENT
Jul 09 15:54:36 arch systemd[1]: macspoof@multi-user.service: Failed with
result 'exit-code'.
Jul 09 15:54:36 arch systemd[1]: Failed to start MAC Address Change enp2s0.
Edit: If I HAVE to pick one then the method I choose is the systemd service without macchanger since that is the one above
Last edited by leethaxor (2018-07-09 14:42:03)
Offline
I get an error in journalctl -xe when I try to execute the first systemd service in my post that doesn't contain macchanger manually:
Jul 10 13:03:11 arch network[15075]: WPA association/authentication failed for interface 'wlp3s0'
Jul 10 13:03:11 arch network[15075]: Failed to bring the network up for profile 'network'
Jul 10 13:03:11 arch systemd[1]: netctl@home\x2dnetwork.service: Main process exited, code=exited, status=1/FAILURE
Jul 10 13:03:11 arch systemd[1]: netctl@home\x2dnetwork.service: Failed with result 'exit-code'.
Jul 10 13:03:11 arch systemd[1]: Failed to start A simple WPA encrypted wireless connection.
-- Subject: Unit netctl@home\x2dnetwork.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit netctl@home\x2dnetwork.service has failed.
--
-- The result is RESULT.
Jul 10 13:03:11 arch sudo[15070]: pam_unix(sudo:session): session closed for user root
Offline
As you can see I am using netctl to control my network. I've got a broadcom wireless network card and I am using the latest broadcom-wl package to connect to my wireless network.
Offline
https://ubuntuforums.org/showthread.php?t=2343567 this user had the same issue with Broadcom wireless network card and couldn't fix it since Broadcom cards aren't truly compatible with Linux... Also found this https://forums.gentoo.org/viewtopic-t-9 … art-0.html that seems to be some kind of fix for the broadcom drivers but is a fix that requires a lot of knowledge about stuff... like kernel and kernel parameters or something along those lines, so I won't try it. The answer to why I can't spoof my mac address is because of Broadcom drivers and it can be spoofed but is difficult... Post solved.
Offline