[WLANware] batman-adv

brent bts at project-phree.org
Fri Jul 26 02:08:50 CEST 2013


Grüße!

Ich bin in Philadelphia, Pennsylvania in den USA. Ich für die schlechte
Übersetzung, da ich nicht Deutsch sprechen (wenn bevorzugt, kann ich in
Englisch zu verfassen) entschuldigen.

Ich gründe eine batman-adv Mesh-Netzwerk. Technische Daten:

-TP-Link WR1043ND v1.11
-Custom OpenWRT (basierend auf Attitude Adjustment, 12.09 r37151)
-batman-adv v.2013.1.0
- (Vielzahl von externen Antennen)

Ich hatte einige Fragen zur Konfiguration, wie es scheint, kann ich
nicht bekommen batctl Schnittstellen zur Inbetriebnahme der Geräte
hinzuzufügen. Manuelles Hinzufügen ihnen jedoch erlaubt es mir, ein
Mesh-Netzwerk zwischen zwei Knoten zu bauen.

Der AP beginnt und das Netz ESSID tut als gut, aber ...

Relevante Konfigurationsdateien:

root at phreeN:/etc/config# egrep -v '^\ .*#|^#' batman-adv
config 'mesh' 'bat0'
        option 'aggregated_ogms' 1
        option 'ap_isolation'
        option 'bonding' 1
        option 'fragmentation'
        option 'gw_bandwidth'
        option 'gw_mode' 'server'
        option 'gw_sel_class'
        option 'log_level'
        option 'orig_interval'
        option 'vis_mode'
        option 'bridge_loop_avoidance' 1

root at phreeN:/etc/config# egrep -v '^\ .*#|^#' dhcp
config dnsmasq
        option domainneeded     1
        option boguspriv        1
        option localise_queries 1
        option rebind_protection 0
        option local    '/lan/'
        option domain   'lan'
        option expandhosts      1
        option nonegcache       0
        option authoritative    1
        option readethers       1
        option leasefile        '/tmp/dhcp.leases'
        option resolvfile       '/tmp/resolv.conf.auto'

config dhcp lan
        option interface        lan
        option start    100
        option limit    150
        option leasetime        12h

config dhcp wan
        option interface        wan
        option ignore   1


root at phreeN:/etc/config# egrep -v '^\ .*#|^#' network
config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option ifname 'eth0.1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '172.16.1.1'
        option netmask '255.255.255.0'

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'

config interface 'bat0'
        option ifname 'bat0'
        option mtu '1528'
        option proto 'batadv'
        option mesh 'mesh0'

config interface 'phree0'
        option ifname 'wlan0'
        option mtu '1528'
        option proto 'batadv'
        option mesh 'mesh0'

config interface 'vpn'
        option ifname 'tun0'
        option proto 'none'

config switch
        option name 'rtl8366rb'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'rtl8366rb'
        option vlan '1'
        option ports '1 2 3 4 5t'

config switch_vlan
        option device 'rtl8366rb'
        option vlan '2'
        option ports '0 5t'


root at phreeN:/etc/config# egrep -v '^\ .*#|^#' wireless
config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11ng'
        option htmode 'HT20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'DSSS_CCK-40'
        option channel '3'
        option disabled '0'
        option phy 'phy0'

config wifi-iface
        option device 'radio0'
        option encryption 'none'
        option network 'lan'
        option mode 'ap'
        option ssid 'Project.Phree'

config wifi-iface
        option device 'radio0'
        option encryption 'none'
        option network 'mesh0'
        option mode 'adhoc'
        option bssid 'DE:AD:BE:EF:D0:0D'
        option ssid 'mesh0'
        option mcast_rate '11000'

root at phreeN:/etc/config# egrep -v '^\ .*#|^#' firewall
config defaults
        option syn_flood        1
        option input            ACCEPT
        option output           ACCEPT
        option forward          REJECT

config zone
        option name             lan
        list   network          'lan'
        option input            ACCEPT
        option output           ACCEPT
        option forward          ACCEPT

config zone
        option name             wan
        list   network          'wan'
        list   network          'wan6'
        option input            REJECT
        option output           ACCEPT
        option forward          REJECT
        option masq             1
        option mtu_fix          1

config zone
        option name             vpn
        list network            'vpn'
        option  input           ACCEPT
        option  output          ACCEPT

config forwarding
        option src              lan
        option dest             wan

config forwarding
        option src              lan
        option dest             mesh

config forwarding
        option src              mesh
        option dest             wan

config rule
        option name             Allow-SSH-WAN
        option src              wan
        option proto            tcp
        option dest_port        22
        option target           ACCEPT
        option family           ipv4

config rule
        option name             Allow-DHCP-Renew
        option src              wan
        option proto            udp
        option dest_port        68
        option target           ACCEPT
        option family           ipv4

config rule
        option name             Allow-Ping
        option src              wan
        option proto            icmp
        option icmp_type        echo-request
        option family           ipv4
        option target           ACCEPT

config rule
        option name             Allow-DHCPv6
        option src              wan
        option proto            udp
        option src_ip           fe80::/10
        option src_port         547
        option dest_ip          fe80::/10
        option dest_port        546
        option family           ipv6
        option target           ACCEPT

config rule
        option name             Allow-ICMPv6-Input
        option src              wan
        option proto    icmp
        list icmp_type          echo-request
        list icmp_type          echo-reply
        list icmp_type          destination-unreachable
        list icmp_type          packet-too-big
        list icmp_type          time-exceeded
        list icmp_type          bad-header
        list icmp_type          unknown-header-type
        list icmp_type          router-solicitation
        list icmp_type          neighbour-solicitation
        list icmp_type          router-advertisement
        list icmp_type          neighbour-advertisement
        option limit            1000/sec
        option family           ipv6
        option target           ACCEPT

config rule
        option name             Allow-ICMPv6-Forward
        option src              wan
        option dest             *
        option proto            icmp
        list icmp_type          echo-request
        list icmp_type          echo-reply
        list icmp_type          destination-unreachable
        list icmp_type          packet-too-big
        list icmp_type          time-exceeded
        list icmp_type          bad-header
        list icmp_type          unknown-header-type
        option limit            1000/sec
        option family           ipv6
        option target           ACCEPT

config include
        option path /etc/firewall.user


__________________________________________________________________

Greetings!

I am located in Philadelphia, Pennsylvania in the USA. I apologize for
the poor translation as I don't speak German (if preferred, I can post
in English).

I am setting up a batman-adv mesh network. Technical specifications:

-TP-Link WR1043ND v1.11
-Custom OpenWRT (based on Attitude Adjustment, 12.09 r37151)
-batman-adv v.2013.1.0
-(variety of external antennas)

I did have some questions regarding the configuration, as it seems I
cannot get batctl to add interfaces on startup of the devices. Manually
adding them, however, allows me to build a mesh network between two nodes.

The AP starts and the mesh ESSID does as well, but...

Relevant configuration files: (see above)



-- 
brent s.
Project.Phree
http://phreewifi.org


More information about the WLANware mailing list