Hi, does anyone know how to permanently change the MAC address on a rooted Nexus One? Thanks.
Considering the root of this file system is linux, it should be pretty similar to this: http://linuxhelp.blogspot.com/2005/09/how-to-change-mac-address-of-your.html
If at all possible. Obviously, change eth0 to whatever is appropriate. Also, you'll probably have to su to do any of the commands.
Hi, thanks for the reply. I did try that already but after the following command:
ifconfig eth0 hw ether 00:80:48:BA:d1:30
I get this error:
ifconfig: bad address 'hw'
Any ideas?
It worked for me. Before you ran that command did you switch to root user?
Also, this won't permanently change it. It'll only change it for your current boot. If you want it to be permanently done, you'll have to put the command into a init.d script.
So, I have been looking into and testing this some more and I have found something strange. It seems as though something within android keeps reverting my MAC address back to the real MAC address and I am unable to connect to the network I am trying to connect to (it has MAC address filtering). Any thoughts?
And nachod0g in response to your error, double check and make sure that when you type the command "ifconfig -a | grep HWaddr" that eth0 actually comes up. If WiFi is not enabled, this will not work.
As many of you do, I connect to lots of Cisco based VPN's and could not function without this. So, after reading and tweaking, I managed to finally get VPN Connections to work with the Note. Apparently the problem is that the app crashes when it tries to locate the PID for the vpnc process and it can't. I found a patched, repacked APK of v97 floating around which uses a different method to do this on Samsung phones. This worked along with a small init.d script I created to create the tun symlink dependencies. Obviously, you have to be rooted, have tun compiled into the kernel with /etc/init.d support for it to work.
The script is called S95Tun in /etc/init.d:
Code:
#!/system/bin/sh
mkdir /dev/net
chmod 777 /dev/net
ln -sf /dev/tun /dev/net/tun
Make sure you chmod 755 on S95Tun to make it executable. This gives appropriate permissions to the /dev/net folder and creates the symlink that VPN Connections needs to use the tun device. Also, after more testing, I found that you need a resolv.conf in /system/etc and busybox 1.18.4 installed to /system/xbin. The app looks for files in /system/xbin like ip, ps, and ifconfig (maybe more).
/system/etc/resolv.conf:
Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
This was my particular scenario, you may have to do more tweaking on yor ROM, etc. DO ALL THIS AT YOUR OWN RISK! I will answer questions he best I can. Enjoy!
wasnt there already support for VPN connections in stock kernel ?
ookba said:
As many of you do, I connect to lots of Cisco based VPN's and could not function without this. So, after reading and tweaking, I managed to finally get VPN Connections to work with the Note. Apparently the problem is that the app crashes when it tries to locate the PID for the vpnc process and it can't. I found a patched, repacked APK of v97 floating around which uses a different method to do this on Samsung phones. This worked along with a small init.d script I created to create the tun symlink dependencies. Obviously, you have to be rooted, have tun compiled into the kernel with /etc/init.d support for it to work.
The script is called S95Tun in /etc/init.d:
Code:
#!/system/bin/sh
mkdir /dev/net
chmod 777 /dev/net
ln -sf /dev/tun /dev/net/tun
Make sure you chmod 755 on S95Tun to make it executable. This gives appropriate permissions to the /dev/net folder and creates the symlink that VPN Connections needs to use the tun device.
This was my particular scenario, you may have to do more tweaking on yor ROM, etc. DO ALL THIS AT YOUR OWN RISK! I will answer questions he best I can. Enjoy!
Click to expand...
Click to collapse
could you please explain this out a bit more. im not able to connect.
thanks man,
jason
tids2k said:
wasnt there already support for VPN connections in stock kernel ?
Click to expand...
Click to collapse
Yes. The stock OS and kernel allow connections to limited non-cisco PPTP AND L2TP servers. Cisco VPN requires vpnc which allows connection to Cisco based VPN routers and concentrators.
jason370 said:
could you please explain this out a bit more. im not able to connect.
thanks man,
jason
Click to expand...
Click to collapse
Will do when I get in front of a PC. Basically you need to make sure all of your Cisco credentials are correct including group and user for it to properly connect.
ookba said:
Will do when I get in front of a PC. Basically you need to make sure all of your Cisco credentials are correct including group and user for it to properly connect.
Click to expand...
Click to collapse
are you using this alone as the vpn client or in conjunction with?
Meh, no SSL support. My crappy university switched from "standard" (ehmehm...) Cisco to Cisco SSL VPN which no damn crap mobile device seems to be able to handle.
In Switzerland all major public WiFi providers are linked together and students - by using a VPN conx - can happily surf for free virtually everywhere. But as I said: crappy Uni switched to SSL VPN, no no more love without having a notebook at hand... crap.
schaggo said:
Meh, no SSL support. My crappy university switched from "standard" (ehmehm...) Cisco to Cisco SSL VPN which no damn crap mobile device seems to be able to handle.
In Switzerland all major public WiFi providers are linked together and students - by using a VPN conx - can happily surf for free virtually everywhere. But as I said: crappy Uni switched to SSL VPN, no no more love without having a notebook at hand... crap.
Click to expand...
Click to collapse
You can try the Cisco Anyconnect client from the market for that.
jason370 said:
are you using this alone as the vpn client or in conjunction with?
Click to expand...
Click to collapse
Standalone. I connect to a handful of Cisco VPN routers and this helps tremendously.
ookba said:
You can try the Cisco Anyconnect client from the market for that.
Click to expand...
Click to collapse
There is one (now)...? Wow, will check!
Sent from my GT-N7000
Hi ookba,
I am unable to get VPN connections to work. I used your apk on my Note and it still failed to connect. I've verified the group and user passwords are correct. Do you know if there is any logs I can check on the Note for troubleshooting? My Note is rooted with N7000ZSKK1 Hong Kong ROM. thanks.
felix
felixjai said:
Hi ookba,
I am unable to get VPN connections to work. I used your apk on my Note and it still failed to connect. I've verified the group and user passwords are correct. Do you know if there is any logs I can check on the Note for troubleshooting? My Note is rooted with N7000ZSKK1 Hong Kong ROM. thanks.
felix
Click to expand...
Click to collapse
+1, exactly the same story
Sent from my GT-N7000 using xda premium
felixjai said:
Hi ookba,
I am unable to get VPN connections to work. I used your apk on my Note and it still failed to connect. I've verified the group and user passwords are correct. Do you know if there is any logs I can check on the Note for troubleshooting? My Note is rooted with N7000ZSKK1 Hong Kong ROM. thanks.
felix
Click to expand...
Click to collapse
Did you add the script:
Code:
#!/system/bin/sh
mkdir /dev/net
chmod 777 /dev/net
ln -sf /dev/tun /dev/net/tun
Or just adb shell:
C:\> adb shell
# mkdir /dev/net
# chmod 777 /dev/net
# ln -sf /dev/tun /dev/net/tun
Then try to connect.
ookba said:
Did you add the script:
Code:
#!/system/bin/sh
mkdir /dev/net
chmod 777 /dev/net
ln -sf /dev/tun /dev/net/tun
Or just adb shell:
C:\> adb shell
# mkdir /dev/net
# chmod 777 /dev/net
# ln -sf /dev/tun /dev/net/tun
Then try to connect.
Click to expand...
Click to collapse
I don't really understand how to add this script. Could you please elaborate a bit on this?
Sent from my GT-N7000 using xda premium
If your running Windows, open MS Dos promt (or command prompt), then type inn the following:
First: you are to place youself here: C:\>
Then type: adb shell (Press enter)
# mkdir /dev/net (Press enter)
# chmod 777 /dev/net (Press enter)
# ln -sf /dev/tun /dev/net/tun (Press enter)
*done
jason370 said:
I don't really understand how to add this script. Could you please elaborate a bit on this?
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
You just create a text file with no extension called : S95Tun in the /etc/init.d/ folder. But you have to change its permission to 755, which means:
Owner r w x
Group r x
Public r x
In other word, just do in Windows command instead which is easier.
mkdir /dev/net #create directory called /dev/net
chmod 777 /dev/net #set the folder /dev/net permission to full access by anyone (777)
ln -sf /dev/tun /dev/net/tun #force create a symbolic link at /dev/net/tun, which points to the actual file at "/dev/tun"
I did it in adb shell. But still having problems. So I'd like to know if there is any debugging logs I can check to see what the problem is. (I don't have access to the Cisco VPN device to see the logs there). Thanks again for your help.
felixjai said:
I did it in adb shell. But still having problems. So I'd like to know if there is any debugging logs I can check to see what the problem is. (I don't have access to the Cisco VPN device to see the logs there). Thanks again for your help.
Click to expand...
Click to collapse
It's hard to debug. I found the problem by running vpnc directly in a shell and entering my Cisco VPN credentials. The main problem I had was the app Force Closing. If you're simply not connecting, then it's a problem with your IPSec ID, IPSec Secret, or username/password. Took me while to get all those entered correctly. Like I said, everyone's scenario may be a bit different. You can also try the latest, unmodified VPN Connections apk to see if it works.
Hi,
I have the 0.97 debug apk installed and the S95Tun script is placed under /etc/init.d
(originally there was no init.d folder under /etc)
But I still get a force close when I try to connect with VPN Connections.
Which busybox version are you using ?
Ans where is busybox installed on your device ?
mrmrmrmr said:
Hi,
I have the 0.97 debug apk installed and the S95Tun script is placed under /etc/init.d
(originally there was no init.d folder under /etc)
But I still get a force close when I try to connect with VPN Connections.
Which busybox version are you using ?
Ans where is busybox installed on your device ?
Click to expand...
Click to collapse
What kernel are you running? Stock or CF-Root kernel does not support init.d so you will have to run S95Tun manually. Also, make sure you have a /system/etc/resolv.conf.
Hello Ookba,
I have never managed to get a simple pptp vpn connection to work. While vpn connects the access to internet drops. With all my searching I have only found that this is an android bug. Is there any chance you could help me?
Thanks!
Sent from my GT-N7000 using xda premium
Hi guys!
I'm trying use Reverse Tethering to surf on my phone, using ADSL of my PC.
But the app USB Tunnel report that i need a Iptables.
"Iptables v1.4.10: can't initialize iptables nat... Table doesn't exist"
bobgeneric said:
Hi guys!
I'm trying use Reverse Tethering to surf on my phone, using ADSL of my PC.
But the app USB Tunnel report that i need a Iptables.
"Iptables v1.4.10: can't initialize iptables nat... Table doesn't exist"
Click to expand...
Click to collapse
Looking at your signature ...
Upgrade to GDX v023b + Stock Kernel Modules v002
I integrated ax8netfilter in there and made it auto-load on ROM boot.
I cant seem to find anything about the sgs 1 and changing its mac adress (permanently/temporarily) ?
Can someone help pleaseeee!!!
Thanks in advance
I dont think we can change the mac address.
can't you spoof it?
I havent heard of this in android yet.
Sent from my GT-I9000 using Tapatalk 2
Mac address is a permanent address hard coded into the phone's hardware, or any wireless device's hardware for that matter.. Each wireless device in the world has its own unique mac address, just as each computer's bios has its own unique code..
You cannot change your device's mac address..
Hi
REQUIREMENTS
1) ROOTED PHONE
2) BUSYBOX INSTALLED
3) Terminal App
OPEN UP TERMINAL AND WRITE
:su
:busybox iplink show eth0
(THIS WILL SHOW YOUR CURRENT MAC ADDRESS)
NOW TYPE IN
:busybox ifconfig eth0 hw ether 00:11:22:33:44:55
(INSTEAD OF 00:11:22:33:44:55, YOU CAN WRITE YOUR WANTED ADDRESS)
Code:
http://forum.xda-developers.com/showthread.php?t=1385577
hardrockk said:
Hi
REQUIREMENTS
1) ROOTED PHONE
2) BUSYBOX INSTALLED
3) Terminal App
OPEN UP TERMINAL AND WRITE
:su
:busybox iplink show eth0
(THIS WILL SHOW YOUR CURRENT MAC ADDRESS)
NOW TYPE IN
:busybox ifconfig eth0 hw ether 00:11:22:33:44:55
(INSTEAD OF 00:11:22:33:44:55, YOU CAN WRITE YOUR WANTED ADDRESS)
Code:
http://forum.xda-developers.com/showthread.php?t=1385577
Click to expand...
Click to collapse
I started to grant SuperUser rights to my terminal app . After this, i started with the command "busybox iplink show eth0" and received the following error message:
iplink: can't find device "eth0"
Additionally tried the other command (with eth0) and there is the following error message:
ifconfig: SIOCSIFHWADD: No such device
Im using a Samsung I9000 with root access and all root-related apps already have root access all in all.
Even when Im typing ":su" or ":busybox ~", the device means:
sh: :busybox: not found
I don't get it, the terminal can work without these colons but the "eth0" could not be found, too
Any hints/tipps? Would be great, thank you
Wlan0 not eth0 no Ethernet on galaxy s
Sent from my GT-I9000 using xda premium
At first, thanks for the fast reply and I think your right..
..but at least, I already tried "Wlan0"
It seems, that the command (including wlan0) could be executed and I'm also able to display the wlan0 settings by typing: busybox iplink show
All related content is displayed including the "wlan0". The recently added mac-adress is successfully taken at this point (xx:xx:xx~ instead of the original one) and could be displayed there but even when im checking for the MAC adress in my android wlan settings, there is still the old one and my smartphone still connects with the old MAC to my gateway
I'm not sure then sorry will have to see if anyone else knows how
Sent from my GT-I9000 using xda premium
error eth0
eth0 not found in terminal what i should to do ? how to fix this error and ip link not found i know xda devloper in work fine but they have not solution for this...........
flexoduss said:
I cant seem to find anything about the sgs 1 and changing its mac adress (permanently/temporarily) ?
Can someone help pleaseeee!!!
Thanks in advance
Click to expand...
Click to collapse
1. A rooted device
2. Busybox installed </system/xbin>
3. Terminal Emulator
open terminal
type 'su' press Enter
grant super user access
then type 'busybox iplink show wlan0' press Enter
this shows ur current mac address of ur android phone
then type 'busybox ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX' press Enter
type the desired mac in XX:XX:XX:XX:XX:XX
voila Done!!!
I would like to have something on my phone that allows remote control from PC. Searching around I found that this could be done via SSH server. Does anyone know how to do it? The guides I found are not so noob-friendly... I have installed Dropbear SSH on my device, but when I start the app it says that server is not running because busybox is missing. But I do have busybox on my rom. Can anyone give advice? Thanks.