Added Configure a MadWifi device for adhoc mode
[grml-tips.git] / grml_tips
index c38d67b..4546d3c 100644 (file)
--- a/grml_tips
+++ b/grml_tips
@@ -2966,7 +2966,7 @@ nameserver 172.16.42.1
 Available connection(s) : 
         ssh
 # dns2tcpc -r ssh -l 2222 -z dnstun.example.com 172.16.42.1 &
-Listenning on port : 2222
+Listening on port : 2222
 # ssh localhost -p 2222
 user@host.example.com:~#
 
@@ -2978,4 +2978,26 @@ Available connection(s) :
 Listenning on port : 2222
 # ssh localhost -p 2222
 user@host.example.com:~#
+
+Notice: using 'ssh -D 8080 ..' you will get a socks5-proxy listening on
+localhost:8080 which you can use to tunnel everything through your "dns-uplink".
+-- 
+Configure a MadWifi device for adhoc mode:
+
+Disable the autocreation of athX devices:
+# echo "options ath_pci autocreate=none" > /etc/modprobe.d/madwifi
+
+Remove the autocreated device for now:
+# wlanconfig ath0 destroy
+
+Configuration in /etc/network/interfaces:
+
+iface ath0 inet static
+  madwifi-base wifi0
+  madwifi-mode adhoc
+  ...
+
+Hints:
+  - Do not use interface names without ending 0 (otherwise startup fails).
+  - Only chooss unique names for interfaces.
 --