Benutzer:Overflo/Pastebin: Unterschied zwischen den Versionen
K (hat Benutzer:Overflo/Todo nach Benutzer:Overflo/Pastebin verschoben: weils eigentlich mehr eine zwischenablage ist ..) |
K (repeater script change) |
||
Zeile 30: | Zeile 30: | ||
#!/bin/sh | #!/bin/sh | ||
TARGET="deinnetz" | |||
killall -9 udhcpc | |||
killall dnsmasq | |||
# flush netfilter tables | # flush netfilter tables | ||
iptables -F | iptables -F | ||
Zeile 45: | Zeile 45: | ||
wlanconfig ath0 destroy | wlanconfig ath0 destroy | ||
wlanconfig ath1 destroy | wlanconfig ath1 destroy | ||
Zeile 52: | Zeile 52: | ||
# VAP ath0 as Access Point | # VAP ath0 as Access Point | ||
wlanconfig ath0 create wlandev wifi0 wlanmode ap | wlanconfig ath0 create wlandev wifi0 wlanmode ap | ||
# nosbeacon .. arghl.. | |||
wlanconfig ath1 create wlandev wifi0 wlanmode sta nosbeacon | wlanconfig ath1 create wlandev wifi0 wlanmode sta nosbeacon | ||
Zeile 60: | Zeile 62: | ||
#externes DHCP? | #externes DHCP? | ||
udhcpc -i ath1 | udhcpc -t 3 -b -i ath1 | ||
Version vom 3. März 2008, 12:12 Uhr
Keylogger
http://www.keelog.com/de/diy.html
Fonera
SOFTWARE
software zum flashen + packages .. http://download.berlin.freifunk.net/fonera/
Buildchain http://wiki.openwrt.org/BuildingPackagesHowTo
svn co https://svn.openwrt.org/openwrt/tags/kamikaze_7.09
http://forum.openwrt.org/viewtopic.php?pid=31794#p31794
Fettes ipkg repository
http://downloads.openwrt.org/kamikaze/packages/mips/
Repeater
#!/bin/sh TARGET="deinnetz" killall -9 udhcpc killall dnsmasq # flush netfilter tables iptables -F iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -t nat -F wlanconfig ath0 destroy wlanconfig ath1 destroy # VAP ath0 as Access Point wlanconfig ath0 create wlandev wifi0 wlanmode ap # nosbeacon .. arghl.. wlanconfig ath1 create wlandev wifi0 wlanmode sta nosbeacon iwconfig ath1 essid $TARGET sleep 1 #externes DHCP? udhcpc -t 3 -b -i ath1 iwconfig ath0 essid $TARGET ifconfig ath0 192.168.10.1 netmask 255.255.255.0 up route add default gw 192.168.1.1 // sollte man automatisieren dnsmasq -i ath0 --dhcp-range=192.168.10.2,192.168.10.255,1800 echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o ath1 -j MASQUERADE #ifconfig eth0 172.16.0.126 netmask 255.255.0.0 up #iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
HARDWARE
LCD am fonera? http://www.lefinnois.net/wpen/index.php/2007/11/11/lcd-screen-for-la-fonera/
I2C bus? http://www.lefinnois.net/wpen/index.php/2007/05/13/i2c-bus-for-la-fonera/
SD card am fonera? http://www.larsen-b.com/Article/262.html http://phrozen.org/fonera.html
GPIO kernel modul http://mobileaccess.de/fonera/gpio/ http://daubau.net/proc_gpio/
Fertig compiliertes GPIO kernelmodul im feschen .ipk + src Media:Kamikaze_7.09_GPIOkmod.tar.gz