smtpd.conf(5) EXAMPLES ``relay via'' diff

2012-07-15 Thread MERIGHI Marcus
Index: smtpd.conf.5
===
RCS file: /cvs/src/usr.sbin/smtpd/smtpd.conf.5,v
retrieving revision 1.54
diff -u -r1.54 smtpd.conf.5
--- smtpd.conf.58 Jul 2012 17:17:48 -   1.54
+++ smtpd.conf.514 Jul 2012 11:32:49 -
@@ -424,7 +424,7 @@
 map aliases source db /etc/mail/aliases.db
 map secrets source db /etc/mail/secrets.db
 accept for local deliver to mbox
-accept for all relay via smtp.example.com tls auth secrets
+accept for all relay via tls+auth://smtp.example.com auth secrets
 .Ed
 .Pp
 In this second example,



Huawei E303

2012-07-15 Thread Andreas Bartelt

Hi,

I've got a Huawei E303 UMTS stick which doesn't work out of the box in 
current.


After adding the following patch, the E303 seems to be recognized:
# cvs diff -u usbdevs usbdevs.h usbdevs_data.h umsm.c 


Index: usbdevs
===
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.580
diff -u -r1.580 usbdevs
--- usbdevs 7 Jul 2012 17:59:03 -   1.580
+++ usbdevs 15 Jul 2012 14:14:59 -
@@ -2033,6 +2033,7 @@
 product HUAWEI K3765_INIT  0x1520  HUAWEI Mobile K3765 Initial
 product HUAWEI E173S   0x1c05  HUAWEI Mobile E173s
 product HUAWEI E173S_INIT  0x1c0b  HUAWEI Mobile E173s Initial
+product HUAWEI E3030x1f01  HUAWEI Mobile E303

 /* HUMAX products */
 product HUMAX PVRSMART 0x138c  PVR-SMART
Index: usbdevs.h
===
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.590
diff -u -r1.590 usbdevs.h
--- usbdevs.h   7 Jul 2012 17:59:44 -   1.590
+++ usbdevs.h   15 Jul 2012 14:14:59 -
@@ -2040,6 +2040,7 @@
 #defineUSB_PRODUCT_HUAWEI_K3765_INIT   0x1520  /* 
HUAWEI Mobile K3765 Initial */
 #defineUSB_PRODUCT_HUAWEI_E173S0x1c05  /* 
HUAWEI Mobile E173s */
 #defineUSB_PRODUCT_HUAWEI_E173S_INIT   0x1c0b  /* 
HUAWEI Mobile E173s Initial */
+#defineUSB_PRODUCT_HUAWEI_E303 0x1f01  /* 
HUAWEI Mobile E303 */


 /* HUMAX products */
 #defineUSB_PRODUCT_HUMAX_PVRSMART  0x138c  /* 
PVR-SMART */

Index: usbdevs_data.h
===
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.584
diff -u -r1.584 usbdevs_data.h
--- usbdevs_data.h  7 Jul 2012 17:59:45 -   1.584
+++ usbdevs_data.h  15 Jul 2012 14:15:00 -
@@ -4242,6 +4242,10 @@
HUAWEI Mobile E173s Initial,
},
{
+   USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E303,
+   HUAWEI Mobile E303,
+   },
+   {
USB_VENDOR_HUMAX, USB_PRODUCT_HUMAX_PVRSMART,
PVR-SMART,
},
Index: umsm.c
===
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.85
diff -u -r1.85 umsm.c
--- umsm.c  14 Jan 2012 10:26:11 -  1.85
+++ umsm.c  15 Jul 2012 14:15:00 -
@@ -138,6 +138,7 @@
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E182 }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E1820 }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E220 }, DEV_HUAWEI},
+   {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E303 }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E510 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E618 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_EM770W }, 0},

from dmesg after the patch:
umsm0 at uhub0 port 5 configuration 1 interface 0 HUAWEI HUAWEI HiLink 
rev 2.00/1.02 addr 2

umsm0 detached
umsm0 at uhub0 port 5 configuration 1 interface 0 HUAWEI HUAWEI HiLink 
rev 2.00/1.02 addr 2

ucom0 at umsm0
umsm1 at uhub0 port 5 configuration 1 interface 1 HUAWEI HUAWEI HiLink 
rev 2.00/1.02 addr 2

ucom1 at umsm1
umsm2 at uhub0 port 5 configuration 1 interface 2 HUAWEI HUAWEI HiLink 
rev 2.00/1.02 addr 2

ucom2 at umsm2

Unfortunately, I have no clue where to go from there. I'd like to 
connect to vodafone in Germany via UMTS, but I didn't find a 
/etc/ppp/peers/ and a corresponding chat script configuration in the 
archives which works for me.


Is anybody else using a similar setup?

Best Regards
Andreas



Re: Huawei E303

2012-07-15 Thread Paul Irofti
 Unfortunately, I have no clue where to go from there. I'd like to
 connect to vodafone in Germany via UMTS, but I didn't find a
 /etc/ppp/peers/ and a corresponding chat script configuration in the
 archives which works for me.
 
 Is anybody else using a similar setup?

