Re: Where can I find a list of error codes in smtpd?

2014-01-31 Thread Gilles Chehade
On Thu, Jan 30, 2014 at 08:24:28AM -0800, Johan Beisser wrote:
 I feel like a bit of a jackass for the response.
 
 Check smtpd/smtp_session.c
 
 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/smtpd/smtp_session.c?rev=1.192
 

We have implemented Enhanced Status Codes which should be committed to
OpenBSD very soon too


-- 
Gilles Chehade

https://www.poolp.org  @poolpOrg



Re: dhclient

2014-01-31 Thread Remi Locherer

Quoting Holger Glaess gla...@glaessixs.de:


Am 30.01.2014 13:10, schrieb Giancarlo Razzolini:

Em 29-01-2014 18:13, Holger Glaess escreveu:

hi

i try to setup and multipath configuration with 2 line provider

1 cable with dhcp(client)
1 with pppoe

just dynamic ips.

the pppoe config create well the new default route with -math
but dhclient dont.

[snip pppoe config]

inet 0.0.0.0 255.255.255.255 NONE \
pppoedev msk0 authproto pap \
authname 'bla@blub' authkey 'blub' up
dest 0.0.0.1
!/sbin/route add -mpath default -ifp pppoe0 0.0.0.1

[/snip pppoe config]


after a couple of days i found that the dhclient not use the
dhclient-script since 5.3 anymore.


so how can i setup the -math option at the dhclient config ?


or it is possible to add some lines in dhclient that he check the
sysctl and , if net.inet.ip.multipath=1 ,
he add the default route with ( for ) multipathing.






holger


Check if your dhcp server always gives you the same router ip address.
If so, you can tweak with your dhclient.conf to reject and not ask for
routers, and then set it up manually as you do in your hostname.pppoe0.
And you can always run a script that is run after the dhcp negotiation,
looks for the gateway related entry, deletes it and then re-adds it with
the mpath modifier. There are a lot of options in this regard.

Cheers,



hi

shure , i can write a wrap around solution for the but this not the  
dynamic way like

pppoe or  dhcp  to get and set ips.

i'm not the C programmer but i think  it is not mutch work to add a  
solution in dhclient,

or as option to reaktivate the dhclient-script part.


holger


You can get an event and trigger your acctions as before with the  
dhclient-script
by watching changes in the routing table. Something like this might  
work for you:


# route -n monitor | { while read l; do [[ $l = RTM_NEWADDR* ]]   
echo do your stuff here; done }




Does this usb wireless adapter works?

2014-01-31 Thread C. L. Martinez
Hi all,

 I have installed and OpenBSD 5.4 amd64 host to act as a wifi AP (I
know it, it is not a good option to use a usb adapter for this, but It
is my only option).

 I would like to use this usb wireless adapter: AWUS036NHA
(http://www.alfa.com.tw/products_show.php?pc=34ps=20) but searching
openbsd's man pages I didn't find any info about it.

 As you can see, this usb adapter uses an Atheros AR9271 chip ...
Works under OpenBSD?? and Can I use it as a hostap under openbsd??

Thanks.



Re: Does this usb wireless adapter works?

2014-01-31 Thread Kirill Bychkov
On Fri, January 31, 2014 17:50, C. L. Martinez wrote:
 Hi all,

  I have installed and OpenBSD 5.4 amd64 host to act as a wifi AP (I
 know it, it is not a good option to use a usb adapter for this, but It
 is my only option).

  I would like to use this usb wireless adapter: AWUS036NHA
 (http://www.alfa.com.tw/products_show.php?pc=34ps=20) but searching
 openbsd's man pages I didn't find any info about it.

  As you can see, this usb adapter uses an Atheros AR9271 chip ...
 Works under OpenBSD?? and Can I use it as a hostap under openbsd??

 Thanks.


Hi. This one should be supported by athn driver.
From M\man athn:
 The following table summarizes the supported chips and their
 capabilities.
ChipsetSpectrum TxR:SBus
[snip]
 AR9271 2GHz 1x1:1USB 2.0
[snip]



Re: Does this usb wireless adapter works?

2014-01-31 Thread C. L. Martinez
On Fri, Jan 31, 2014 at 2:56 PM, Kirill Bychkov ki...@linklevel.net wrote:
 On Fri, January 31, 2014 17:50, C. L. Martinez wrote:
 Hi all,

  I have installed and OpenBSD 5.4 amd64 host to act as a wifi AP (I
 know it, it is not a good option to use a usb adapter for this, but It
 is my only option).

  I would like to use this usb wireless adapter: AWUS036NHA
 (http://www.alfa.com.tw/products_show.php?pc=34ps=20) but searching
 openbsd's man pages I didn't find any info about it.

  As you can see, this usb adapter uses an Atheros AR9271 chip ...
 Works under OpenBSD?? and Can I use it as a hostap under openbsd??

 Thanks.


 Hi. This one should be supported by athn driver.
 From M\man athn:
  The following table summarizes the supported chips and their
  capabilities.
 ChipsetSpectrum TxR:SBus
 [snip]
  AR9271 2GHz 1x1:1USB 2.0
 [snip]


oops .. that's my fault ... Many thanks Kirill ...



Remove default X rootweave

2014-01-31 Thread Alessandro Gallo
Hello misc@,

I'm trying to remove the default checkerboard background that is shipped
with the OpenBSD version of X.
During my research I stumbled across this:
http://openbsd.7691.n7.nabble.com/X-Window-System-settings-for-better-user-experience-and-security-td187453.html
Here a post from Matthieu Herrb suggests to add -br to /etc/X11/xdm/Xservers
to get rid of it. I changed the file and now it looks like this:
:0 local /usr/X11R6/bin/X -br :0 vt05
however after a reboot nothing changed.
I can successfully set the background under the xdm login form by
modifying /etc/X11/xdm/Xsetup_0,
but the rootweave is still shown for a couple of seconds before whatever is
present in Xsetup_0 is run.
Have I done something wrong?

Thank you and keep up the good work!



Re: Does this usb wireless adapter works?

2014-01-31 Thread C. L. Martinez
On Fri, Jan 31, 2014 at 3:26 PM, Josh Grosse j...@jggimi.homeip.net wrote:
 On 2014-01-31 08:50, C. L. Martinez wrote:

  As you can see, this usb adapter uses an Atheros AR9271 chip ...
 Works under OpenBSD?? and Can I use it as a hostap under openbsd??


 I'm replying off list because I don't know the status of a bug reported with
 a USB attached AR9271 with OpenBSD 5.3-release at the end of May:

 http://marc.info/?l=openbsd-bugsm=137001370631666w=2

 There may have been a fix, or this bug may not apply to the specific
 implementation of your chosen USB device.

 You might contact the original poster before making your acquisition.

Uhmm ... Thanks Josh for the info (I will try to contact him). Then,
any recommendation about some usb wifi adapter that works as a hostap
under openbsd without problems??



Can't ping CARP interface from CARP master box.

2014-01-31 Thread Laurent CARON
Hi,

I'm currently experiencing what I would call a strange behavior (maybe a
total config fuck up on my side, who knows...).

I'm basically having 2 boxes acting as a CARP gateway for my servers.

Adressing:
- Box 1 (bge1): 46.21.116.1
- Box 2 (bge1): 46.21.116.2
- CARP116:  46.21.116.5
- CARP0:213.215.29.254 (underlying interface is em1)

Problem: I can ping 46.21.116.5 either from the outside world or my
inside machines (even the machine not in carp master state), but not
from the carp master machine.

This sounds really odd to me since a nearly (bnx instead of bge +
different IP addresses) identical setup is not exhibiting this behavior.

carp0 doesn't exhibit this strange behavior (IE: I can ping
213.215.29.254 from the master box).

I either missed something obvious or...need to stop drugs...

Please note this behavior is consistent between 5.4 and 5.5-snapshot
from Jan 24th 2014.

Do any of you have a clue about this issue ?

Thanks



$ ping -c10 46.21.116.5
PING 46.21.116.5 (46.21.116.5): 56 data bytes
--- 46.21.116.5 ping statistics ---
10 packets transmitted, 0 packets received, 100.0% packet loss

$ bgpctl show fib 46.21.116.5
flags: * = valid, B = BGP, C = Connected, S = Static
   N = BGP Nexthop reachable via this route
   r = reject route, b = blackhole route

flags prio destination  gateway
*0 46.21.116.5/32   46.21.116.5


$ cat /etc/hostname.bge1
inet 46.21.116.1 255.255.255.240
inet6 2a02:27d0:116::1 112

$ cat /etc/hostname.carp116
inet 46.21.116.5 255.255.255.240 46.21.116.15 vhid 116 carpdev bge1 pass 
XX advbase 1 advskew 0
inet6 2a02:27d0:116::5 112 vhid 116 carpdev bge1 pass XX advbase 1 
advskew 0

$ cat /etc/hostname.carp0   



inet 213.215.29.254 255.255.254.0 213.215.29.255 vhid 1 carpdev em1 pass 
 advbase 1 advskew 0
inet6 2a02:27d0:0:::100 64 vhid 1 carpdev em1 pass  advbase 1 
advskew 0


$ netstat -rn | grep '^46.21.116.5' 
46.21.116.546.21.116.5UH 0   15 - 4 carp116

$ netstat -rn | grep '^213.215.29'
213.215.29.254 213.215.29.254 UH 00 - 4 carp0

$ ping -qc10 213.215.29.254
PING 213.215.29.254 (213.215.29.254): 56 data bytes
--- 213.215.29.254 ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.015/0.023/0.067/0.015 ms


$ ifconfig bge1
bge1: flags=8b43UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST mtu 
1500
lladdr 00:24:e8:58:49:64
priority: 0
media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
status: active
inet 46.21.116.1 netmask 0xfff0 broadcast 46.21.116.15
inet6 fe80::224:e8ff:fe58:4964%bge1 prefixlen 64 scopeid 0x6
inet6 2a02:27d0:116::1 prefixlen 112

$ ifconfig carp116
carp116: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:5e:00:01:74
priority: 0
carp: MASTER carpdev bge1 vhid 116 advbase 1 advskew 0
groups: carp
status: master
inet6 fe80::200:5eff:fe00:174%carp116 prefixlen 64 scopeid 0xb
inet 46.21.116.5 netmask 0xfff0 broadcast 46.21.116.15
inet6 2a02:27d0:116::5 prefixlen 112

$ ifconfig em1
em1: flags=8b43UP,BROADCAST,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST mtu 
1500
lladdr 00:15:17:be:d0:4c
priority: 0
media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
status: active
inet 213.215.28.1 netmask 0xfe00 broadcast 213.215.29.255
inet6 fe80::215:17ff:febe:d04c%em1 prefixlen 64 scopeid 0x2
inet6 2a02:27d0:0:::1 prefixlen 64

$ ifconfig carp0
carp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:00:5e:00:01:01
priority: 0
carp: MASTER carpdev em1 vhid 1 advbase 1 advskew 0
groups: carp
status: master
inet6 fe80::200:5eff:fe00:101%carp0 prefixlen 64 scopeid 0xa
inet 213.215.29.254 netmask 0xfe00 broadcast 213.215.29.255
inet6 2a02:27d0:0:::100 prefixlen 64


$ dmesg
OpenBSD 5.5-beta (GENERIC.MP) #279: Fri Jan 24 11:50:37 MST 2014
t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 4272553984 (4074MB)
avail mem = 4150603776 (3958MB)
warning: no entropy supplied by boot loader
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xcfb9c000 (55 entries)
bios0: vendor Dell Inc. version 1.3.0 date 08/15/2008
bios0: Dell Inc. PowerEdge R300
acpi0 at bios0: rev 2
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP APIC SPCR HPET MCFG WD__ SLIC ERST HEST BERT EINJ TCPA
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits

Re: Remove default X rootweave

2014-01-31 Thread David Coppa
Il giorno 31/gen/2014 17.49, Alessandro Gallo llgx...@gmail.com ha
scritto:

 Hello misc@,

 I'm trying to remove the default checkerboard background that is shipped
 with the OpenBSD version of X.
 During my research I stumbled across this:

http://openbsd.7691.n7.nabble.com/X-Window-System-settings-for-better-user-experience-and-security-td187453.html
 Here a post from Matthieu Herrb suggests to add -br to
/etc/X11/xdm/Xservers
 to get rid of it. I changed the file and now it looks like this:
 :0 local /usr/X11R6/bin/X -br :0 vt05
 however after a reboot nothing changed.
 I can successfully set the background under the xdm login form by
 modifying /etc/X11/xdm/Xsetup_0,
 but the rootweave is still shown for a couple of seconds before whatever
is
 present in Xsetup_0 is run.
 Have I done something wrong?

 Thank you and keep up the good work!

Use '-retard'.

Ciao,
David



Re: Does this usb wireless adapter works?

2014-01-31 Thread Josh Grosse

On 2014-01-31 11:55, C. L. Martinez wrote:
On Fri, Jan 31, 2014 at 3:26 PM, Josh Grosse j...@jggimi.homeip.net 
wrote:

On 2014-01-31 08:50, C. L. Martinez wrote:


 As you can see, this usb adapter uses an Atheros AR9271 chip ...
Works under OpenBSD?? and Can I use it as a hostap under openbsd??



I'm replying off list because I don't know the status of a bug 
reported with

a USB attached AR9271 with OpenBSD 5.3-release at the end of May:

http://marc.info/?l=openbsd-bugsm=137001370631666w=2

There may have been a fix, or this bug may not apply to the specific
implementation of your chosen USB device.

You might contact the original poster before making your acquisition.


Uhmm ... Thanks Josh for the info (I will try to contact him). Then,
any recommendation about some usb wifi adapter that works as a hostap
under openbsd without problems??


C.L.,

While I was slightly disconcerted to see my private message to you 
published to this list[1], when damien@ added AR9271 support in 2011, he 
did so with a Ubiquiti WifiStation EXT.  See 
http://marc.info/?l=openbsd-cvsm=129429890117455w=2 regarding it.


[1] I hadn't done due diligence by searching the CVS logs in detail, 
just a quick glance at the logs for src/sys/dev/usb/if_athn_usb.c for an 
obvious mention of a patch for firmware issues.  Like many people, I 
like to appear in public as if I know what I'm talking about ... even 
when I don't.  :)




Re: Remove default X rootweave

2014-01-31 Thread Alessandro Gallo
-retard worked like a charm, thank you!


2014-01-31 David Coppa dco...@gmail.com:


 Il giorno 31/gen/2014 17.49, Alessandro Gallo llgx...@gmail.com ha
 scritto:

 
  Hello misc@,
 
  I'm trying to remove the default checkerboard background that is shipped
  with the OpenBSD version of X.
  During my research I stumbled across this:
 
 http://openbsd.7691.n7.nabble.com/X-Window-System-settings-for-better-user-experience-and-security-td187453.html
  Here a post from Matthieu Herrb suggests to add -br to
 /etc/X11/xdm/Xservers
  to get rid of it. I changed the file and now it looks like this:
  :0 local /usr/X11R6/bin/X -br :0 vt05
  however after a reboot nothing changed.
  I can successfully set the background under the xdm login form by
  modifying /etc/X11/xdm/Xsetup_0,
  but the rootweave is still shown for a couple of seconds before whatever
 is
  present in Xsetup_0 is run.
  Have I done something wrong?
 
  Thank you and keep up the good work!

 Use '-retard'.

 Ciao,
 David



Re: Does this usb wireless adapter works?

2014-01-31 Thread Zé Loff
On Fri, Jan 31, 2014 at 01:50:44PM +, C. L. Martinez wrote:
  As you can see, this usb adapter uses an Atheros AR9271 chip ...
 Works under OpenBSD?? and Can I use it as a hostap under openbsd??

man athn shows that AR9271 is supported, and the driver can operate on
hostap mode, so I'd say yes...



Re: Remove default X rootweave

2014-01-31 Thread Adam Jensen
On Fri, 31 Jan 2014 17:47:59 +0100
Alessandro Gallo llgx...@gmail.com wrote:

 I'm trying to remove the default checkerboard background that is
 shipped with the OpenBSD version of X.
 During my research I stumbled across this:

http://openbsd.7691.n7.nabble.com/X-Window-System-settings-for-better-user-ex
perience-and-security-td187453.html
 Here a post from Matthieu Herrb suggests to add -br
 to /etc/X11/xdm/Xservers to get rid of it. I changed the file and now
 it looks like this: :0 local /usr/X11R6/bin/X -br :0 vt05
 however after a reboot nothing changed.
 I can successfully set the background under the xdm login form by
 modifying /etc/X11/xdm/Xsetup_0,
 but the rootweave is still shown for a couple of seconds before
 whatever is present in Xsetup_0 is run.
 Have I done something wrong?


I would also like to see a convenient, maintainable method to make this
little tweak. It's weird that this topic seems to provoke the bully-boy
brigade.

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: Does this usb wireless adapter works?

2014-01-31 Thread Alexander Pakhomov
No, it doesn't.
It crashes kernel once a day and deadly hangs till reboot every 30 min. 
I've send a bug report, but nobody cares.
I use RTL8192CU. It crashes kernel once a month.

31.01.2014, 22:01, Zé Loff zel...@zeloff.org:
 On Fri, Jan 31, 2014 at 01:50:44PM +, C. L. Martinez wrote:

   As you can see, this usb adapter uses an Atheros AR9271 chip ...
  Works under OpenBSD?? and Can I use it as a hostap under openbsd??

 man athn shows that AR9271 is supported, and the driver can operate on
 hostap mode, so I'd say yes...



Cisco routers

2014-01-31 Thread Matt M
This may not be the most appropriate place to ask, but I figured a lot of
you are using Cisco on your networks.

I am beginning to study for the CCNA and I want to purchase at least one
Cisco router and a switch for a home lab. I don't want to spend a lot of
money unnecessarily, and have been looking at the 2600 routers. Since I
don't know anything about Cisco hardware, I don't know if this is too old,
if it still applies in the industry, what I might be lacking in the IOS and
the hardware capabilities, etc.

What would you guys recommend for a starter lab that will give me what I
need to apply to real-world networks?



Re: Cisco routers

2014-01-31 Thread Holger Glaess

Am 31.01.2014 20:44, schrieb Matt M:

This may not be the most appropriate place to ask, but I figured a lot of
you are using Cisco on your networks.

I am beginning to study for the CCNA and I want to purchase at least one
Cisco router and a switch for a home lab. I don't want to spend a lot of
money unnecessarily, and have been looking at the 2600 routers. Since I
don't know anything about Cisco hardware, I don't know if this is too old,
if it still applies in the industry, what I might be lacking in the IOS and
the hardware capabilities, etc.

What would you guys recommend for a starter lab that will give me what I
need to apply to real-world networks?


hi


dont wast your mony for old cisco hardware.

everything what you need is the gns3 - www.gns3.net.


and , maybe , the cisco packettracer.


i finish allready the ccna with this tools completly and i use these
tools for the ccnp certification too.


holger



Re: Cisco routers

2014-01-31 Thread Dag Richards

On 1/31/14 11:59 AM, Holger Glaess wrote:

Am 31.01.2014 20:44, schrieb Matt M:

This may not be the most appropriate place to ask, but I figured a lot of
you are using Cisco on your networks.

I am beginning to study for the CCNA and I want to purchase at least one
Cisco router and a switch for a home lab. I don't want to spend a lot of
money unnecessarily, and have been looking at the 2600 routers. Since I
don't know anything about Cisco hardware, I don't know if this is too
old,
if it still applies in the industry, what I might be lacking in the
IOS and
the hardware capabilities, etc.

What would you guys recommend for a starter lab that will give me what I
need to apply to real-world networks?


hi


dont wast your mony for old cisco hardware.

everything what you need is the gns3 - www.gns3.net.


and , maybe , the cisco packettracer.


i finish allready the ccna with this tools completly and i use these
tools for the ccnp certification too.


holger



Holger is correct.

Packet Tracer is the best tool for  the CCNA level training.

To replicate the labs you need you would need a couple of switches and 
maybe as many as 4 routers.


Cisco Academies use Packet Tracer almost exclusively for the training.
Everything you can get tested on can be done there.

You can find it for download on web in various places, though it is 
_supposed_ to be restricted to students at a Cisco Academy.



GNS3 is great, though for now you can't do IOS switches there.
People will tell you there are work arounds, and there are.

But if your objectivee is to train for and pass your CCNA, Packet Tracer 
is your friend.

--

IS-IS sleeps.
BGP peers are quiet.
Something must be wrong.



The unknown in i386-unknown-openbsd5.4

2014-01-31 Thread Adam Jensen
I see the string i386-unknown-openbsd5.4 in various places throughout
my system. What does the unknown part of this string refer to and is
there a canonical way to set it to something more meaningful?

Thanks!



Re: The unknown in i386-unknown-openbsd5.4

2014-01-31 Thread Ted Unangst
On Fri, Jan 31, 2014 at 18:18, Adam Jensen wrote:
 I see the string i386-unknown-openbsd5.4 in various places throughout
 my system. What does the unknown part of this string refer to and is
 there a canonical way to set it to something more meaningful?

It means nothing. 900 years ago somebody thought adding a company
field to the cpu-company-os triplet used by gnu configure was a good
idea, but you can't change it without breaking everything.



Re: The unknown in i386-unknown-openbsd5.4

2014-01-31 Thread Christian Weisgerber
Adam Jensen han...@riseup.net wrote:

 I see the string i386-unknown-openbsd5.4 in various places throughout
 my system. What does the unknown part of this string refer to and is
 there a canonical way to set it to something more meaningful?

It is largely meaningless.  Historically, it was used to distinguish
different platforms that used the same CPU; m68k-sun vs. m68k-hp300
or such.  For operating systems that have the same userland on all
machines with the same CPU architecture, this middle name is
redundant.  You can change it by calling GNU configure scripts with
a different configure target name.

FreeBSD is more playful: It has ${ARCH}-portbld-freebsd${OSREL} in
its ports tree and configures gdb with ${TARGET_ARCH}-marcel-freebsd,
because Marcel Moolenaar did the import work.

-- 
Christian naddy Weisgerber  na...@mips.inka.de



They are watching you

2014-01-31 Thread Christian Weisgerber
http://www.cbc.ca/news/politics/csec-used-airport-wi-fi-to-track-canadian-travellers-edward-snowden-documents-1.2517881

If you didn't know already, this is your cue to look up ifconfig(8)'s
lladdr random.

-- 
Christian naddy Weisgerber  na...@mips.inka.de



Re: They are watching you

2014-01-31 Thread patrick keshishian
not sure how it is in canada, but traveling out of the us, you are essentially 
subjected to a physical exam. tracking my mac address is least of my worries.

--patrick

 On Jan 31, 2014, at 17:59, na...@mips.inka.de (Christian Weisgerber) wrote:
 
 http://www.cbc.ca/news/politics/csec-used-airport-wi-fi-to-track-canadian-travellers-edward-snowden-documents-1.2517881
 
 If you didn't know already, this is your cue to look up ifconfig(8)'s
 lladdr random.
 
 -- 
 Christian naddy Weisgerber  na...@mips.inka.de