fastd test

Freifunk Firmware, Programme für den Router, Entwicklungen, Fragen und Anleitungen
Antworten
3dfxatwork
Beiträge: 1271
Registriert: 29.07.2007 21:40
Wohnort: Halle

fastd test

Beitrag von 3dfxatwork »

Ich hab mal ein bisschen rumgespielt und einen fastd Server aufgesetzt und ein Packet für uns gebaut.
Zum Testen der Geschwindigkeit gibt es einen mit der Verschlüsselungsmethode aes128-gcm und einen mit salsa2012+gmac.
Die Server laufen beide auf dem Hauptserver und haben die IP Adressen 10.62.6.1/25 und 10.62.6.129/25 und haben einen DHCP Server laufen, sodass wie beim Openvpn keine Adresse manuell vergeben werden müssen.
Um es zu installieren konfiguriert man das meshkit wie gewohnt (im Expertenmodus), vor dem erstellen muss dann aber noch die Paketliste angepasst werden.
Die Liste muss mit

Code: Alles auswählen

freifunk-halle-fastd
überschrieben werden.
Nachdem der Router geflasht ist, muss die Konfiguration noch etwas angepasst werden:
  • Unter Administration -> Netzwerk -> Scnittstellen je die Schnittstellen TAP0 und TAP1 bearbeiten und das Protokoll auf DHCP Client einstellen.
  • Auf der Konsole

    Code: Alles auswählen

    fastd --generate-key
    einen Schlüssel erzeugen. Der private Teil muss in die Konfigurationsdateien /etc/fastd/aes/fastd.conf und /etc/fastd/salsa/fastd.conf eingetragen werden. In den Dateien existiert eine Option secrect "xxxx";. Das xxxx muss durch den Schlüssel ersetzt werden. Bitte bei beiden den gleichen Schlüssel verwenden. Der öffentliche Schlüssel muss an mich geschickt werden, sodass ich diesen auf unseren Servern eintragen kann.
  • Tunnel starten mit

    Code: Alles auswählen

    fastd -c /etc/fastd/aes/fastd.conf
    oder

    Code: Alles auswählen

    fastd -c /etc/fastd/salsa/fastd.conf
Das sollte auch auf 4MB Router laufen, allerdings musste ich auch hier auf einiges verzichten, neben openssl auch p2pblock, luci-ssl und die deutschen Übersetzungen.

Ich bin mal gespannt, ob und wie schnell das so läuft, ich hab gerade wenig Zeit zum testen. Ich empfehe immer nur einen Tunnel aufzubauen.
Viel Spaß beim Spielen. Und bitte noch nicht im produktivbetrieb einsetzen.

PS. Das Paket ist auch auf unserem github account, kann also auch für andere Router gebaut werden. Siehe Firmware selbst bauen.

PPS. Dass ich nicht so oft neue Schlüssel eintragen muss bitte speichert euch die Schlüsselpaare irgendwo ab. (Aber nur für einen Router benutzen)
Anschluss: Muth 100/2MBit Modem: Thomson THG570
Router: virtuelles Endian 3.0 (KVM) Hardware: FX-8120, 16 GB Ram
FF-Gateway: virtuelles OpenWRT Attitude Adjustment (KVM) inkl. VPN
Buffalo WHR-HP-G54: OpenWRT 1.6.10-core-1-halle-3 (Stummel)
Tommy
Beiträge: 323
Registriert: 01.11.2009 17:17
Wohnort: Dessau-Roßlau

Re: fastd test

Beitrag von Tommy »

Hab das völlig übersehen, das war ja schon vor meinem Urlaub :o , sollte wohl öfters ins Forum schauen :lol:

Ich versuche am WE zu testen
Tommy
Beiträge: 323
Registriert: 01.11.2009 17:17
Wohnort: Dessau-Roßlau

Re: fastd test

Beitrag von Tommy »

Die Keys konnte ich erstellen und den Public habe ich dir per PN geschickt.

Starten tut der fastd ohne Fehler. Das Log sieht rund um den Start dann so aus. Auf TAP0 ist ein bischen TX Traffic auf TAP1 ist nix. Mal sehen was passiert wenn Du den Key eingetragen hast

Code: Alles auswählen

Fri Sep 25 02:30:00 2015 daemon.info dnsmasq[1568]: read /etc/hosts - 1 addresses
Fri Sep 25 02:30:00 2015 daemon.info dnsmasq[1568]: read /tmp/hosts/dhcp - 1 addresses
Fri Sep 25 02:30:00 2015 daemon.err dnsmasq[1568]: failed to load names from /var/etc/hosts.olsr: No such file or directory
Fri Sep 25 02:30:00 2015 daemon.info dnsmasq-dhcp[1568]: read /etc/ethers - 0 addresses
Fri Sep 25 02:32:28 2015 daemon.warn odhcpd[901]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Fri Sep 25 02:35:00 2015 daemon.info dnsmasq[1568]: read /etc/hosts - 1 addresses
Fri Sep 25 02:35:00 2015 daemon.info dnsmasq[1568]: read /tmp/hosts/dhcp - 1 addresses
Fri Sep 25 02:35:00 2015 daemon.err dnsmasq[1568]: failed to load names from /var/etc/hosts.olsr: No such file or directory
Fri Sep 25 02:35:00 2015 daemon.info dnsmasq-dhcp[1568]: read /etc/ethers - 0 addresses
Fri Sep 25 02:38:47 2015 daemon.notice netifd: Interface 'tap0' is enabled
Fri Sep 25 02:38:47 2015 daemon.notice netifd: Network device 'tap0' link is up
Fri Sep 25 02:38:47 2015 daemon.notice netifd: Interface 'tap0' has link connectivity 
Fri Sep 25 02:38:47 2015 daemon.notice netifd: Interface 'tap0' is setting up now
Fri Sep 25 02:38:47 2015 daemon.notice netifd: tap0 (8339): udhcpc (v1.23.2) started
Fri Sep 25 02:38:48 2015 daemon.notice netifd: tap0 (8339): Sending discover...
Fri Sep 25 02:38:51 2015 daemon.notice netifd: tap0 (8339): Sending discover...
Fri Sep 25 02:38:54 2015 daemon.notice netifd: tap0 (8339): Sending discover...
Fri Sep 25 02:40:00 2015 daemon.info dnsmasq[1568]: read /etc/hosts - 1 addresses
Fri Sep 25 02:40:00 2015 daemon.info dnsmasq[1568]: read /tmp/hosts/dhcp - 1 addresses
Fri Sep 25 02:40:00 2015 daemon.err dnsmasq[1568]: failed to load names from /var/etc/hosts.olsr: No such file or directory
Fri Sep 25 02:40:00 2015 daemon.info dnsmasq-dhcp[1568]: read /etc/ethers - 0 addresses
Fri Sep 25 02:41:00 2015 daemon.warn odhcpd[901]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Zuletzt geändert von Tommy am 25.09.2015 10:05, insgesamt 1-mal geändert.
Tommy
Beiträge: 323
Registriert: 01.11.2009 17:17
Wohnort: Dessau-Roßlau

Re: fastd test

Beitrag von Tommy »

Habe den fastd an der Konsole mal mit STRG+C beendet und neu gestartet um zu sehen was im Log kommt. Hier beenden und Neustart. Kann es nicht interpretieren aber vielleicht ihr


Edit: Was ich noch berichten wollte, die Imagegröße wird mir unter Windows mit 3,68MB angegeben! Daumen hoch!!!!

Code: Alles auswählen

Fri Sep 25 07:23:28 2015 daemon.notice netifd: Network device 'tap0' link is down
Fri Sep 25 07:23:28 2015 daemon.notice netifd: Interface 'tap0' has link connectivity loss
Fri Sep 25 07:23:28 2015 daemon.notice netifd: tap0 (8339): Read error: Network is down, reopening socket
Fri Sep 25 07:23:28 2015 daemon.notice netifd: Interface 'tap0' is disabled
Fri Sep 25 07:23:29 2015 daemon.notice netifd: tap0 (8339): udhcpc: bind: No such device
Fri Sep 25 07:24:10 2015 daemon.notice netifd: Interface 'tap0' is enabled
Fri Sep 25 07:24:10 2015 daemon.notice netifd: Network device 'tap0' link is up
Fri Sep 25 07:24:10 2015 daemon.notice netifd: Interface 'tap0' has link connectivity 
Fri Sep 25 07:24:10 2015 daemon.notice netifd: Interface 'tap0' is setting up now
Fri Sep 25 07:24:11 2015 daemon.notice netifd: tap0 (23496): udhcpc (v1.23.2) started
Fri Sep 25 07:24:11 2015 daemon.notice netifd: tap0 (23496): Sending discover...
Fri Sep 25 07:24:14 2015 daemon.notice netifd: tap0 (23496): Sending discover...
wenn ich mit salsa starte scheint TAP1 benutzt zu werden

Code: Alles auswählen

Fri Sep 25 07:43:05 2015 daemon.notice netifd: Network device 'tap0' link is down
Fri Sep 25 07:43:05 2015 daemon.notice netifd: Interface 'tap0' has link connectivity loss
Fri Sep 25 07:43:05 2015 daemon.notice netifd: tap0 (23496): Read error: Network is down, reopening socket
Fri Sep 25 07:43:05 2015 daemon.notice netifd: Interface 'tap0' is disabled
Fri Sep 25 07:43:05 2015 daemon.notice netifd: tap0 (23496): udhcpc: bind: No such device
Fri Sep 25 07:44:19 2015 daemon.notice netifd: Interface 'tap1' is enabled
Fri Sep 25 07:44:19 2015 daemon.notice netifd: Network device 'tap1' link is up
Fri Sep 25 07:44:19 2015 daemon.notice netifd: Interface 'tap1' has link connectivity 
Fri Sep 25 07:44:19 2015 daemon.notice netifd: Interface 'tap1' is setting up now
Fri Sep 25 07:44:19 2015 daemon.notice netifd: tap1 (26304): udhcpc (v1.23.2) started
Fri Sep 25 07:44:19 2015 daemon.notice netifd: tap1 (26304): Sending discover...
Fri Sep 25 07:44:22 2015 daemon.notice netifd: tap1 (26304): Sending discover...
Fri Sep 25 07:44:25 2015 daemon.notice netifd: tap1 (26304): Sending discover...
3dfxatwork
Beiträge: 1271
Registriert: 29.07.2007 21:40
Wohnort: Halle

Re: fastd test

Beitrag von 3dfxatwork »

hab dich eingetragen
Edit: ja es wird bei aes tap0 benutzt und bei salsa tap1
Anschluss: Muth 100/2MBit Modem: Thomson THG570
Router: virtuelles Endian 3.0 (KVM) Hardware: FX-8120, 16 GB Ram
FF-Gateway: virtuelles OpenWRT Attitude Adjustment (KVM) inkl. VPN
Buffalo WHR-HP-G54: OpenWRT 1.6.10-core-1-halle-3 (Stummel)
Tommy
Beiträge: 323
Registriert: 01.11.2009 17:17
Wohnort: Dessau-Roßlau

Re: fastd test

Beitrag von Tommy »

Also alleine scheint er nicht hochzukommen, zumindest taucht er in der Topologie nicht auf (ist das einzige was ich hier von Arbeit aus gucken kann). Der Router hängt am Netz und fastd ist aktuell mit salsa gestartet. An die Konsole komme ich erst heute Abend. Aber vielleicht siehst Du was im Serverlog. 10.62.40.81

Korrigiere mal bitte noch den Satz in der Anleitung oben auf "/fastd.conf", die Startaufrufe hast Du ja schon gemacht, habe den Hinweis aus meinem Beitrag oben entfernt:
Der private Teil muss in die Konfigurationsdateien /etc/fastd/aes/fast.conf und /etc/fastd/salsa/fast.conf eingetragen werden
Tommy
Beiträge: 323
Registriert: 01.11.2009 17:17
Wohnort: Dessau-Roßlau

Re: fastd test

Beitrag von Tommy »

So zuhause.

Also der Router hat irgendwie keine Verbindung. Ich habe den fastd wieder mit STRG C beendet und mit AES neugestartet. Folgendes im Log

Code: Alles auswählen

Fri Sep 25 18:49:21 2015 daemon.notice netifd: Interface 'tap0' is enabled
Fri Sep 25 18:49:21 2015 daemon.notice netifd: Network device 'tap0' link is up
Fri Sep 25 18:49:21 2015 daemon.notice netifd: Interface 'tap0' has link connectivity 
Fri Sep 25 18:49:21 2015 daemon.notice netifd: Interface 'tap0' is setting up now
Fri Sep 25 18:49:22 2015 daemon.notice netifd: tap0 (31126): udhcpc (v1.23.2) started
Fri Sep 25 18:49:22 2015 daemon.notice netifd: tap0 (31126): Sending discover...
Fri Sep 25 18:49:25 2015 daemon.notice netifd: tap0 (31126): Sending discover...
Fri Sep 25 18:49:28 2015 daemon.notice netifd: tap0 (31126): Sending discover...
Fri Sep 25 18:49:31 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:49:44 2015 daemon.notice netifd: tap0 (31126): Sending select for 10.62.6.2...
Fri Sep 25 18:49:44 2015 daemon.notice netifd: tap0 (31126): Lease of 10.62.6.2 obtained, lease time 600
Fri Sep 25 18:49:44 2015 daemon.notice netifd: Interface 'tap0' is now up
Fri Sep 25 18:49:44 2015 daemon.warn odhcpd[901]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Fri Sep 25 18:49:45 2015 user.notice firewall: Reloading firewall due to ifup of tap0 (tap0)
Fri Sep 25 18:49:45 2015 daemon.warn odhcpd[901]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Fri Sep 25 18:49:49 2015 daemon.info olsrd_hotplug: [OK] ifup: 'tap0' => 'tap0'
Fri Sep 25 18:49:49 2015 daemon.info olsrd_hotplug: [OK] ifup: 'tap0' => 'tap0'
Fri Sep 25 18:49:49 2015 daemon.info olsrd[30765]: Writing '1' (was 0) to /proc/sys/net/ipv4/conf/all/send_redirects
Fri Sep 25 18:49:49 2015 daemon.info olsrd[30765]: Writing '1' (was 0) to /proc/sys/net/ipv4/conf/wlan0/send_redirects
Fri Sep 25 18:49:49 2015 daemon.info olsrd[30765]: olsr.org - 0.6.8-git_631de18-hash_62523d7996c72892ba7e89bc35c108c7 stopped
Fri Sep 25 18:49:50 2015 daemon.info olsrd: /etc/init.d/olsrd: olsrd_write_loadplugin() Warning: Plugin library 'olsrd_arprefresh.so.0.1' not found, skipped
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Writing '1' (was 1) to /proc/sys/net/ipv4/ip_forward
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Writing '0' (was 1) to /proc/sys/net/ipv4/conf/all/send_redirects
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/all/rp_filter
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Writing '0' (was 1) to /proc/sys/net/ipv4/conf/wlan0/send_redirects
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/wlan0/rp_filter
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Adding interface wlan0
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: New main address: 10.62.40.81
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Writing '0' (was 1) to /proc/sys/net/ipv4/conf/tap0/send_redirects
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/tap0/rp_filter
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: Adding interface tap0
Fri Sep 25 18:49:51 2015 daemon.info olsrd[31380]: olsr.org - 0.6.8-git_631de18-hash_62523d7996c72892ba7e89bc35c108c7 successfully started
Fri Sep 25 18:49:52 2015 daemon.info olsrd: /etc/init.d/olsrd: olsrd_setup_smartgw_rules() Warning: kmod-ipip is missing. SmartGateway will not work until you install it.
Fri Sep 25 18:49:52 2015 daemon.info olsrd_hotplug: [OK] ifup: 'tap0' => 'tap0'
Fri Sep 25 18:49:52 2015 daemon.debug olsrd_hotplug: [OK] interface 'tap0' => 'tap0' not used for olsrd6
Fri Sep 25 18:49:58 2015 daemon.warn odhcpd[901]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Fri Sep 25 18:50:00 2015 daemon.info dnsmasq[1568]: read /etc/hosts - 1 addresses
Fri Sep 25 18:50:00 2015 daemon.info dnsmasq[1568]: read /tmp/hosts/dhcp - 1 addresses
Fri Sep 25 18:50:00 2015 daemon.info dnsmasq[1568]: read /var/etc/hosts.olsr - 3 addresses
Fri Sep 25 18:50:00 2015 daemon.info dnsmasq-dhcp[1568]: read /etc/ethers - 0 addresses
Fri Sep 25 18:50:17 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:50:18 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:50:18 2015 daemon.err uhttpd[978]: sh: write error: Broken pipe
Fri Sep 25 18:50:28 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:50:38 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:50:38 2015 daemon.err uhttpd[978]: sh: write error: Broken pipe
Fri Sep 25 18:50:48 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:50:52 2015 daemon.info dnsmasq-dhcp[1568]: DHCPREQUEST(br-batman) 6.40.81.66 d8:bb:2c:9e:27:4c 
Fri Sep 25 18:50:52 2015 daemon.info dnsmasq-dhcp[1568]: DHCPACK(br-batman) 6.40.81.66 d8:bb:2c:9e:27:4c Thomass-iPhone
Fri Sep 25 18:50:58 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:51:08 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:51:08 2015 daemon.err uhttpd[978]: sh: write error: Broken pipe
Fri Sep 25 18:51:18 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:51:28 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:51:38 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:51:48 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:51:58 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:52:08 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:52:08 2015 daemon.err uhttpd[978]: sh: write error: Broken pipe
Fri Sep 25 18:52:18 2015 daemon.err uhttpd[978]: nc: can't connect to remote host: Connection refused
Fri Sep 25 18:52:18 2015 daemon.err uhttpd[978]: sh: write error: Broken pipe
Die Salsa config mal auf debug Loglevel geändert gibt folgendes an der Konsole beim Start - sieht eigentlich schick aus?!

Code: Alles auswählen

root@fastd-test:/etc/fastd# fastd -c /etc/fastd/salsa/fastd.conf
2015-09-25 18:58:40 +0200 --- Info: fastd v17 starting
2015-09-25 18:58:40 +0200 --- DEBUG: initializing tun/tap device...
2015-09-25 18:58:40 +0200 --- DEBUG: tun/tap device initialized.
2015-09-25 18:58:41 +0200 --- Verbose: adding peer <server>
2015-09-25 18:58:41 +0200 --- Verbose: resolving host `vpn1.freifunk-halle.org' for peer <server>...
2015-09-25 18:58:41 +0200 --- Verbose: resolved host `vpn1.freifunk-halle.org' successfully
2015-09-25 18:58:41 +0200 --- DEBUG: resetting socket for peer <server>
2015-09-25 18:58:41 +0200 --- DEBUG: generating new handshake key
2015-09-25 18:58:41 +0200 --- Verbose: sending handshake to <server>[[2a02:d40:3:6::e0a2:f670]:10001]...
2015-09-25 18:58:41 +0200 --- DEBUG: learned new local MAC address 16:93:ec:ec:37:11
2015-09-25 18:58:59 +0200 --- DEBUG: resetting socket for peer <server>
2015-09-25 18:58:59 +0200 --- DEBUG: generating new handshake key
2015-09-25 18:59:00 +0200 --- Verbose: sending handshake to <server>[134.255.239.79:10001]...
2015-09-25 18:59:00 +0200 --- Verbose: resolving host `vpn1.freifunk-halle.org' for peer <server>...
2015-09-25 18:59:00 +0200 --- Verbose: resolved host `vpn1.freifunk-halle.org' successfully
2015-09-25 18:59:00 +0200 --- Verbose: received handshake response from <server>[134.255.239.79:10001] using fastd v17-59-gb54f785
2015-09-25 18:59:00 +0200 --- DEBUG: finishing handshake with <server>[134.255.239.79:10001]...
2015-09-25 18:59:00 +0200 --- Verbose: 134.255.239.79:10001 authorized as <server>
2015-09-25 18:59:00 +0200 --- Info: connection with <server> established.
2015-09-25 18:59:00 +0200 --- Verbose: new session with <server> established using method `salsa2012+gmac'.
2015-09-25 18:59:00 +0200 --- DEBUG: cleaning left handshakes with <server>
2015-09-25 18:59:03 +0200 --- DEBUG: learned new MAC address 96:2e:04:f9:2d:8b on peer <server>
Tommy
Beiträge: 323
Registriert: 01.11.2009 17:17
Wohnort: Dessau-Roßlau

Re: fastd test

Beitrag von Tommy »

Irgendwie ist dem 1043 der Speicher ausgegangen. Reboot und dann noch mal den fastd salsa gestartet. Syslog vom fastd start:

Code: Alles auswählen

Fri Sep 25 21:33:28 2015 daemon.notice fastd[2419]: fastd v17 starting
Fri Sep 25 21:33:28 2015 daemon.debug fastd[2419]: initializing tun/tap device...
Fri Sep 25 21:33:28 2015 daemon.notice netifd: Interface 'tap1' is enabled
Fri Sep 25 21:33:28 2015 daemon.notice netifd: Network device 'tap1' link is up
Fri Sep 25 21:33:28 2015 daemon.notice netifd: Interface 'tap1' has link connectivity 
Fri Sep 25 21:33:28 2015 daemon.notice netifd: Interface 'tap1' is setting up now
Fri Sep 25 21:33:28 2015 daemon.debug fastd[2419]: tun/tap device initialized.
Fri Sep 25 21:33:28 2015 daemon.info fastd[2419]: adding peer <server>
Fri Sep 25 21:33:28 2015 daemon.info fastd[2419]: resolving host `vpn1.freifunk-halle.org' for peer <server>...
Fri Sep 25 21:33:28 2015 daemon.info fastd[2419]: resolved host `vpn1.freifunk-halle.org' successfully
Fri Sep 25 21:33:28 2015 daemon.debug fastd[2419]: resetting socket for peer <server>
Fri Sep 25 21:33:28 2015 daemon.debug fastd[2419]: generating new handshake key
Fri Sep 25 21:33:28 2015 daemon.notice netifd: tap1 (2442): udhcpc (v1.23.2) started
Fri Sep 25 21:33:29 2015 daemon.notice netifd: tap1 (2442): Sending discover...
Fri Sep 25 21:33:29 2015 daemon.info fastd[2419]: sending handshake to <server>[[2a02:d40:3:6::e0a2:f670]:10001]...
Fri Sep 25 21:33:29 2015 daemon.debug fastd[2419]: learned new local MAC address 1e:f8:06:d5:f4:9a
Fri Sep 25 21:33:32 2015 daemon.notice netifd: tap1 (2442): Sending discover...
Fri Sep 25 21:33:35 2015 daemon.notice netifd: tap1 (2442): Sending discover...
Fri Sep 25 21:33:49 2015 daemon.debug fastd[2419]: resetting socket for peer <server>
Fri Sep 25 21:33:49 2015 daemon.debug fastd[2419]: generating new handshake key
Fri Sep 25 21:33:49 2015 daemon.info fastd[2419]: sending handshake to <server>[134.255.239.79:10001]...
Fri Sep 25 21:33:49 2015 daemon.info fastd[2419]: resolving host `vpn1.freifunk-halle.org' for peer <server>...
Fri Sep 25 21:33:49 2015 daemon.info fastd[2419]: resolved host `vpn1.freifunk-halle.org' successfully
Fri Sep 25 21:33:49 2015 daemon.info fastd[2419]: received handshake response from <server>[134.255.239.79:10001] using fastd v17-59-gb54f785
Fri Sep 25 21:33:49 2015 daemon.debug fastd[2419]: finishing handshake with <server>[134.255.239.79:10001]...
Fri Sep 25 21:33:50 2015 daemon.info fastd[2419]: 134.255.239.79:10001 authorized as <server>
Fri Sep 25 21:33:50 2015 daemon.notice fastd[2419]: connection with <server> established.
Fri Sep 25 21:33:50 2015 daemon.info fastd[2419]: new session with <server> established using method `salsa2012+gmac'.
Fri Sep 25 21:33:50 2015 daemon.debug fastd[2419]: cleaning left handshakes with <server>
Fri Sep 25 21:33:51 2015 daemon.debug fastd[2419]: learned new MAC address 96:2e:04:f9:2d:8b on peer <server>
Fri Sep 25 21:33:51 2015 daemon.notice netifd: tap1 (2442): Sending select for 10.62.6.132...
Fri Sep 25 21:33:51 2015 daemon.notice netifd: tap1 (2442): Lease of 10.62.6.132 obtained, lease time 600
Fri Sep 25 21:33:51 2015 daemon.notice netifd: Interface 'tap1' is now up
Fri Sep 25 21:33:51 2015 daemon.warn odhcpd[903]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Fri Sep 25 21:33:52 2015 user.notice firewall: Reloading firewall due to ifup of tap1 (tap1)
Fri Sep 25 21:33:52 2015 daemon.warn odhcpd[903]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!
Fri Sep 25 21:33:55 2015 daemon.info olsrd_hotplug: [OK] ifup: 'tap1' => 'tap1'
Fri Sep 25 21:33:56 2015 daemon.info olsrd_hotplug: [OK] ifup: 'tap1' => 'tap1'
Fri Sep 25 21:33:56 2015 daemon.info olsrd[2225]: Writing '1' (was 0) to /proc/sys/net/ipv4/conf/all/send_redirects
Fri Sep 25 21:33:56 2015 daemon.info olsrd[2225]: Writing '1' (was 0) to /proc/sys/net/ipv4/conf/wlan0/send_redirects
Fri Sep 25 21:33:56 2015 daemon.info olsrd[2225]: olsr.org - 0.6.8-git_631de18-hash_62523d7996c72892ba7e89bc35c108c7 stopped
Fri Sep 25 21:33:57 2015 daemon.info olsrd: /etc/init.d/olsrd: olsrd_write_loadplugin() Warning: Plugin library 'olsrd_arprefresh.so.0.1' not found, skipped
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Writing '1' (was 1) to /proc/sys/net/ipv4/ip_forward
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Writing '0' (was 1) to /proc/sys/net/ipv4/conf/all/send_redirects
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/all/rp_filter
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Writing '0' (was 1) to /proc/sys/net/ipv4/conf/wlan0/send_redirects
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/wlan0/rp_filter
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Adding interface wlan0
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: New main address: 10.62.40.81
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Writing '0' (was 1) to /proc/sys/net/ipv4/conf/tap1/send_redirects
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Writing '0' (was 0) to /proc/sys/net/ipv4/conf/tap1/rp_filter
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: Adding interface tap1
Fri Sep 25 21:33:58 2015 daemon.info olsrd[2638]: olsr.org - 0.6.8-git_631de18-hash_62523d7996c72892ba7e89bc35c108c7 successfully started
Fri Sep 25 21:33:59 2015 daemon.info olsrd: /etc/init.d/olsrd: olsrd_setup_smartgw_rules() Warning: kmod-ipip is missing. SmartGateway will not work until you install it.
Fri Sep 25 21:33:59 2015 daemon.info olsrd_hotplug: [OK] ifup: 'tap1' => 'tap1'
Fri Sep 25 21:33:59 2015 daemon.debug olsrd_hotplug: [OK] interface 'tap1' => 'tap1' not used for olsrd6
Fri Sep 25 21:35:00 2015 daemon.info dnsmasq[1465]: read /etc/hosts - 1 addresses
Fri Sep 25 21:35:00 2015 daemon.info dnsmasq[1465]: read /tmp/hosts/dhcp - 1 addresses
Fri Sep 25 21:35:00 2015 daemon.err dnsmasq[1465]: failed to load names from /var/etc/hosts.olsr: No such file or directory
Fri Sep 25 21:35:00 2015 daemon.info dnsmasq-dhcp[1465]: read /etc/ethers - 0 addresses
Tommy
Beiträge: 323
Registriert: 01.11.2009 17:17
Wohnort: Dessau-Roßlau

Re: fastd test

Beitrag von Tommy »

Hier noch eine Ausgabe von IP. Was ist da auf eth0.2 eigentlich los? Der Router läuft seit ca 10h. Ich weiß nicht, ob 10.62.6.1 pingbar sein muß, isser nicht. Alles andere auch nicht. Da aber der Tunnel zu stehen scheint, denke ich, es ist irgend eine FW oder Configsache auf dem Router selbst.

TAP1 zeigt im Webinterface Traffic TX/RX

Code: Alles auswählen

Uptime: 0h 1m 23s
MAC-Address: 00:00:00:00:00:00
RX: 54.91 KB (336 Pkts.)
TX: 1.72 MB (21135 Pkts.)
IPv4: 10.62.6.132/25

Code: Alles auswählen

root@fastd-test:~# ping 10.62.6.1
PING 10.62.6.1 (10.62.6.1): 56 data bytes
ping: sendto: Network is unreachable
dieser ping geht, aber sonst würde ja sicher keine Verbindung aufgebaut

Code: Alles auswählen

root@fastd-test:~# ping 134.255.239.79
PING 134.255.239.79 (134.255.239.79): 56 data bytes
64 bytes from 134.255.239.79: seq=0 ttl=57 time=22.946 ms
64 bytes from 134.255.239.79: seq=1 ttl=57 time=33.300 ms
64 bytes from 134.255.239.79: seq=2 ttl=57 time=24.432 ms
64 bytes from 134.255.239.79: seq=3 ttl=57 time=30.005 ms
64 bytes from 134.255.239.79: seq=4 ttl=57 time=23.153 ms
64 bytes from 134.255.239.79: seq=5 ttl=57 time=26.208 ms
64 bytes from 134.255.239.79: seq=6 ttl=57 time=26.067 ms
64 bytes from 134.255.239.79: seq=7 ttl=57 time=23.160 ms
64 bytes from 134.255.239.79: seq=8 ttl=57 time=34.018 ms
^C
--- 134.255.239.79 ping statistics ---
9 packets transmitted, 9 packets received, 0% packet loss
round-trip min/avg/max = 22.946/27.032/34.018 ms
root@fastd-test:~#

Code: Alles auswählen

root@fastd-test:~# ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether b0:48:7a:be:f0:44 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::b248:7aff:febe:f044/64 scope link
       valid_lft forever preferred_lft forever
3: teql0: <NOARP> mtu 1500 qdisc noop state DOWN group default qlen 100
    link/void
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether b0:48:7a:be:f0:44 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.1/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fdbf:57a0:950e::1/60 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::b248:7aff:febe:f044/64 scope link
       valid_lft forever preferred_lft forever
6: eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP group default
    link/ether b0:48:7a:be:f0:44 brd ff:ff:ff:ff:ff:ff
7: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether b0:48:7a:be:f0:44 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.58/24 brd 192.168.178.255 scope global eth0.2
       valid_lft forever preferred_lft forever
    inet6 4006:80a8:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5895sec preferred_lft 0sec
    inet6 4006:f902:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5895sec preferred_lft 0sec
    inet6 4006:61:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5895sec preferred_lft 0sec
    inet6 4006:7c6b:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5281sec preferred_lft 0sec
    inet6 4006:56a1:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5281sec preferred_lft 0sec
    inet6 4006:3b37:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5281sec preferred_lft 0sec
    inet6 4006:b0ad:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5281sec preferred_lft 0sec
    inet6 4006:75de:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5281sec preferred_lft 0sec
    inet6 4006:a2aa:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 5233sec preferred_lft 0sec
    inet6 4006:d2ff:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 4608sec preferred_lft 0sec
    inet6 4006:bc65:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 1381sec preferred_lft 0sec
    inet6 4006:7481:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 892sec preferred_lft 0sec
    inet6 4006:6ca2:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 599sec preferred_lft 0sec
    inet6 4006:f0a9:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 599sec preferred_lft 0sec
    inet6 4006:a4d0:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 599sec preferred_lft 0sec
    inet6 4006:7662:c0a8:b243:b248:7aff:febe:f044/64 scope global deprecated dynamic
       valid_lft 598sec preferred_lft 0sec
    inet6 2a02:810a:240:c18:b248:7aff:febe:f044/64 scope global dynamic
       valid_lft 4960sec preferred_lft 2260sec
    inet6 fe80::b248:7aff:febe:f044/64 scope link
       valid_lft forever preferred_lft forever
8: br-batman: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 32:a1:f5:22:f3:b1 brd ff:ff:ff:ff:ff:ff
    inet 6.40.81.1/24 brd 6.40.81.255 scope global br-batman
       valid_lft forever preferred_lft forever
    inet6 fe80::b048:7aff:febe:f044/64 scope link
       valid_lft forever preferred_lft forever
9: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether b0:48:7a:be:f0:44 brd ff:ff:ff:ff:ff:ff
    inet 10.62.40.81/32 brd 255.255.255.255 scope global wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::b248:7aff:febe:f044/64 scope link
       valid_lft forever preferred_lft forever
10: wlan0-1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-batman state UP group default qlen 1000
    link/ether b2:48:7a:be:f0:44 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::b048:7aff:febe:f044/64 scope link
       valid_lft forever preferred_lft forever
11: wlan0.12@wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master bat0 state UP group default
    link/ether b0:48:7a:be:f0:44 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::b248:7aff:febe:f044/64 scope link
       valid_lft forever preferred_lft forever
12: bat0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-batman state UNKNOWN group default
    link/ether 32:a1:f5:22:f3:b1 brd ff:ff:ff:ff:ff:ff
13: tap1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1194 qdisc fq_codel state UNKNOWN group default qlen 500
    link/ether 1e:f8:06:d5:f4:9a brd ff:ff:ff:ff:ff:ff
    inet 10.62.6.132/25 brd 10.62.6.255 scope global tap1
       valid_lft forever preferred_lft forever
root@fastd-test:~#
Tommy
Beiträge: 323
Registriert: 01.11.2009 17:17
Wohnort: Dessau-Roßlau

Re: fastd test

Beitrag von Tommy »

Scheinbar frisst in dem Image auch irgendwas Speicher weg. Der Router läuft eine Woche so vor sich hin. Im Anhang die Ausgabe vom dmesg und drunter von logread. Wenn es nicht am fastd liegt, bitte Langzeittest mit dem neuen Image machen. Der Router ist ein 1043v1

Ein Ausschnitt (Rest im Anhang)

Code: Alles auswählen

Out of memory: Kill process 27930 (dhcpv6.script) score 17 or sacrifice child
Killed process 27930 (dhcpv6.script) total-vm:1796kB, anon-rss:508kB, file-rss:0kB
jshn invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
CPU: 0 PID: 28088 Comm: jshn Not tainted 3.18.10 #2
Stack : 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
          ...
Call Trace:[<802630ac>] 0x802630ac
[<802630ac>] 0x802630ac
[<80350000>] 0x80350000
[<802bde58>] 0x802bde58
[<80350000>] 0x80350000
[<801f47d8>] 0x801f47d8
[<801f5838>] 0x801f5838
[<80083f00>] 0x80083f00
[<800948e0>] 0x800948e0
[<8015ab88>] 0x8015ab88
[<800ba258>] 0x800ba258
[<80159480>] 0x80159480
[<80203c64>] 0x80203c64
[<80159b0c>] 0x80159b0c
[<80094778>] 0x80094778
[<8013cc7c>] 0x8013cc7c
[<80203c64>] 0x80203c64
[<80203b38>] 0x80203b38
[<80176334>] 0x80176334
[<80094b60>] 0x80094b60
[<8022bb94>] 0x8022bb94
[<802154c0>] 0x802154c0
[<80097738>] 0x80097738
[<800666b8>] 0x800666b8
[<80060820>] 0x80060820

Mem-Info:
Normal per-cpu:
CPU    0: hi:    0, btch:   1 usd:   0
active_anon:3161 inactive_anon:33 isolated_anon:0
 active_file:171 inactive_file:177 isolated_file:0
 unevictable:0 dirty:0 writeback:0 unstable:0
 free:169 slab_reclaimable:163 slab_unreclaimable:1242
 mapped:36 shmem:159 pagetables:174 bounce:0
 free_cma:0
Normal free:676kB min:676kB low:844kB high:1012kB active_anon:12644kB inactive_anon:132kB active_file:684kB inactive_file:708kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:32768kB managed:28836kB mlocked:0kB dirty:0kB writeback:0kB mapped:144kB shmem:636kB slab_reclaimable:652kB slab_unreclaimable:4968kB kernel_stack:512kB pagetables:696kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:8984 all_unreclaimable? yes
lowmem_reserve[]: 0 0
Normal: 29*4kB (UER) 40*8kB (R) 9*16kB (R) 3*32kB (R) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 676kB
507 total pagecache pages
0 pages in swap cache
Swap cache stats: add 0, delete 0, find 0/0
Free swap  = 0kB
Total swap = 0kB
8192 pages RAM
0 pages HighMem/MovableOnly
983 pages reserved
[ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[  441]     0   441      255       48       4        0             0 ubusd
[  442]     0   442      194       13       3        0             0 askfirst
[  832]     0   832      262       37       4        0             0 logd
[  841]     0   841      384       42       3        0             0 rpcd
[  903]     0   903      314       56       5        0             0 odhcpd
[  945]     0   945      289       19       3        0             0 dropbear
[  983]     0   983      387       50       5        0             0 uhttpd
[  984]     0   984      284       18       3        0             0 uhttpd
[ 1334]     0  1334      343       20       3        0             0 ntpd
[ 1343]     0  1343      415       44       4        0             0 hostapd
[ 1429]     0  1429      344       22       4        0             0 crond
[ 1465] 65534  1465      233       27       6        0             0 dnsmasq
[ 2379]     0  2379      312       44       3        0             0 dropbear
[ 2380]     0  2380      343       20       4        0             0 ash
[ 2419]     0  2419      844       58       5        0             0 fastd
[22210]     0 22210      312       44       3        0             0 dropbear
[22211]     0 22211      343       21       4        0             0 ash
[27655]     0 27655      386       56       4        0             0 olsrd
[27925]     0 27925      454      131       4        0             0 dhcpv6.script
[27927]     0 27927      454      131       4        0             0 dhcpv6.script
[27928]     0 27928      454      131       5        0             0 dhcpv6.script
[27929]     0 27929      454      131       3        0             0 dhcpv6.script
[27931]     0 27931      454      132       4        0             0 dhcpv6.script
[27932]     0 27932      454      131       4        0             0 dhcpv6.script
[27935]     0 27935      454      131       3        0             0 dhcpv6.script
[27936]     0 27936      454      131       6        0             0 dhcpv6.script
[27949]     0 27949      439      117       5        0             0 dhcpv6.script
[28037]     0 28037      362       38       5        0             0 netifd
[28065]     0 28065      382      123       4        0             0 ubus
[28066]     0 28066      382      123       4        0             0 ubus
[28067]     0 28067      382      123       3        0             0 ubus
[28068]     0 28068      382      121       4        0             0 ubus
[28069]     0 28069      382      123       4        0             0 ubus
[28070]     0 28070      382      123       3        0             0 ubus
[28071]     0 28071      382      123       3        0             0 ubus
[28072]     0 28072      382      122       4        0             0 ubus
[28075]     0 28075      535       72       5        0             0 luci
[28080]     0 28080      439      117       5        0             0 dhcpv6.script
[28081]     0 28081      335       97       5        0             0 jshn
[28085]     0 28085      342       17       5        0             0 sh
[28086]     0 28086      367       45       4        0             0 dhcpv6.sh
[28088]     0 28088      259       24       3        0             0 jshn
Dateianhänge
ff_log.txt
(104.2 KiB) 343-mal heruntergeladen
Antworten