Changement adresse MAC, Plus validation de lien script ?

Post new topic   Reply to topic    DD-WRT Forum Index -> Questions générales
Author Message
xana01
DD-WRT Novice


Joined: 12 Feb 2011
Posts: 12

PostPosted: Sat Jul 23, 2011 22:05    Post subject: Changement adresse MAC, Plus validation de lien script ? Reply with quote
Bonjour,

Je dispose d'un modem wrt54G v2, et je cherche un script qui pourrais me changer mon adresse mac ( Wlan ) tout les 20 minutes.

J'utilise le wrt54G pour faire un pont wifi avec un hotspot sfr ( j'ai les droit d'accès car je suis chez sfr FAI )

mais au bout de 20 minutes le hotspot me bloque mon MAC et je n'arrive pas a savoir pourquoi, et quant je le change la connnexion reviens

donc je cherche un script qui pourrait me changer mon adresse mac et aussi cliquer sur un lien dans la page pour réactiver la connexion automatiquement,

J'ai deja trouver quelque truc pour adresse mac, mais sa ne fonctionne pas tres bien

Merci
Sponsor
xana01
DD-WRT Novice


Joined: 12 Feb 2011
Posts: 12

PostPosted: Fri Jul 29, 2011 13:42    Post subject: Reply with quote
Voila j'ai trouver se script

#!/bin/ash
MAC=`(date; cat /proc/interrupts) | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'`
echo "00:${MAC}"
stopservice wan
ifconfig eth1 down
ifconfig wl0 down
ifconfig wl0.1 down
ifconfig eth1 hw ether 00:${MAC}
nvram set def_hwaddr="00:${MAC}"
nvram set wan_hwaddr="00:${MAC}"
nvram set wl0_hwaddr="00:${MAC}"
nvram set wl0.1_hwaddr="00:${MAC}"
startservice wan
ifconfig eth1 up
ifconfig wl0 up
ifconfig wl0.1 up

,

mais je comme un bug de carte wifi virtuel

ma config c'est que je suis connecter en répéteur en wifi pour refaire un signal avec mon SSID et mon cryptage, mais le bug c'est que l'adresse mac de la wifi principal change bien mais pas celle de la wifi virtuel et si elle ne correspond pas la wifi virtuel ne marche pas .

J'arrive pas a trouver la manip pour changer l'adresse mac de wl0.1
yzy-oui-fi
DD-WRT Guru


Joined: 03 Mar 2009
Posts: 2826
Location: France

PostPosted: Wed Aug 10, 2011 10:17    Post subject: Reply with quote
Ton adresse mac Wan et ton adresse Mac wlan doivent etre distinctes.

tes adresses Mac Wifi doivent etre distinctes (Wl0<>Wl0.1)

_________________
DD-WRT WDS MESH + DASHBOARD (fr), DD-WRT network setting tool (tools.yzy-oui-fi.com), Wifi Business and IT guy After hours, My Blog, Free DD-WRT VPN Community(www.wrt-pptp-ww.com), DD-WRT pré-réglés pour réseau outdoor(hotspot.yzy-oui-fi.com), Nouveau Forum DD-WRT francophone
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Questions générales All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum