Moin nochmal,

ich habe nun so einen 2.4er Wifi-Dongle
  https://a.aliexpress.com/_BPF20p
an meinem gl.inet AR150 und auf dem Treiber/physikalischen Layer sieht
alles erstmal OK aus.
Ich kann damit parallel ein Freifunk-Wifi über das Onboard-Wifi aufspannen
und mit dem Dongle mich als Client an meinem Heimrouter anmelden :)

Allerdings scheint noch etwas beim Routing bzw. Firewall/Netzwerkregeln im
Argen zu liegen und ich kriege es im Moment nicht zum laufen, dass die
Kiste übers Backbone-Wifi am Dongle mit Freifunk läuft 😧
Ich versuche gerade, aus den Freifunk-configs für wireless/network/firewall
etwas schlauer zu werden, dass ich auch über den Dongle gehen kann.

Übers Wifi sollte die  Box am Dongle nur IPv4 erhalten - ist IPv6 zwingend
oder wird das mesh-IPv6 ggf. via IPv4 dann getunnelt?

Für das Backbone-Wifi habe ich bislang nur ein ziemlich plain 'wwan'
Netzwerk angelegt - vermutlich fehlen dazu dann noch ein paar Regeln, um es
entsprechend dem LAN mit dem Freifunk-Netzwerk-Regeln zu verheiraten,
oder? 😳
An der Firewall habe ich nur eine WAN-Regel für mein 'wwan' Netzwerk
eingerichtet

Viele Grüsse und Danke für alle Tipps 😉
  Thomas

= Details ======

Meine Schritte bislang waren

# backup, backup, backup
cp -a /etc/config /etc/config.20200928

# kernel treiber und ein paar tools nachziehen und neu starten
opkg install kmod-rt2800-usb kmod-rtl8187 usbutils diffutils
reboot & exit

# nach neuem device suchen und config schreiben lassen
cd /etc/config
wifi config

# bei mir wurde das onboard-wifi auf radio1 gedrängt und der wifi dongle
landete dafür auf radio0
# ich habe deswegen die nummerierung angepasst in /etc/config/wireless mit
dem onboard/freifunk wifi device/settings auf radio0 und den dongle auf
radio1 (hoffe mal, dass das den kernel/treiber nicht verwirrt...)
# jedenfalls habe ich in /etc/config/wireless radio1 im 'sta' mode als
client an mein Heim--Wifi gehangen (denke ich) und diesem das Network
'wwan' zugewiesen - siehe [1]

# das 'wwan' network habe ich in /etc/config/network angehangen [2]

# und in der firewall freigeschaltet(?) ala WAN [3]

[1]
> /etc/config/wireless

config wifi-device 'radio1'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'platform/ehci-platform/usb1/1-1/1-1:1.0'
option htmode 'HT20'
option disabled '0'

config wifi-iface 'default_radio1'
option device 'radio1'
option network 'wwan'
option ssid 'MeinBackboneWifiName'
option mode 'sta'
option encryption 'psk2'
        option bssid='12:34:56:78:90:ab'
        option key 'MeinBackboneWifiPassword'

config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/ar933x_wmac'
option hwmode '11ng'
option noscan '1'
option channel '1'
option htmode 'HT20'
option country 'DE'
option legacy_rates '0'
option txpower '20'
option disabled '0'

config wifi-iface 'client_radio0'
option ifname 'client0'
option network 'client'
option disabled '0'
option device 'radio0'
option mode 'ap'
option macaddr 'cd:fe:00:12:24:56'
option ssid 'hamburg.freifunk.net'

config wifi-iface 'mesh_radio0'
option ifname 'mesh0'
option network 'mesh_radio0'
option device 'radio0'
option mesh_fwding '0'
option mesh_id '1234567890abcdf'
option mcast_rate '12000'
option mode 'mesh'
option disabled '0'
option macaddr 'cd:fe:00:12:24:56'

[2]
> cat /etc/config/network

...freifunk networks hier...

config interface 'wwan'
        option ifname 'wwan'
        option proto 'static'
        option ipaddr '192.168.1.250'
        option netmask '255.255.255.0'

[3]
> cat /etc/config/firewall

...freifunk regeln hier...

config zone
        option name     wwan
        option input    REJECT
        option output   ACCEPT
        option forward  REJECT
        option masq     1
        option mtu_fix  1
        option network  'wwan'


Am Mi., 9. Sept. 2020 um 14:50 Uhr schrieb Thomas Hartmann [Freifunk] <
35687ac16fa591...@thomashartmann.org>:

> hmmm, zwei Boxen fände ich eher semi-optimal
>
> ich schaue erst einmal, ob die gl.inet AR150 bzw. OpenWRT irgendwelche
> USB-Wifi-Dongles unterstützt - falls man üeber eine Wifi-Dongle als
> separatem Interface dann den backbone aufziehen kann und übers 'normale'
> Modul dann freifunkt (oder umgekehrt) 🤔
>
> falls jemand damit schon mal experimentiert und Erfahrungen hat, wäre ich
> um Starthilfe dankbar 😉
>
>
>
> Am Mi., 9. Sept. 2020 um 14:19 Uhr schrieb Nicolas Stuebs <
> tha...@tharos-net.de>:
>
>> Hiho!
>>
>> Ich würde ja einfach einen einfachen Router daneben stellen, der auch
>> als Client konfiguriert werden kann und dann die beiden mit 'nem
>> Ethernetkabel verbinden. Ich würde beim Client dhcp (Server & Client)
>> sowie Nameserver ausstellen, so dass der Freifunk-Router seine IP direkt
>> vom Homeserver bezieht.
>> Gruß
>> Nicolas
>>
>>
_______________________________________________
Freifunk mailing list
Freifunk@hamburg.ccc.de
https://www.hamburg.ccc.de/mailman/listinfo/freifunk

Antwort per Email an