Re: [OpenWrt-Devel] Automated Hotspot Testing Tool

2015-03-24 Thread Roman Yeryomin
On 23 March 2015 at 15:15, Ronaldo Afonso rona...@ronaldoafonso.com.br wrote:
   Hi all,

   I was wondering if some of you guys know about any automated hotspot
 testing tool?

   The thing is:

   I have a bunch of hotspots running a crafted OpenWRT firmware that I
 compile myself.

   Prior each firmware release I manually do a lot of tests like:

  - try to get an IP address via DHCP
  - ssh into the hospot
  - ping some Internet hosts
  - try to navigate in the Internet
  - check if my crafted firewall is running fine
  - etc ..

I would like to automate all of those tests and I'd like to know if the
 OpenWRT community already have or use a tool for that.

   Any help or suggestion would be appreciated.

   Thanks in advance ...


Didn't use it myself but heard good words about this: http://robotframework.org/
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH v3] x86: use PARTUUID instead explicitly specifying the device by default

2015-03-24 Thread Jo-Philipp Wich
Applied in r44966 - thanks!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] x86_64: fix PARTUUID format with leading zeros

2015-03-24 Thread Jo-Philipp Wich
Applied in r44959 - thanks!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Multiple OpenWrt devices collectively managed?

2015-03-24 Thread Bastian Bittorf
* Janne Cederberg janne.cederb...@gmail.com [24.03.2015 12:56]:
 Oh, sorry Bastian I forgot to comment on your suggestion earlier!
 Question: how does that constant restarting affect network QoS/throughput?

the 'wifi up' command is only issued when

a)
the last client leaves.

each 60secs there is a check with
for DEV in $WIFIDEVS; do 
iw dev $DEV station dump | grep -c ^'Station' $counter
done

so we know when there is a change from X to '0' clients - 'wifi up'
see:
https://github.com/bittorf/kalua/blob/master/openwrt-addons/etc/kalua/watch#L1818

b)
around every 60-90 minutes when there is no client.
this triggers also a new acs_survey/channel-section.

because this is only done without clients, there is no change in network 
QoS/throughput?

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH][RESEND V2] lldpd: add option to disable privilege separation

2015-03-24 Thread Jo-Philipp Wich
Applied in r44967 - thanks!
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Multiple OpenWrt devices collectively managed?

2015-03-24 Thread valent.turko...@gmail.com
After reading comments from all of you I thought of deploying
additional devices just as wifi analyzers, as few of you suggested. I
have used kismet before, but only as standalone wifi scanner, but
there is also an option to deploy kismet-drones and monitor multiple
endpoints from central kismet server.

That could probably work if you can get alerts from kismet when some
channel starts to have lots more traffic than it used to have and then
take action if necessary to modify your node's channels. Any thoughts
on this approach?
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Multiple OpenWrt devices collectively managed?

2015-03-24 Thread Bastian Bittorf
* David Lang da...@lang.hm [24.03.2015 12:56]:
 If a client tries to connect right after it has gone idle, they will
 just end up connecting to a more remote AP (assuming there is one in
 range)

you are right, because everything is polluted with access-points,
there is always another one in range...

bye, bastian
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Sami Olmari
isn't it quite self-explanatory? with ./scripts/env new name here you
generate new profile, where you can then have own configs and own set of
files/ etc. So... 10 devices, 10 profiles, each having own settings and
files... You get the idea.

 Sami Olmari

On Tue, Mar 24, 2015 at 6:44 PM, Nguyễn Hồng Quân ng.hong.q...@gmail.com
wrote:

 Hi

 On Wed, Mar 25, 2015 at 12:33 AM, Sami Olmari s...@olmari.fi wrote:

 Why not use ./scripts/env with your own batchfile? It has all the things
 you need for multiple hardware configurations on single buildroot... only
 thing you need to do is automate it with bash-script etc...

 I tried the script:

 $ ./scripts/env
 Usage: ./scripts/env [options] command [arguments]
 Commands:
 help  This help text
 list  List environments
 clear Delete all environment and revert to flat
 config/files
 new nameCreate a new environment
 switch name Switch to a different environment
 delete name Delete an environment
 rename newname  Rename the current environment
 diff  Show differences between current state and
 environment
 save  Save your changes to the environment
 revertRevert your changes since last save

 Options:


 and I don't understand what it can do :-(

 --
 Quân
 ***
 * Nguyễn Hồng Quân*
 * Y!M: ng_hquan_vn*
 * Facebook: ng.hong.quan  *
 * Web: quan.hoabinh.vn*
 ***

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Jean-Michel Pouré - GOOZE
 I think you should try to modify openwrt/Makefile 
 Add your own script  for target devices.

I am thinking about moving to a Makefile also. 

Currently, my scripts look like this one :
*
#git clone git://git.openwrt.org/openwrt.git openwrt-ar71xx
cd openwrt-ar71xx

#echo make dirclean
#make dirclean

echo git checkout
git checkout master
git pull

echo updating feeds
./scripts/feeds update -a
./scripts/feeds install luci
./scripts/feeds install luci-proto-ipv6

echo make defconfig
rm -f .config
echo  .config 'CONFIG_TARGET_ar71xx_generic_TLWR841=y'
echo  .config 'CONFIG_PACKAGE_luci=y'
echo  .config 'CONFIG_PACKAGE_luci-proto-ipv6=y'

make defconfig

echo compiling
make -j 5
*

Next thing I would like to test is create custom targets. I am not very
sure how to work. But basically, can define
CONFIG_TARGET_ar71xx_generic_TLWR841_myown

I read on the wiki there was also the ability to compile all package and
then use image builder to quickly build custom installers.

At one point, if you need to initialize dozens of routers and APs, you
probably want to use image builder.

Kind regards,
Gnutella
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Multiple OpenWrt devices collectively managed?

2015-03-24 Thread David Lang

On Tue, 24 Mar 2015, valent.turko...@gmail.com wrote:


After reading comments from all of you I thought of deploying
additional devices just as wifi analyzers, as few of you suggested. I
have used kismet before, but only as standalone wifi scanner, but
there is also an option to deploy kismet-drones and monitor multiple
endpoints from central kismet server.

That could probably work if you can get alerts from kismet when some
channel starts to have lots more traffic than it used to have and then
take action if necessary to modify your node's channels. Any thoughts
on this approach?


The devil is in the details. What does too much traffic mean? It could just be 
the crowd that you are intending to serve using the system, or one person doing 
a yum update.


Then there's the problem of deciding what to do. As I was trying to say in my 
last, long message, figuring out what channel each AP is on is not a science, 
it's part art because the system can't know everything (are these APs heavily 
loaded because this is the keynote and everyone's in one place, or because 
everyone is in the lobby waiting for the show floor to open in 10 min and will 
flood in to the area where the APs are idle, etc)


I've had cases where vendors on the show floor were demoing video streaming to 
mobile devices, using their own APs not coordinated with us (and after signing 
an agreement that they would not do so) where their activity not only clobbered 
three APs on the show floor, but 6 rooms of APs on the floor above. At some 
point there's not much you can actually do from a technical point of view other 
than identifying the problem.


Kismit and similar can be useful tools to gather facts, but turning facts into 
information and figuring out what actions you can take are far from simple.


David Lang
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Fwd: [Battlemesh] Announcing Battlemesh V8 Maribor, Slovenia

2015-03-24 Thread Simon Wunderlich
I'm sure there are some on this list who will be interested in joining! Please 
spread the word. :)

--  Forwarded Message  --

Subject: [Battlemesh] Announcing Battlemesh V8 Maribor, Slovenia
Date: Monday 23 March 2015, 17:13:18
From: Musti mu...@wlan-si.net
To: Battle of the Mesh Mailing List battlem...@ml.ninux.org

==
   Announcing the Wireless Battle Mesh v8
(3rd - 9th of August 2015, Maribor, Slovenia)
==

The next 'Wireless Battle of the Mesh' will take place from Mon 3rd
till Sun 9th of August at Dom Obrambe Pekre, Maribor, Slovenia. The
event aims to bring together people from across the globe to test the
performance of different routing protocols for ad-hoc networks, like
Babel, B.A.T.M.A.N., BMX, OLSR, and 802.11s. Of course, new protocols
(working on OpenWrt) are always welcome!

It is not required to be active within the mentioned protocols, so if
you are a mesh networking enthusiast, community networking activist, or
have an interest in mesh networks in general, you have to check this out!

Information about the event is gathered at:
http://battlemesh.org/BattleMeshV8


Location


The event takes place at the Dom Obrambe Pekre, Maribor, Slovenia.
It features one large dining hall with an attached smaller hall for
talks, a large lecture theater, several smaller classrooms and an
outdoor auditorium. Expect to find nice community WiFi internet
connection (open.wlan-si.net), video projectors, beverage and snack
supplies and some curious hackers.

Participant Registration and Fee


The event itself is free of charge and open for all, so to register
without hotel and food supply, simply add your name to the participant
table.

http://battlemesh.org/BattleMeshV8/Participants

If you wish low cost accommodation, a special group booking has been
arranged. Payment in advance is required to get the full benefit of
the discount. Therefore, like for the previous event, this year's
edition features an early bird low cost registration program with two
accomodation options:

Hotel Milena:
-

Hotel Milena is a family run hotel under mountain Pohorje for which
the accommodation is offered in a package. Rooms are for 2-4 people,
some rooms have a double bed only. In the case of a large number of
participants some accommodation will be in the neighbouring hotels
as well. Breakfast is included. There is a 15min walk to the
conference venue.

Early bird booking is available for 6 nights (August 3rd to 9th)
for 150 EUR if payment is received before 18th April. The price
goes up to EUR 175,00 for all later payments. These late arrangements
are subject to availability.

Camping:


Camping Kekec is a camping place in the vicinity of Hotel Milena,
all the usual camping amnesties available. No breakfast included.
There are shops nearby, walking to the conference venue takes 18 minutes.

Early bird booking is available for 6 nights (August 3rd to 9th)
for 45 EUR if payment is received before 18th April The price
goes up to EUR 55,00 for all later payments. These late arrangements
are subject to availability.

General:


For any additional information, requests and inquiries get in touch
with the local organization team: battlemeshv8 at wlan-si.net

Of course, this package is not compulsory. You can also find your own
bed and food supply yourself during the event if you wish to do so.

Payment information can be found be found here on the Battlemesh Wiki:

http://battlemesh.org/BattleMeshV8#Participant_Registration_and_Fee

Spread the Word
===

Feel free to spread the word by forwarding this mail to all lists /
people that might be interested in it. Blogging about the event is more
than welcome, and if you do so, please add a ping-back to the wiki page:

http://battlemesh.org/BattleMeshV8

Contact
===

* Web: http://battlemesh.org/BattleMeshV8
* Email: http://ml.ninux.org/mailman/listinfo/battlemesh
* IRC: irc.freenode.net #battlemesh


Kind regards,
Musti
___
Battlemesh mailing list
battlem...@ml.ninux.org
http://ml.ninux.org/mailman/listinfo/battlemesh
-

signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Nguyễn Hồng Quân
Hi

On Wed, Mar 25, 2015 at 12:33 AM, Sami Olmari s...@olmari.fi wrote:

 Why not use ./scripts/env with your own batchfile? It has all the things
 you need for multiple hardware configurations on single buildroot... only
 thing you need to do is automate it with bash-script etc...

I tried the script:

$ ./scripts/env
Usage: ./scripts/env [options] command [arguments]
Commands:
help  This help text
list  List environments
clear Delete all environment and revert to flat config/files
new nameCreate a new environment
switch name Switch to a different environment
delete name Delete an environment
rename newname  Rename the current environment
diff  Show differences between current state and environment
save  Save your changes to the environment
revertRevert your changes since last save

Options:


and I don't understand what it can do :-(

-- 
Quân
***
* Nguyễn Hồng Quân*
* Y!M: ng_hquan_vn*
* Facebook: ng.hong.quan  *
* Web: quan.hoabinh.vn*
***
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Joseph Marlin
If I understand your question correctly, I think you'll find the default config 
files in: target/linux/your_architecture_here/base-files/etc/config/

Joseph Marlin

- Original Message -
From: Nguyễn Hồng Quân ng.hong.q...@gmail.com
To: Christian Schoenebeck christian.schoeneb...@gmail.com
Cc: openwrt-devel@lists.openwrt.org
Sent: Tuesday, March 24, 2015 12:14:32 PM
Subject: Re: [OpenWrt-Devel] Dynamically generate custom files before   
building?

Hi 

What I mean is each target device will have its own default config files. I'm 
thinking about /etc/config/network and /etc/config/wireless. 

I want to dynamically generate the custom files of those network, wireless 
and place in files/ folder. I want to find the default files, modify it and 
copy to files/ folder. The modification will be set SSID, set wireless 
password... Those actions are done by script. 

The problem is I don't know where those default files are. 


On Tue, Mar 24, 2015 at 12:11 PM, Christian Schoenebeck  
christian.schoeneb...@gmail.com  wrote: 


For me a shell script is doing the job. Calling parameter is the target. 
I use a separate configuration directory beside building directory. 
I copy the correct files for the target into the files directory 
and the correct .config into building directory 
and then call make. All inside the script. 

If I cannot know where those default are. I may have to use this approach. 

Thank nam228, when I look into the Makefile, I see it mentions target folder. 
This may be a hint to look for. 

-- 
Quân 
*** 
* Nguyễn Hồng Quân * 
* Y!M: ng_hquan_vn * 
* Facebook: ng.hong.quan * 
* Web: quan.hoabinh.vn * 
*** 

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Nguyễn Hồng Quân
Thank Jean-Michel

Your script has many valuable information

On Wed, Mar 25, 2015 at 12:11 AM, Jean-Michel Pouré - GOOZE 
jmpo...@gooze.eu wrote:

  I think you should try to modify openwrt/Makefile
  Add your own script  for target devices.

 I am thinking about moving to a Makefile also.

 Currently, my scripts look like this one :
 *
 #git clone git://git.openwrt.org/openwrt.git openwrt-ar71xx
 cd openwrt-ar71xx

 #echo make dirclean
 #make dirclean

 echo git checkout
 git checkout master
 git pull

 echo updating feeds
 ./scripts/feeds update -a
 ./scripts/feeds install luci
 ./scripts/feeds install luci-proto-ipv6

 echo make defconfig
 rm -f .config
 echo  .config 'CONFIG_TARGET_ar71xx_generic_TLWR841=y'
 echo  .config 'CONFIG_PACKAGE_luci=y'
 echo  .config 'CONFIG_PACKAGE_luci-proto-ipv6=y'

 make defconfig

 echo compiling
 make -j 5
 *

 Next thing I would like to test is create custom targets. I am not very
 sure how to work. But basically, can define
 CONFIG_TARGET_ar71xx_generic_TLWR841_myown

 I read on the wiki there was also the ability to compile all package and
 then use image builder to quickly build custom installers.

 At one point, if you need to initialize dozens of routers and APs, you
 probably want to use image builder.


About image builder, the wiki
http://wiki.openwrt.org/doc/howto/obtain.firmware.generate

*Image Generator* is the program that creates the OpenWrt firmware image
file. In the process of compiling OpenWrt
http://wiki.openwrt.org/doc/howto/build, *Image Generator* is coercively
created (compiled), because it is needed to eventually create the image
file. It is located in /openwrt/trunk/xxx and you can use it, to create
more image-files from the packages you obtained during compilation.

but I don't know what is xxx and also cannot find the trunk folder.
Could you please tell me where it is?
-- 
Quân
***
* Nguyễn Hồng Quân*
* Y!M: ng_hquan_vn*
* Facebook: ng.hong.quan  *
* Web: quan.hoabinh.vn*
***
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Nguyễn Hồng Quân
Hi

What I mean is each target device will have its own default config files.
I'm thinking about /etc/config/network and /etc/config/wireless.

I want to dynamically generate the custom files of those network,
wireless and place in files/ folder. I want to find the default files,
modify it and copy to files/ folder. The modification will be set SSID, set
wireless password... Those actions are done by script.

The problem is I don't know where those default files are.


On Tue, Mar 24, 2015 at 12:11 PM, Christian Schoenebeck 
christian.schoeneb...@gmail.com wrote:

 For me a shell script is doing the job. Calling parameter is the target.
 I use a separate configuration directory beside building directory.
 I copy the correct files for the target into the files directory
 and the correct .config into building directory
 and then call make. All inside the script.


If I cannot know where those default are. I may have to use this approach.

Thank nam228, when I look into the Makefile, I see it mentions target
folder. This may be a hint to look for.

-- 
Quân
***
* Nguyễn Hồng Quân*
* Y!M: ng_hquan_vn*
* Facebook: ng.hong.quan  *
* Web: quan.hoabinh.vn*
***
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Dynamically generate custom files before building?

2015-03-24 Thread Sami Olmari
Why not use ./scripts/env with your own batchfile? It has all the things
you need for multiple hardware configurations on single buildroot... only
thing you need to do is automate it with bash-script etc...

Sami Olmari
On Mar 24, 2015 6:15 PM, Nguyễn Hồng Quân ng.hong.q...@gmail.com wrote:

 Hi

 What I mean is each target device will have its own default config files.
 I'm thinking about /etc/config/network and /etc/config/wireless.

 I want to dynamically generate the custom files of those network,
 wireless and place in files/ folder. I want to find the default files,
 modify it and copy to files/ folder. The modification will be set SSID, set
 wireless password... Those actions are done by script.

 The problem is I don't know where those default files are.


 On Tue, Mar 24, 2015 at 12:11 PM, Christian Schoenebeck 
 christian.schoeneb...@gmail.com wrote:

 For me a shell script is doing the job. Calling parameter is the target.
 I use a separate configuration directory beside building directory.
 I copy the correct files for the target into the files directory
 and the correct .config into building directory
 and then call make. All inside the script.


 If I cannot know where those default are. I may have to use this approach.

 Thank nam228, when I look into the Makefile, I see it mentions target
 folder. This may be a hint to look for.

 --
 Quân
 ***
 * Nguyễn Hồng Quân*
 * Y!M: ng_hquan_vn*
 * Facebook: ng.hong.quan  *
 * Web: quan.hoabinh.vn*
 ***

 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] openwrt dhcp question

2015-03-24 Thread 英德
hi dear 


my 7620N router


(local net) uplink --wan(router) 
pc --lan (router)


if we start router, my pc get local net ip address.  (local net has dhcp server)
pc shuld get lan IP


now ,i thank ,  when router start ,i shutdown wan,or pill down the phy 


what can i do?


or aother way ?

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel