MAC Address spoofing (could not connect to WAN)
Posted: 23 Sep 2008, 09:27
Recently I went into trouble when I tried to connect to WAN my new Bubba2. I got strange behaviour - I can ping from Bubba gateway, but no DNS servers.
Then by surfing forums I remember, that my ISP asked my PC MAC address and my previous Linksys router has ability to clone PC MAC address and use it on WAN interface.
So here is the tips to spoof MAC address:
It is done by commands:
where
xx:xx:xx:xx:xx:xx - is your MAC Address that you need to show on WAN.
Note: that it could interfere with EasyFind service, so if you would like to use them, than probably is better to go to your ISP and ask for configuration of your Bubba's MAC address.
To use do these commands after reboot add them into file:
/etc/rc.local
Carl from Excito support give me following example of rc.local:
But it does not worked for me so I modified them to:
that worked for me
I am just beginer in linux so I am not shure what this line does:
if [ -x `which ifconfig` ]; then
Whell, but any way it worked for me and I feel that my code could not be wrong.
Then by surfing forums I remember, that my ISP asked my PC MAC address and my previous Linksys router has ability to clone PC MAC address and use it on WAN interface.
So here is the tips to spoof MAC address:
It is done by commands:
Code: Select all
ifconfig eth0 down hw ether xx:xx:xx:xx:xx:xx
ifconfig eth0 up
xx:xx:xx:xx:xx:xx - is your MAC Address that you need to show on WAN.
Note: that it could interfere with EasyFind service, so if you would like to use them, than probably is better to go to your ISP and ask for configuration of your Bubba's MAC address.
To use do these commands after reboot add them into file:
/etc/rc.local
Carl from Excito support give me following example of rc.local:
Code: Select all
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
if [ -x `which ifconfig` ]; then
ifconfig eth0 down hw ether xx:xx:xx:xx:xx:xx
ifconfig eth0 up
fi
exit 0
Code: Select all
ifconfig eth0 down hw ether xx:xx:xx:xx:xx:xx && ifconfig eth0 up
if [ "$?" = "0" ]; then
echo "MacAddress spoofed!"
exit 0
else
echo "Error in macadress spoofing!"
exit 1
fi
I am just beginer in linux so I am not shure what this line does:
if [ -x `which ifconfig` ]; then
Whell, but any way it worked for me and I feel that my code could not be wrong.