[Freifunk Franken] Hybrid-FF-WWAN-PRIVAT

Carl Schiller carldergrosse at googlemail.com
So Okt 11 17:48:37 CEST 2015


Hallo,

 

so kurz was ich umsetzten will: 

 

Freifunkrouter per Wlan ans Internet anbinden, und auf demselben Router noch
ein Privates Wlan / Netzwerk. 

 

In der Theorie sollte das ja machbar sein:

Privates Wlan per Anleitung ausm wiki
(https://wiki.freifunk-franken.de/w/Hybrider_Access_Point_%28WPA2/privat_%2B
_Freifunk%29), geht ohne Probleme.

 

Router per WWAN (wlan) ans Internet zu hängen wenn beide auf Kanal 1 sind
ist auch keine große Kunst. 

 

Nur beides gleichzeitig, will einfach nicht: Ich bekomme auf dem Privaten
Wlan keine IP mehr.

DNSmasq ist ja auf dem Router so wie ich das sehe nicht installiert, also
kann ich dem Privaten Wlan damit auch nicht einfach eine IP geben.

 

 

Vll weiß ja jemand wo das Problem oder sogar die Lösung ist :) (Aber die
Lösung: Nimm einfach 2 Router, oder Nimm nen Kabel is nicht)

 

 

Das hier ist die config wo wwan an ist, und das private wlan kein IP
bekommt:

 

 

______________________________________________________________

root at FF-wwan-Test:~# vi /etc/config/wireless

config wifi-device  radio0

        option type     mac80211

        option channel  1

        option phy      phy0

        option hwmode   11ng

 

config wifi-iface

        option device   radio0

        option network  w2mesh

        option ifname   w2mesh

        option mode     adhoc

        option bssid    '02:CA:FF:EE:BA:BE'

        option ssid     'batman.franken.freifunk.net'

        option mcast_rate 6000

#       option bintval  1000

        option 'encryption' 'none'

        option 'hidden' '1'

 

config wifi-iface

        option device   radio0

        option network  mesh

        option ifname   w2ap

        option mode     ap

        option ssid     'franken.freifunk.net'

        option 'encryption' 'none

 

config wifi-iface

        option device       'radio0'

        option network      'privat'

        option ifname       'privwifi'

        option mode         'ap'

        option ssid         'NXT XXXX'

        option key          'XXXXX'

#        option encryption   'psk2+tkip+aes'

        option encryption   'psk2'

 

config wifi-iface

        option ssid 'XXXXp'

        option encryption 'psk2'        # Set wep, psk or psk2 for WEP, WPA
or WPA2

        option device 'radio0'

        option mode 'sta'

        option network 'wwan'

        option ifname  'uplink'

        option key 'XXXXXXXX'

 

________________________________________________________________

root at FF-wwan-Test:~# vi /etc/config/network

 

config interface 'loopback'

        option ifname 'lo'

        option proto 'static'

        option ipaddr '127.0.0.1'

        option netmask '255.0.0.0'

 

config interface 'w2mesh'

        option mtu '1532'

        option proto 'batadv'

        option mesh 'bat0'

 

config interface 'mesh'

        option type 'bridge'

        option auto '1'

        option ifname 'eth0.1 bat0'

        option macaddr '30:b5:c2:81:21:98'

 

config interface 'wan'

        option proto 'dhcp'

        option ifname 'eth1'

 

config interface 'wwan'

        option proto 'dhcp'

 

config interface 'ethmesh'

        option mtu '1532'

        option proto 'batadv'

        option mesh 'bat0'

        option ifname 'eth0.3'

        option macaddr '30:b5:c2:81:21:99'

 

config interface 'privat'

        option ifname 'eth1 uplink'

        option type 'bridge'

        option proto 'dhcp'

 

config interface 'bat'

        option ifname 'bat0'

        option mtu '1500'

 

config switch 'eth0'

        option name 'eth0'

        option enable '1'

        option reset '1'

        option enable_vlan '1'

 

 

____________________________

root at FF-wwan-Test:~# vi /etc/config/firewall

config defaults

        option syn_flood        1

        option input            ACCEPT

        option output           ACCEPT

        option forward          REJECT

 

config zone

        option name             lan

        option input    ACCEPT

        option output   ACCEPT

        option forward  REJECT

 

config zone

        option name             wan

        option input    REJECT

        option output   ACCEPT

        option forward  REJECT

        option masq             1

        option mtu_fix  1

        option network 'wan wwan'

 

config forwarding

        option src      lan

        option dest     wan

 

# We need to accept udp packets on port 68,

# see https://dev.openwrt.org/ticket/4108

config rule

        option src              wan

        option proto            udp

        option dest_port        68

        option target           ACCEPT

 

#Allow ping

config rule

        option src wan

        option proto icmp

        option icmp_type echo-request

        option target ACCEPT

 

#Allow SSH on WAN

config rule

        option src              wan

        option dest_port        22

        option target           ACCEPT

        option proto            tcp

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.freifunk.net/mailman/private/franken-freifunk.net/attachments/20151011/4c4ea049/attachment.html>


Mehr Informationen über die Mailingliste franken