Re: [OpenWrt-Devel] Maintaining multiple Samba version

2011-11-30 Thread Maarten Bezemer
On Tuesday 29 November 2011 17:21:09 Oliver Ertl wrote:

  - net/samba2 - ancient version
Is this version still usable when looking at support on different OSes, or is 
it just too old? If so, one might argue to drop this package.

  - net/samba30x - the 3.0.37 version
  - net/samba36x - the latest version probably not stripped down
Keeping/adding these two seems reasonable, so the user is able to choose:
- an optimized small (but older) version
- or choose the newest most feature rich one supporting up-to-date protocols

Greetings,
  Maarten
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Changeset 29355 - OpenVPN option enable and Luci

2011-11-30 Thread Jo-Philipp Wich
Current LuCI covers both backfire and trunk. Applying your fix will
break backfire, not applying your fix will break trunk. Merging current
OpenVPN to Backfire will break existing configs, just accepting enable
and enabled breaks nothing - easy choice.

~ Jow
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] hostname setting and network-hostnames are of no consequence

2011-11-30 Thread Jo-Philipp Wich
Am 30.11.11 06:28, schrieb i iordanov:
 This is the last one for now! I hope I haven't been too annoying! :)
 
 1) Setting the hostname of the router to anything does not actually
 add an entry to /etc/hosts. This is a problem if one expects the
 hostname to resolve to something, and on OpenWRT it does not resolve
 to anything at all!

And to waht should it be set? That lan interface? What if there are two,
three, for lan interfaces? All interfaces? What about ones with dynamic
IP? /etc/hosts would have to be rewritten on every interface state
change, not desirable. This is most likely a wontfix candidate.


 2) Also adding entries to Network-Hostnames does not add entries to
 /etc/hosts either, the only consequence are entries in
 /etc/config/dhcp (which also seems a bit out of place, given that the
 hostname is not being added in the DHCP/DNS tab).

Why should it? If you want /etc/hosts, use /etc/hosts.


~ Jow
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] hostname setting and network-hostnames are of no consequence

2011-11-30 Thread i iordanov
Hi Jow,

On Wed, Nov 30, 2011 at 5:49 AM, Jo-Philipp Wich x...@subsignal.org wrote:
 And to waht should it be set? That lan interface? What if there are two,
 three, for lan interfaces? All interfaces? What about ones with dynamic
 IP? /etc/hosts would have to be rewritten on every interface state
 change, not desirable. This is most likely a wontfix candidate.

I would set it to say 127.0.1.1 like Ubuntu sets it. Isn't that a
reasonable solution?

 Why should it? If you want /etc/hosts, use /etc/hosts.

Well, just judging by the name of the tab (Hostnames), I thought you
are basically adding hosts to /etc/hosts. What is the function of this
tab then? If it is meant to name DHCP clients, isn't it made redundant
by the static leases section of the DNS/DHCP section?

Cheers!
Iordan

-- 
The conscious mind has only one thread of execution.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] hostname setting and network-hostnames are of no consequence

2011-11-30 Thread i iordanov
Hi Jow,

On Wed, Nov 30, 2011 at 5:49 AM, Jo-Philipp Wich x...@subsignal.org wrote:
 And to waht should it be set? That lan interface? What if there are two,
 three, for lan interfaces? All interfaces? What about ones with dynamic
 IP? /etc/hosts would have to be rewritten on every interface state
 change, not desirable. This is most likely a wontfix candidate.

Just to clarify why the hostname not resolving to an address was
brought to my attention. Asterisk complains bitterly that it cannot
resolve the hostname, but it still operates. I can see how some
application may not work outright, or a future version of Asterisk may
stop working as a result of this. However, if the hostname not
resolving is not in violation of any RFCs, and is generally an
acceptable policy, then you can call it nofix :).

Iordan

-- 
The conscious mind has only one thread of execution.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] missing CA certs

2011-11-30 Thread i iordanov
Hello,

Does anybody know if there is a package (like Debian's ca-certificates
package) that installs CA certs to a OpenWRT?

Cheers!
Iordan

-- 
The conscious mind has only one thread of execution.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] syfs and gpiolib support for atheros platforms (updated)

2011-11-30 Thread John Crispin
On 29/11/11 08:01, Marek Lindner wrote:
 
 Hey,
 
 This patch is an update of http://patchwork.openwrt.org/patch/1452/

 The update makes sure that the kernel config actually enables gpio sysfs,
 not just provides support for it.  So, as well as the patch, it includes a
 diff on the default config for atheros.   The patch itself is unchanged,
 and has been tested by some other atheros users on the mailing list, this
 update just fixes the config.
 
 I just tested your patch on my AR2315 - it works great!
 Is there an I like this button somewhere ?  ;-)
 
 Cheers,
 Marek
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel
 

Hi,

the patch is essentially fine, however there are whitespace errors.

can you please use tabs for indenting and not spaces and then resend the
patch so i can merge it ?

John


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


Re: [OpenWrt-Devel] Changeset 29355 - OpenVPN option enable and Luci

2011-11-30 Thread Sven Roederer
The changelog stats:
r29167 | nico | 2011-11-16 10:44:00
packages/openvpn: use new service functions, change 'enable' option to 
'enabled' like most other services are using

So the cause is more cosmetic / consistency of options.


Am Mittwoch, 30. November 2011 schrieb Philip Prindeville:
 I agree.
 
 Having the same option represented 2 different ways can break a lot of
 stuff... and it's just confusing.
 
 Why exactly did it need to be changed?
 


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


Re: [OpenWrt-Devel] Changeset 29355 - OpenVPN option enable and Luci

2011-11-30 Thread Sven Roederer
So maybe the question is: is the change of the option required or should 
we stay at 'enable'?

Sven


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


Re: [OpenWrt-Devel] CONFIG_EXTERNAL_KERNEL_TREE not taken in account

2011-11-30 Thread Florian Fainelli
Hi,

Le mardi 29 novembre 2011 17:23:14, Jo-Philipp Wich a écrit :
 Hi.
 
 You must pick the target which matches your board, it is used across
 various placing, ranging from optimization flag settings to package
 architecture fields. The correct one for the LifeBox would be the
 brcm63xx target.

Not all Livebox are based on Broadcom BCM63xx, so in that case he would need 
to create a new one, e.g: fusiv.

Thomas, you know that you need a toolchain which does not emit any patented 
MIPS instructions to work on Lexra/Fusiv CPUs, right?


 
 As far as I can see it in my local test it does indeed build the
 external kernel, but applies the version from target/linux/$arch
 /Makefile to it.
 
 Example:
 
 $ cat
 /home/jow/devel/openwrt/trunk/build_dir/linux-brcm63xx/linux-2.6.39.4/00-R
 EADME-FT.txt
 
 To build the linux kernel, extract the archive, and cd
 into linux-2.6.15, then run the following commands:
 
 export PATH=/path/to/mips-linux-uclibc/bin:${PATH}
 mkdir build-dir
 cd build-dir
 cp ../.config .
 mkdir -p include/linux
 cp ../include/linux/autoconf.h include/linux
 make -C .. O=$(pwd)
 make -C .. O=$(pwd) INSTALL_MOD_PATH=$(pwd)/modules modules_install
 mips-linux-uclibc-objcopy -O binary vmlinux vmlinuz
 
 The resulting kernel is the file vmlinuz, to be found in
 the directory build-dir. The modules will be found in the
 modules/ sub-directory.
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/mailman/listinfo/openwrt-devel

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


[OpenWrt-Devel] [PATCH] sslh: Bump to v1.10

2011-11-30 Thread Jonathan McCrohan
This patch bumps the sslh package to v1.10.

This update brings the following changes:

* Improved IPv4/IPv6 interoperability
* XMPP support

Tested and working on ar71xx.


Signed-off by: Jonathan McCrohan jmccro...@gmail.com

diff --git a/net/sslh/Makefile b/net/sslh/Makefile
index 3703f90..58e90c2 100644
--- a/net/sslh/Makefile
+++ b/net/sslh/Makefile
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=sslh
-PKG_VERSION:=1.9
-PKG_RELEASE:=2
+PKG_VERSION:=1.10
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://rutschle.net/tech/
-PKG_MD5SUM:=1c0193853ef35f80e3e4b1a744832cd1
+PKG_MD5SUM:=bc34e9a4770d634633e70589c72708cc
 
 include $(INCLUDE_DIR)/package.mk
 
diff --git a/net/sslh/files/sslh.config b/net/sslh/files/sslh.config
index e4a21d1..07ed02b 100644
--- a/net/sslh/files/sslh.config
+++ b/net/sslh/files/sslh.config
@@ -19,6 +19,9 @@ config 'sslh' 'default'
# tinc defaults to 'localhost:655'
# --tinc tinchost:tincport
option 'tinc' ''
+   # xmpp defaults to 'localhost:5222'
+   # --xmpp xmpphost:xmppport
+   option 'xmpp' ''
# timeout (for ssh, then ssl is assumed) defaults to 2
# -t
option 'timeout' ''
diff --git a/net/sslh/files/sslh.init b/net/sslh/files/sslh.init
index b30f048..5ada97b 100644
--- a/net/sslh/files/sslh.init
+++ b/net/sslh/files/sslh.init
@@ -31,10 +31,13 @@ start_instance() {
# E) tinc parameter
 config_get val ${section} tinc
 [ -n ${val} ]  append args --tinc ${val}
-   # F) timeout (before a connection is considered to be SSH)
+   # F) xmpp parameter
+   config_get val ${section} xmpp
+   [ -n ${val} ]  append args --xmpp ${val}
+   # G) timeout (before a connection is considered to be SSH)
config_get val ${section} timeout
[ -n ${val} ]  append args -t ${val}
-   # G) verbose parameter
+   # H) verbose parameter
local verbosed
config_get_bool verbosed ${section} verbose 0
[ ${verbosed} -ne 0 ]  append args -v
diff --git a/net/sslh/patches/001-no_sslh_select.patch 
b/net/sslh/patches/001-no_sslh_select.patch
index 9dd4ef6..a7ba881 100644
--- a/net/sslh/patches/001-no_sslh_select.patch
+++ b/net/sslh/patches/001-no_sslh_select.patch
@@ -1,6 +1,6 @@
 --- a/Makefile
 +++ b/Makefile
-@@ -27,16 +27,12 @@
+@@ -32,16 +32,12 @@ all: sslh $(MAN) echosrv
$(CC) $(CFLAGS) -D'VERSION=$(VERSION)' -c $
  
  
@@ -9,21 +9,21 @@
  
  sslh-fork: $(OBJS) sslh-fork.o Makefile common.h
$(CC) $(CFLAGS) -D'VERSION=$(VERSION)' -o sslh-fork sslh-fork.o $(OBJS) 
$(LIBS)
-   strip sslh-fork
+   #strip sslh-fork
  
 -sslh-select: $(OBJS) sslh-select.o Makefile common.h 
 -  $(CC) $(CFLAGS) -D'VERSION=$(VERSION)' -o sslh-select sslh-select.o 
$(OBJS) $(LIBS)
--  strip sslh-select
+-  #strip sslh-select
 -
+ echosrv: $(OBJS) echosrv.o
+   $(CC) $(CFLAGS) -o echosrv echosrv.o common.o $(LIBS)
  
- $(MAN): sslh.pod Makefile
-   pod2man --section=8 --release=$(VERSION) --center=  sslh.pod | gzip 
-9 -  $(MAN)
-@@ -58,7 +54,7 @@
+@@ -65,7 +61,7 @@ uninstall:
update-rc.d sslh remove
  
  clean:
--  rm -f sslh-fork sslh-select $(MAN) *.o
-+  rm -f sslh-fork $(MAN) *.o
+-  rm -f sslh-fork sslh-select echosrv $(MAN) *.o *.gcov *.gcno *.gcda 
*.png *.html *.css *.info 
++  rm -f sslh-fork echosrv $(MAN) *.o *.gcov *.gcno *.gcda *.png *.html 
*.css *.info 
  
  tags:
ctags -T *.[ch]
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] sslh: Bump to v1.10

2011-11-30 Thread Jonathan McCrohan
Git decided not to remove a now empty file in that last patch.
This patch removes that file.


Signed-off by: Jonathan McCrohan jmccro...@gmail.com

diff --git a/net/sslh/patches/002-no_strip.patch 
b/net/sslh/patches/002-no_strip.patch
deleted file mode 100644
index 5ca74ee..000
--- a/net/sslh/patches/002-no_strip.patch
+++ /dev/null
@@ -1,10 +0,0 @@
 a/Makefile
-+++ b/Makefile
-@@ -31,7 +31,6 @@
- 
- sslh-fork: $(OBJS) sslh-fork.o Makefile common.h
-   $(CC) $(CFLAGS) -D'VERSION=$(VERSION)' -o sslh-fork sslh-fork.o $(OBJS) 
$(LIBS)
--  strip sslh-fork
- 
- sslh-select: $(OBJS) sslh-select.o Makefile common.h 
-   $(CC) $(CFLAGS) -D'VERSION=$(VERSION)' -o sslh-select sslh-select.o 
$(OBJS) $(LIBS)
-- 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 3/3] hostapd dynamic vlans

2011-11-30 Thread Ashkanull
I submitted the patches and my wireless config looks like :

/etc/config/wireless

config 'wifi-device' 'radio0'
option 'type' 'mac80211'
option 'channel' '11'
option 'macaddr' 'f4:ec:38:fc:11:c8'
option 'hwmode' '11ng'
option 'htmode' 'HT20'
list 'ht_capab' 'SHORT-GI-40'
list 'ht_capab' 'DSSS_CCK-40'
option 'txpower' '23'
option 'country' 'US'

config 'wifi-iface'
option 'device' 'radio0'
option 'network' 'lan'
option 'mode' 'ap'
option 'ssid' 'OpenWrt'
option 'auth_server' '192.168.1.104'
option 'auth_secret' 'testing123'
option 'encryption' 'wpa2+ccmp'
option 'vlan_enable' '2'

 I understood that making vlan enable 2 forces hostapd to reject
connection  if vlan assignment doesn't come from radius .


my radius sends access-accept but hostapd drops the connection and also no
br-vlan appears on ifconfig .
how can I work this out ?

openwrt r28943 with hostapd-2003
System Log :

 Sep  9 06:07:29 OpenWrt daemon.info hostapd: wlan0: STA 78:e4:00:6c:2f:eb
 IEEE 802.1X: authentication server did not include required VLAN ID in
 Access-Accept
 Sep  9 06:07:29 OpenWrt daemon.warne hostapd: wlan0: STA 78:e4:00:6c:2f:eb
 IEEE 802.1X: authentication failed - EAP type: 25 (PEAP)



freeradius -X output:


 [peap] Got tunneled reply RADIUS code 2
 Tunnel-Type:0 = VLAN
 Tunnel-Medium-Type:0 = IEEE-802
  Tunnel-Private-Group-Id:0 := 10
 MS-MPPE-Encryption-Policy = 0x0001
 MS-MPPE-Encryption-Types = 0x0006
  MS-MPPE-Send-Key = 0xfa4b6928402162dc75ca3c5d3633a544
 MS-MPPE-Recv-Key = 0xdbaf38647954a65f8ff3bd457640aa33
  EAP-Message = 0x03450004
 Message-Authenticator = 0x
 User-Name = ashkan
  [peap] Tunneled authentication was successful.
 [peap] SUCCESS
 ++[eap] returns handled
  Sending Access-Challenge of id 12 to 192.168.1.1 port 56950
 EAP-Message =
 0x0146002b1900170301002005105d3df33ceaaa611deed6ef7ebea0a52aa5a306448fc819ac6b864fb3
  Message-Authenticator = 0x
 State = 0x84bc4e3b83fa57e7caa19a8619269cb1
  Finished request 268.
 Going to the next request
 Waking up in 0.5 seconds.
  rad_recv: Access-Request packet from host 192.168.1.1 port 56950, id=13,
 length=199
 User-Name = ashkan
  NAS-Port = 1
 Called-Station-Id = F4-EC-38-FC-11-C8:OpenWrt
 Calling-Station-Id = 78-E4-00-6C-2F-EB
  Framed-MTU = 1400
 NAS-Port-Type = Wireless-802.11
 Connect-Info = CONNECT 54Mbps 802.11g
  EAP-Message =
 0x0246002b190017030100204569670443a923b680717450c026917c7fe46b678375ddf9bb4ee0fc34a5a81b
 State = 0x84bc4e3b83fa57e7caa19a8619269cb1
  Message-Authenticator = 0x24ef8ecd74b9236f51ff3dd17e4dc93c
 # Executing section authorize from file
 /etc/freeradius/sites-enabled/default
  +- entering group authorize {...}
 ++[preprocess] returns ok
 ++[chap] returns noop
  ++[mschap] returns noop
 ++[digest] returns noop
 [suffix] No '@' in User-Name = ashkan, looking up realm NULL
  [suffix] No such realm NULL
 ++[suffix] returns noop
 [eap] EAP packet type response id 70 length 43
  [eap] Continuing tunnel setup.
 ++[eap] returns ok
 Found Auth-Type = EAP
  # Executing group from file /etc/freeradius/sites-enabled/default
 +- entering group authenticate {...}
  [eap] Request found, released from the list
 [eap] EAP/peap
 [eap] processing type peap
  [peap] processing EAP-TLS
 [peap] eaptls_verify returned 7
 [peap] Done initial handshake
  [peap] eaptls_process returned 7
 [peap] EAPTLS_OK
 [peap] Session established.  Decoding tunneled attributes.
  [peap] Peap state send tlv success
 [peap] Received EAP-TLV response.
 [peap] Success
  [eap] Freeing handler
 ++[eap] returns ok
 # Executing section post-auth from file
 /etc/freeradius/sites-enabled/default
  +- entering group post-auth {...}
 ++[exec] returns noop
 Sending Access-Accept of id 13 to 192.168.1.1 port 56950
  MS-MPPE-Recv-Key =
 0x6398fd9d9561ea47fa64bf536de9c865b49d11ae9e40ad97653424747c433085
 MS-MPPE-Send-Key =
 0x1e5eefc46a70bb8704f9b8bf92eab52609af6e5c695a1e24fcedbe91f7ed2ec3
  EAP-Message = 0x03460004
 Message-Authenticator = 0x
 User-Name = ashkan
  Finished request 269.





.



On Mon, Jul 25, 2011 at 5:21 PM, Matthew Bowman mgbow...@gmx.com wrote:

 Sorry about the incorrect patches. This is a combined patch of the
 supporting files.

 --- a/package/hostapd/files/hostapd.sh  2011-07-25 14:05:21.0 +0300
 +++ b/package/hostapd/files/hostapd.sh  2011-07-25 16:44:00.0 +0300
 @@ -2,6 +2,7 @@
local var=$1
local vif=$2
local enc wpa_group_rekey wps_possible
 +   local vlan_enable vlan_file vlan_interface

config_get enc $vif encryption
config_get wpa_group_rekey $vif wpa_group_rekey
 @@ -93,6 +94,16 @@
append $var wpa_key_mgmt=WPA-EAP $N
append $var wpa_group_rekey=300 $N
append $var 

Re: [OpenWrt-Devel] [PATCH] ramips: enhance routine for getting MAC address from flash

2011-11-30 Thread Nerijus Baliunas
Hello,

I have a problem that all MAC addresses are 00:11:22:33:44:55 except wlan0,
which is correct. Should this patch help me? I added nbg-419n to the case 
line:
case $(ramips_board_name) in
bc2 | nbg-419n | nw718)
extract_and_set_mac factory 4 02:00:00:00:00:00

but still all MACs are 00:11:22:33:44:55.

Nerijus

On Fri, 25 Nov 2011 12:20:37 +0100 Daniel Golle dgo...@allnet.de wrote:

 Allow reading the Ethernet MAC address from different places in the firmware.
 
 Use parameters for partition name, offset and OR-mask, so support for more
 boards can be added easily.
 
 Signed-off-by: Daniel Golle dgo...@allnet.de
 
 Index: target/linux/ramips/base-files/lib/preinit/06_set_iface_mac
 ===
 --- target/linux/ramips/base-files/lib/preinit/06_set_iface_mac   
 (revision 29328)
 +++ target/linux/ramips/base-files/lib/preinit/06_set_iface_mac   
 (working copy)
 @@ -2,7 +2,7 @@
  # Copyright (C) 2011 OpenWrt.org
  #
  
 -nw718_set_mac() {
 +extract_and_set_mac() {
   local part
   local mac
  
 @@ -10,13 +10,13 @@
  
   . /etc/functions.sh
  
 - part=$(find_mtd_part factory)
 + part=$(find_mtd_part $1)
   [ -z $part ]  return
  
 - mac=$(dd bs=1 skip=4 count=6 if=$part 2/dev/null | maccalc bin2mac)
 + mac=$(dd bs=1 skip=$2 count=6 if=$part 2/dev/null | maccalc bin2mac)
   [ -z $mac ]  return
  
 - mac=$(maccalc or $mac 02:00:00:00:00:00)
 + mac=$(maccalc or $mac $3)
   ifconfig eth0 hw ether $mac 2/dev/null
  }
  
 @@ -24,9 +24,12 @@
   . /lib/ramips.sh
  
   case $(ramips_board_name) in
   bc2 | nw718)
 - nw718_set_mac
 + extract_and_set_mac factory 4 02:00:00:00:00:00
   ;;
 + hw550-3g)
 + extract_and_set_mac factory 40 00:00:00:00:00:00
 + ;;
   esac
  }

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