b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* Re: [B.A.T.M.A.N.] dns/routing/ issue (batman-adv mesh)
       [not found] ` <CAHD-aqJrdXNJeVEti+HTFkSg47B642gJ7wUDvFGrNNp6merjkw@mail.gmail.com>
@ 2013-01-16 18:09   ` cmsv
  2013-01-17 12:15     ` Gui Iribarren
  0 siblings, 1 reply; 2+ messages in thread
From: cmsv @ 2013-01-16 18:09 UTC (permalink / raw)
  To: Gui Iribarren,
	The list for a Better Approach To Mobile Ad-hoc Networking

just like you ; i would like to have the mesh working even if a gateway 
dies.
http://dpaste.com/hold/879202/

cable connected clients on the client routers can access the wan
just not wirelessly connected.

On 01/16/13 12:31, Gui Iribarren wrote:
> You posted only one set of configurations, but it's not clear to me
> whether that belongs to router 1 or 2.
> Could you please repost (maybe in a pastebin.com link)
> /etc/config/network
> /etc/config/dhcp
> /etc/config/wireless
> for router 1
>
> and the same, clearly labeled , for router 2
>
> On Wed, Jan 16, 2013 at 8:21 AM, cmsv<cmsv@wirelesspt.net>  wrote:
>> # cat /etc/openwrt_release
>> DISTRIB_ID="OpenWrt"
>> DISTRIB_RELEASE="Attitude Adjustment"
>> DISTRIB_REVISION="r35153"
>> DISTRIB_CODENAME="attitude_adjustment"
>> DISTRIB_TARGET="ar71xx/generic"
>> DISTRIB_DESCRIPTION="OpenWrt Attitude Adjustment 12.09-rc1"
>>
>> Batman-adv 2012.3.0
>>
>> Scenario:
>> router 1 is the internet gateway
>> router 2 is a client router of that gateway
>> Both routers in vap mode with 2 diff ssid's
>> one dhcp pool for 'lan'
>>
>> config dnsmasq
>> option domainneeded     1
>> option boguspriv        1
>> option filterwin2k      0  # enable for dial on demand
>> option localise_queries 1
>> option rebind_protection 1  # disable if upstream must serve RFC1918
>> addresses
>> option rebind_localhost 1  # enable for RBL checking and similar services
>> #list rebind_domain example.lan  # whitelist RFC1918 responses for domains
>> option local    '/lan/'
>> option domain   'wirelesspt.net'
>> option expandhosts      1
>> option nonegcache       0
>> option authoritative    1
>> option readethers       1
>> option leasefile        '/tmp/dhcp.leases'
>> option resolvfile       '/tmp/resolv.conf.auto'
>> #list server            '/mycompany.local/1.2.3.4'
>> #option nonwildcard     1
>> #list interface         br-lan
>> #list notinterface      lo
>> #list bogusnxdomain     '64.94.110.11'
>> #list dns               208.67.222.222
>> #list dns               208.67.220.220
>> #list dns               8.8.8.8
>>
>> config dhcp lan
>> option interface        lan
>> option start    50
>> option limit    254
>> option leasetime        24h
>> #option force   1
>>
>> config dhcp wan
>> option interface        wan
>> option ignore   1 # 0 for non gw
>>
>>
>> Problem:
>> router 1 clients (people with computers) can connect to it either with cable
>> or wirelessly and ping/access the wan. router 1 works well this way
>>
>> router 1 can ping router 2 either on layer 2 or layer 3
>>
>> router 2 can ping router 1 either on layer 2 or layer 3
>> router
>>
>> clients (connected to router 2 via cable) are able to access and ping the
>> wan.
>> clients connected to router 2 wirelessly are NOT able to access the wan.
>> Seems a routing/dns issue
>>
>> # ping yahoo.com
>> ping: bad address 'yahoo.com
>>
>> both /etc/resolv.com contain 127.0.0.1 as nameserver
>>
>> # cat 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 bat0'
>>          option type 'bridge'
>>          option proto 'static'
>>          option ipaddr '192.168.1.2'
>>          option netmask '255.255.255.0'
>>
>> config 'interface' 'mesh'
>>          option ifname 'wlan0-1'
>>          option 'proto' 'none'
>>          option 'mtu' '1528'
>>
>> config interface 'wan'
>>          option ifname 'eth1'
>>          option proto 'dhcp'
>>
>> config switch
>>          option name 'eth0'
>>          option reset '1'
>>          option enable_vlan '1'
>>
>> config switch_vlan
>>          option device 'eth0'
>>          option vlan '1'
>>          option ports '0 1 2 3 4'
>>
>> # cat batman-adv
>> config 'mesh' 'bat0'
>>          option 'interfaces' 'mesh'
>>          option 'aggregated_ogms' '1'
>>          option 'ap_isolation' '0'
>>          option 'bonding' '0'
>>          option 'fragmentation' '1'
>>          option 'gw_bandwidth' '3mbit/384kbit'
>>          option 'gw_mode' 'client'
>>          option 'gw_sel_class' '20'
>>          option 'orig_interval' '1000'
>>          option 'vis_mode' 'client'
>>          option 'bridge_loop_avoidance' '1'
>>          #option 'log_level'
>>
>>
>> /etc/firewall contains openwrt default settings and i have questioned myself
>> if some rules need to be set there.
>>
>> i tried this:
>> http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2012-May/007131.html and no
>> success.
>>
>> and read this which is somewhat related tp my issue too.
>> www.mail-archive.com/b.a.t.m.a.n@lists.open-mesh.org/msg07643.html
>>
>> what am i missing ? iptables forward rules ?
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>>
>>
>>
>>
>>
>> Redes wireless
>> http://wirelesspt.net
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [B.A.T.M.A.N.] dns/routing/ issue (batman-adv mesh)
  2013-01-16 18:09   ` [B.A.T.M.A.N.] dns/routing/ issue (batman-adv mesh) cmsv
@ 2013-01-17 12:15     ` Gui Iribarren
  0 siblings, 0 replies; 2+ messages in thread
From: Gui Iribarren @ 2013-01-17 12:15 UTC (permalink / raw)
  To: cmsv; +Cc: The list for a Better Approach To Mobile Ad-hoc Networking

Right, you're mixing up dhcp.wan.ignore with dhcp.lan.ignore.

it should be:

### router 1 gateway
uci set dhcp.lan.ignore=0
uci set dhcp.lan.force=1
uci set dhcp.wan.ignore=1

### router 2 client
uci set dhcp.lan.ignore=1
uci set dhcp.lan.force=0
uci set dhcp.wan.ignore=1

so, on gateway router DHCP is always served,
and on client router, DHCP is never started.

in the config you posted, the "client" router has DHCP enabled on LAN
interface, thus serves the wrong lease to wireless clients.

good luck!

On Wed, Jan 16, 2013 at 3:09 PM, cmsv <cmsv@wirelesspt.net> wrote:
> just like you ; i would like to have the mesh working even if a gateway
> dies.
> http://dpaste.com/hold/879202/
>
> cable connected clients on the client routers can access the wan
> just not wirelessly connected.
>
>
> On 01/16/13 12:31, Gui Iribarren wrote:
>>
>> You posted only one set of configurations, but it's not clear to me
>> whether that belongs to router 1 or 2.
>> Could you please repost (maybe in a pastebin.com link)
>> /etc/config/network
>> /etc/config/dhcp
>> /etc/config/wireless
>> for router 1
>>
>> and the same, clearly labeled , for router 2
>>
>> On Wed, Jan 16, 2013 at 8:21 AM, cmsv<cmsv@wirelesspt.net>  wrote:
>>>
>>> # cat /etc/openwrt_release
>>> DISTRIB_ID="OpenWrt"
>>> DISTRIB_RELEASE="Attitude Adjustment"
>>> DISTRIB_REVISION="r35153"
>>> DISTRIB_CODENAME="attitude_adjustment"
>>> DISTRIB_TARGET="ar71xx/generic"
>>> DISTRIB_DESCRIPTION="OpenWrt Attitude Adjustment 12.09-rc1"
>>>
>>> Batman-adv 2012.3.0
>>>
>>> Scenario:
>>> router 1 is the internet gateway
>>> router 2 is a client router of that gateway
>>> Both routers in vap mode with 2 diff ssid's
>>> one dhcp pool for 'lan'
>>>
>>> config dnsmasq
>>> option domainneeded     1
>>> option boguspriv        1
>>> option filterwin2k      0  # enable for dial on demand
>>> option localise_queries 1
>>> option rebind_protection 1  # disable if upstream must serve RFC1918
>>> addresses
>>> option rebind_localhost 1  # enable for RBL checking and similar services
>>> #list rebind_domain example.lan  # whitelist RFC1918 responses for
>>> domains
>>> option local    '/lan/'
>>> option domain   'wirelesspt.net'
>>> option expandhosts      1
>>> option nonegcache       0
>>> option authoritative    1
>>> option readethers       1
>>> option leasefile        '/tmp/dhcp.leases'
>>> option resolvfile       '/tmp/resolv.conf.auto'
>>> #list server            '/mycompany.local/1.2.3.4'
>>> #option nonwildcard     1
>>> #list interface         br-lan
>>> #list notinterface      lo
>>> #list bogusnxdomain     '64.94.110.11'
>>> #list dns               208.67.222.222
>>> #list dns               208.67.220.220
>>> #list dns               8.8.8.8
>>>
>>> config dhcp lan
>>> option interface        lan
>>> option start    50
>>> option limit    254
>>> option leasetime        24h
>>> #option force   1
>>>
>>> config dhcp wan
>>> option interface        wan
>>> option ignore   1 # 0 for non gw
>>>
>>>
>>> Problem:
>>> router 1 clients (people with computers) can connect to it either with
>>> cable
>>> or wirelessly and ping/access the wan. router 1 works well this way
>>>
>>> router 1 can ping router 2 either on layer 2 or layer 3
>>>
>>> router 2 can ping router 1 either on layer 2 or layer 3
>>> router
>>>
>>> clients (connected to router 2 via cable) are able to access and ping the
>>> wan.
>>> clients connected to router 2 wirelessly are NOT able to access the wan.
>>> Seems a routing/dns issue
>>>
>>> # ping yahoo.com
>>> ping: bad address 'yahoo.com
>>>
>>> both /etc/resolv.com contain 127.0.0.1 as nameserver
>>>
>>> # cat 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 bat0'
>>>          option type 'bridge'
>>>          option proto 'static'
>>>          option ipaddr '192.168.1.2'
>>>          option netmask '255.255.255.0'
>>>
>>> config 'interface' 'mesh'
>>>          option ifname 'wlan0-1'
>>>          option 'proto' 'none'
>>>          option 'mtu' '1528'
>>>
>>> config interface 'wan'
>>>          option ifname 'eth1'
>>>          option proto 'dhcp'
>>>
>>> config switch
>>>          option name 'eth0'
>>>          option reset '1'
>>>          option enable_vlan '1'
>>>
>>> config switch_vlan
>>>          option device 'eth0'
>>>          option vlan '1'
>>>          option ports '0 1 2 3 4'
>>>
>>> # cat batman-adv
>>> config 'mesh' 'bat0'
>>>          option 'interfaces' 'mesh'
>>>          option 'aggregated_ogms' '1'
>>>          option 'ap_isolation' '0'
>>>          option 'bonding' '0'
>>>          option 'fragmentation' '1'
>>>          option 'gw_bandwidth' '3mbit/384kbit'
>>>          option 'gw_mode' 'client'
>>>          option 'gw_sel_class' '20'
>>>          option 'orig_interval' '1000'
>>>          option 'vis_mode' 'client'
>>>          option 'bridge_loop_avoidance' '1'
>>>          #option 'log_level'
>>>
>>>
>>> /etc/firewall contains openwrt default settings and i have questioned
>>> myself
>>> if some rules need to be set there.
>>>
>>> i tried this:
>>> http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2012-May/007131.html and
>>> no
>>> success.
>>>
>>> and read this which is somewhat related tp my issue too.
>>> www.mail-archive.com/b.a.t.m.a.n@lists.open-mesh.org/msg07643.html
>>>
>>> what am i missing ? iptables forward rules ?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>>
>>>
>>>
>>> Redes wireless
>>> http://wirelesspt.net
>>
>>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-17 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <50F68D22.7090709@wirelesspt.net>
     [not found] ` <CAHD-aqJrdXNJeVEti+HTFkSg47B642gJ7wUDvFGrNNp6merjkw@mail.gmail.com>
2013-01-16 18:09   ` [B.A.T.M.A.N.] dns/routing/ issue (batman-adv mesh) cmsv
2013-01-17 12:15     ` Gui Iribarren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).