I tried the same with Vodafone RO for quite a few months two years ago.
Bottom line is it doesn't work. 

I had the same problems two years ago. Tried to make the config work
with Vodafone RO and failed miserably. I can firmly say that those were
two months that I lost in vain.

What I would recommand is to stop wasting time now and only use that
modem on Windows with the applications provided by Vodafone.



Re: Huawei E303

2012-07-15 Thread Andreas Bartelt

On 07/15/12 16:53, Paul Irofti wrote:

Unfortunately, I have no clue where to go from there. I'd like to
connect to vodafone in Germany via UMTS, but I didn't find a
/etc/ppp/peers/ and a corresponding chat script configuration in the
archives which works for me.

Is anybody else using a similar setup?


I tried the same with Vodafone RO for quite a few months two years ago.
Bottom line is it doesn't work.

I had the same problems two years ago. Tried to make the config work
with Vodafone RO and failed miserably. I can firmly say that those were
two months that I lost in vain.

What I would recommand is to stop wasting time now and only use that
modem on Windows with the applications provided by Vodafone.



thanks for crushing my hope ;)

I would be fine with ANY 3G or 4G mobile ISP in Germany which works via 
umsm(4) on OpenBSD. Is there one?


Best Regards
Andreas



Re: Huawei E303

2012-07-15 Thread David Coppa
Il giorno 15/lug/2012 16:56, Paul Irofti p...@irofti.net ha scritto:

  Unfortunately, I have no clue where to go from there. I'd like to
  connect to vodafone in Germany via UMTS, but I didn't find a
  /etc/ppp/peers/ and a corresponding chat script configuration in the
  archives which works for me.
 
  Is anybody else using a similar setup?

 I tried the same with Vodafone RO for quite a few months two years ago.
 Bottom line is it doesn't work.

 I had the same problems two years ago. Tried to make the config work
 with Vodafone RO and failed miserably. I can firmly say that those were
 two months that I lost in vain.

 What I would recommand is to stop wasting time now and only use that
 modem on Windows with the applications provided by Vodafone.


Why?

I've used the setup described below with Vodafone Italia without problems
for years:

http://marc.info/?l=openbsd-miscm=128816834527997w=2



IPv6 toolkit v1.2

2012-07-15 Thread Fernando Gont
Folks,

FYI, we've released IPv6 toolkit v1.2: a set of IPv6 security
assessment tools that were produced as part of a project I carried out
on behalf of the UK CPNI. The toolkit compiles/runs on *BSD and Linux
(and probably on Mac OS, too).

The tarball for version 1.2 of the toolkit is available at:
http://www.si6networks.com/research/ipv6-toolkit-v1.2.tar.gz

Additionally, we have a git repository for the toolkit:
https://github.com/fgont/ipv6-toolkit.git

This toolkit can be employed to perform local IPv6 scans, assess a
number of security aspects of IPv6 implementations (such as
predictability of Fragment ID values), etc. It can also be employed to
play with IPv6 address resolution, SLAAC, etc.

Thanks!

Best regards,
-- 
Fernando Gont
e-mail: ferna...@gont.com.ar || fg...@si6networks.com
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1



Re: Huawei E303

2012-07-15 Thread David Coppa
Il giorno 15/lug/2012 17:40, David Coppa dco...@gmail.com ha scritto:


 Il giorno 15/lug/2012 16:56, Paul Irofti p...@irofti.net ha scritto:

 
   Unfortunately, I have no clue where to go from there. I'd like to
   connect to vodafone in Germany via UMTS, but I didn't find a
   /etc/ppp/peers/ and a corresponding chat script configuration in the
   archives which works for me.
  
   Is anybody else using a similar setup?
 
  I tried the same with Vodafone RO for quite a few months two years ago.
  Bottom line is it doesn't work.
 
  I had the same problems two years ago. Tried to make the config work
  with Vodafone RO and failed miserably. I can firmly say that those were
  two months that I lost in vain.
 
  What I would recommand is to stop wasting time now and only use that
  modem on Windows with the applications provided by Vodafone.
 

 Why?

 I've used the setup described below with Vodafone Italia without problems
for years:

 http://marc.info/?l=openbsd-miscm=128816834527997w=2

And you can always do a connection on MS Windows with the append to log
option enabled, and check what AT commands your modem/provider is using...



Re: smtpd.conf(5) EXAMPLES ``relay via'' diff

2012-07-15 Thread Gilles Chehade
On Sun, Jul 15, 2012 at 11:46:36AM +0200, MERIGHI Marcus wrote:
 Index: smtpd.conf.5
 ===
 RCS file: /cvs/src/usr.sbin/smtpd/smtpd.conf.5,v
 retrieving revision 1.54
 diff -u -r1.54 smtpd.conf.5
 --- smtpd.conf.5  8 Jul 2012 17:17:48 -   1.54
 +++ smtpd.conf.5  14 Jul 2012 11:32:49 -
 @@ -424,7 +424,7 @@
  map aliases source db /etc/mail/aliases.db
  map secrets source db /etc/mail/secrets.db
  accept for local deliver to mbox
 -accept for all relay via smtp.example.com tls auth secrets
 +accept for all relay via tls+auth://smtp.example.com auth secrets
  .Ed
  .Pp
  In this second example,
 

committed thanks

-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg



Re: ral(4) tx/prio queue fixes (was: rt2560 tx/prio queue fixes)

2012-07-15 Thread Stefan Sperling
On Fri, Jul 13, 2012 at 07:14:19PM +0200, Mark Kettenis wrote:
  Date: Fri, 13 Jul 2012 11:37:41 +0200
  From: Stefan Sperling s...@openbsd.org
  
  On Tue, Jul 10, 2012 at 05:56:29PM +0200, Stefan Sperling wrote:
   Updated version that includes similar fixes for the rt2661 variants.
   
   This seems to help soekris-based ral APs that get stuck with the OACTIVE
   flag set (see the flags line in ifconfig ral0 output when the AP stops
   responding) and then require ifconfig ral0 down up to recover.
   
   It would be great to get some more testing. Thanks!
  
  Anyone want to OK this?
 
 ok kettenis@

The part of this change which resets sc-sc_tx_timer in a different way
can cause spurious device timeouts, leading to unneccesary disassociations.
I'm seeing a device timeout almost every minute on a net5501 soekris with
the RT2561S (dev/ic/rt2661.c) ral variant.

It seems we should not always expect to see an empty queue in the TX
interrupt handler. Resetting the tx timer if one or more frames were
dequeued, rather than if all frames were dequeued, fixes the spurious
device timeouts for me and should still detect a card that got stuck.

Index: rt2560.c
===
RCS file: /cvs/src/sys/dev/ic/rt2560.c,v
retrieving revision 1.60
diff -u -p -r1.60 rt2560.c
--- rt2560.c13 Jul 2012 10:08:15 -  1.60
+++ rt2560.c15 Jul 2012 17:07:17 -
@@ -993,10 +993,9 @@ rt2560_tx_intr(struct rt2560_softc *sc)
 
sc-txq.queued--;
sc-txq.next = (sc-txq.next + 1) % RT2560_TX_RING_COUNT;
+   sc-sc_tx_timer = 0;
}
 
-   if (sc-txq.queued == 0  sc-prioq.queued == 0)
-   sc-sc_tx_timer = 0;
if (sc-txq.queued  RT2560_TX_RING_COUNT - 1) {
sc-sc_flags = ~RT2560_DATA_OACTIVE;
if (!(sc-sc_flags  (RT2560_DATA_OACTIVE|RT2560_PRIO_OACTIVE)))
Index: rt2661.c
===
RCS file: /cvs/src/sys/dev/ic/rt2661.c,v
retrieving revision 1.66
diff -u -p -r1.66 rt2661.c
--- rt2661.c13 Jul 2012 10:08:15 -  1.66
+++ rt2661.c15 Jul 2012 17:07:44 -
@@ -984,10 +984,9 @@ rt2661_tx_intr(struct rt2661_softc *sc)
txq-queued--;
if (++txq-stat = txq-count)  /* faster than % count */
txq-stat = 0;
+   sc-sc_tx_timer = 0;
}
 
-   if (sc-mgtq.queued == 0  sc-txq[0].queued == 0)
-   sc-sc_tx_timer = 0;
if (sc-mgtq.queued  RT2661_MGT_RING_COUNT 
sc-txq[0].queued  RT2661_TX_RING_COUNT - 1) {
if (sc-mgtq.queued  RT2661_MGT_RING_COUNT)



Re: Huawei E303

2012-07-15 Thread David Coppa
On Sun, Jul 15, 2012 at 6:00 PM, Paul Irofti p...@irofti.net wrote:
 On Sun, Jul 15, 2012 at 05:40:03PM +0200, David Coppa wrote:
 Il giorno 15/lug/2012 16:56, Paul Irofti p...@irofti.net ha scritto:
 
   Unfortunately, I have no clue where to go from there. I'd like to
   connect to vodafone in Germany via UMTS, but I didn't find a
   /etc/ppp/peers/ and a corresponding chat script configuration in the
   archives which works for me.
  
   Is anybody else using a similar setup?
 
  I tried the same with Vodafone RO for quite a few months two years ago.
  Bottom line is it doesn't work.
 
  I had the same problems two years ago. Tried to make the config work
  with Vodafone RO and failed miserably. I can firmly say that those were
  two months that I lost in vain.
 
  What I would recommand is to stop wasting time now and only use that
  modem on Windows with the applications provided by Vodafone.
 

 Why?

 I've used the setup described below with Vodafone Italia without problems
 for years:

 http://marc.info/?l=openbsd-miscm=128816834527997w=2

 That script didn't work for me. Couldn't authentificate.

 Maybe it will work for Germany.

Vodafone Italia has no authentication.