deswegen habe ich auf der testnode rettesichwerkann
in /etc/banner eingetragen:
______ _______ _ _ _
| ___| (_) ___| | | | | | |
| |_ _ __ ___ _| |_ _ _ _ __ | | __ | | ___ | |__ _ __ ___ __ _ _ __
| _| '__/ _ \ | _| | | | '_ \| |/ / | | / _ \| '_ \| '_ ` _ \ / _` | '__|
| | | | | __/ | | | |_| | | | | < | |___| (_) | | | | | | | | | (_| | |
\_| |_| \___|_\_| \__,_|_| |_|_|\_\ \_____/\___/|_| |_|_| |_| |_|\__,_|_|
-----------------------------------------------------------------------------
WARNING : Unauthorized access to this system is forbidden and will be
prosecuted by law. By accessing this system, you agree that your actions
may be monitored if unauthorized usage is suspected.
----------------------------------------------------------------------------
logread -f // syslog Ausgabe auf Konsole
batctl cl // alle Claims announced for the mesh
batctl -m bat0 o // batman-adv nachbarn anzeigen
iw dev client0 station dump // WLAN Nachbarn mit Details
traceroute -n 10.61.104.2 // Traceroute via OLSR
batctl -m bat0 tr 10.61.71.1 // Traceroute via batman-adv
ip a s // alle IPs anzeigen
ip r s t all // gesamte Routingtabelle
brctl show // alle bridges anzeigen
und in /etc/profile folgendes angehängt:
# get ipv4 if not already there, checked simply by wget call
wget -O /dev/null --quiet http://netsecdb.de;
if [ $? != 0 ]; then
udhcpc -i br-client -q -S -n;
fi
echo " "
echo "##########################################"
echo -n "### IP : "
ifconfig |head|tail -n1
echo "### from ssh : "$SSH_CONNECTION
echo -n "### uptime : "
uptime
echo -n "### connected to this node : "
batctl tl |grep W |wc -l
echo -n "### all Wifi Users in fffr : "
batctl tg |grep W |wc -l
# some more stuff ...
# and more ..
# and more
echo "########################################"
# just some handy aliases
alias ll="ls -la"
alias cd..="cd .."
alias myip="echo -n 'ifconfig' && ifconfig |head|tail -n1 && echo 'from ssh : ' $SSH_CONNECTION"
Ich habe mal angefangen, dafür ein Paket zu basteln.
Ist aber noch noch nicht fertig.
> , , Freifunk Gluon Node http://gluon.readthedocs.org
> )\___/( based on OpenWrt http://openwrt.org/
> {(@)v(@)} powered by Linux GNU General Public License
> {|~~~|} respect PPA guidelines http://www.picopeer.net
> {/^^^\} building mesh networks http://freifunk.net
> `m-m` support needed? -> http://forum.freifunk.net
> http://eulenfunk.de
> autoupdater -f // Firmware-Update erzwingen
> logread // logread -f // syslog Ausgabe auf Konsole
> ping 8.8.8.8 // google-DNS wenn IPv4 lokal
> ip a s // alle IPs anzeigen
> ip r s t all // gesamte Routingtabelle
> traceroute -n 10.155.0.254 // Traceroute via IP zu einem gatew
> batctl gwl // batman-gateways inkl. Gewaehltes
> batctl -m bat0 tr 10.155.0.254 // Traceroute via batman-adv
> batctl o // batman Domain-Nachbarn anzeigen
> batctl tl |grep W |wc -l // batman Clients zählen
> batctl if // baman interfaces anzeigen
> brctl show // alle bridges anzeigen
> iwinfo // wlan-paramter anzeigen
> iw dev client0 station dump // WLAN Nachbarn mit Details
> nodeinfo // diverse infos ausgegeben
> v4up // ipv4 holen, wenn kein vpnuplink