User Tools

Site Tools


docs:tips_n_tricks:md_90400

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
docs:tips_n_tricks:md_90400 [16.12.2010 19:39 CET] – created peterdocs:tips_n_tricks:md_90400 [16.12.2010 19:47 CET] peter
Line 1: Line 1:
 ====== MD 40900 ====== ====== MD 40900 ======
-===== Add wireless MAC to allow access list =====+===== Add wireless MAC ===== 
 + 
 +The following scriptlet allows to add a MAC address of a wireless device to the access allow list of a //Medion MD 90400 Wireless Lan Set// (A DSL router and wireless LAN switch sold in Germany) bypassing the stupid javascript checks of the input data. (In my case, the native web interface didn't allow a MAC address to start with an odd number)
  
   password=<router password>   password=<router password>
Line 9: Line 11:
   --post-data 'i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=5&m1_3_6_1_4_1_937_3_1_3_2_2_1_2_*='"${mac}"'&i1_3_6_1_4_1_937_3_1_3_2_2_1_3_*=1&i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=1' \   --post-data 'i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=5&m1_3_6_1_4_1_937_3_1_3_2_2_1_2_*='"${mac}"'&i1_3_6_1_4_1_937_3_1_3_2_2_1_3_*=1&i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=1' \
   'http://'"${router}"'/cgi-bin/setobject?/lib/popup/close_window.shtml'   'http://'"${router}"'/cgi-bin/setobject?/lib/popup/close_window.shtml'
 +
 +===== Get public IP by SNMP =====
 +This scriptlet allows you to get your public IP when using a //MD 90400 Wireless Lan Set// for DSL uplink:
 +
 +  router=<router ip or dns name>
 +  public_ip="`snmptable -c public -v 2c -CH "${router}" .1.3.6.1.2.1.4.20 \
 +                                 | awk ' $2 == 7 {print $1}'`"
docs/tips_n_tricks/md_90400.txt · Last modified: 17.12.2010 01:10 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki