Re: L2TP VPN / pf

2014-02-26 Thread YASUOKA Masahiko
Hi, On Wed, 26 Feb 2014 16:32:34 -0800 "Paul B. Henson" wrote: > I currently have the following in pf.conf: > > - > pass quick proto { esp, ah } from any to any > pass in quick on em1 proto udp from any to 96.251.22.154 port {500, 4500, > 1701} keep state > set skip on enc0 > set skip on ppp

Re: Local routing issue when iked running

2014-02-26 Thread Josh
On Thu, Feb 27, 2014 at 11:00 AM, Stuart Henderson wrote: > > Try tcpdumping packets going over the ipsec tunnel, do you see those packets > which should be local actually being sent over the tunnel? If so, I don't have > an answer for this, but I've seen it myself, though only with manually > con

Re: NAT reliability in light of recent checksum changes

2014-02-26 Thread Richard Procter
On 27/02/2014, at 11:04 AM, Theo de Raadt wrote: > I believe you are posting cast aspersions on the pf efforts. Theo, I'll insist then that I think pf is a superior piece of code which I benefit from every day, and that Henning's efforts to simplify it are so very welcome in a world addicted to

Re: Local routing issue when iked running

2014-02-26 Thread Stuart Henderson
On 2014-02-26, Josh wrote: > Hi @misc, > > I am facing an issue between two boxes (box1 and box2) connected > through an IPsec tunnel. > They are both on the same subnet and both listen on port 22 (sshd running) > > When the ipsec tunnel is down and encap routes are flushed on both > boxes (ipsecc

L2TP VPN / pf

2014-02-26 Thread Paul B. Henson
I'm trying to get a L2TP VPN working using npppd; I think I'm most of the way there but packets just aren't quite flowing. I'm not sure why, but I think I might be missing something or misunderstanding something with pf. I've got ipsec=YES and isakmpd_flags="-K" in rc.conf.local, and /etc/ipsec.c

Re: NAT reliability in light of recent checksum changes

2014-02-26 Thread Theo de Raadt
> Again, it's not just me saying it: "...checksums are used by > higher layers to ensure that data was not corrupted in > intermediate routers or by the sending or receiving host. > The fact that checksums are typically the secondary level of > protection has often led to suggestions that checksums

Re: NAT reliability in light of recent checksum changes

2014-02-26 Thread Theo de Raadt
> On 24/02/2014, at 9:33 PM, Henning Brauer wrote: > > > * Richard Procter [2014-01-25 20:41]: > >> On 22/01/2014, at 7:19 PM, Henning Brauer wrote: > >>> * Richard Procter [2014-01-22 06:44]: > This fundamentally weakens its usefulness, though: a correct > checksum now implies only th

Re: NAT reliability in light of recent checksum changes

2014-02-26 Thread Richard Procter
On 24/02/2014, at 9:33 PM, Henning Brauer wrote: > * Richard Procter [2014-01-25 20:41]: >> On 22/01/2014, at 7:19 PM, Henning Brauer wrote: >>> * Richard Procter [2014-01-22 06:44]: This fundamentally weakens its usefulness, though: a correct checksum now implies only that the payload

Re: SMTP syntax (was: Content Filtering in smtpd(8) with amavisd-new)

2014-02-26 Thread Aaron Poffenberger
On Feb 26, 2014, at 1:15 PM, Claus Assmann wrote: > On Wed, Feb 26, 2014, Aaron Poffenberger wrote: > >> I tried that. If you telnet into smtpd to manually send an email and set >> "rcpt to: " you will receive a "553 Recipient address syntax > > That's invalid even if you gave a proper address.

Re: SMTP syntax (was: Content Filtering in smtpd(8) with amavisd-new)

2014-02-26 Thread Claus Assmann
On Wed, Feb 26, 2014, Aaron Poffenberger wrote: > I tried that. If you telnet into smtpd to manually send an email and set > "rcpt to: " you will receive a "553 Recipient address syntax That's invalid even if you gave a proper address. RFC 5321: RCPT TO: [ SP ] ... Since it has been

Re: Content Filtering in smtpd(8) with amavisd-new

2014-02-26 Thread Aaron Poffenberger
On Feb 26, 2014, at 11:51 AM, Ted Unangst wrote: > On Wed, Feb 26, 2014 at 11:30, Aaron Poffenberger wrote: >> When amavisd re-injected the email it was rejected by smtpd because "To: >> " is an invalid recipient. The solution, then, was to defer the >> "virtual > use "relay via": > >> # public

Re: Content Filtering in smtpd(8) with amavisd-new

2014-02-26 Thread Ted Unangst
On Wed, Feb 26, 2014 at 11:30, Aaron Poffenberger wrote: > When amavisd re-injected the email it was rejected by smtpd because "To: > " is an invalid recipient. The solution, then, was to defer the > "virtual use "relay via": > # public emails before content filtering > accept tagged default from

Content Filtering in smtpd(8) with amavisd-new

2014-02-26 Thread Aaron Poffenberger
I recently configured smptd to replace a postfix-based solution. smtpd(8) is a joy to work with. In ~four rules I had a working email server! My next goals was to get content filtering in place. I decided on amavisd-new with clamav and spamassassin. I couldn't find any tutorials for using amavisd

Local routing issue when iked running

2014-02-26 Thread Josh
Hi @misc, I am facing an issue between two boxes (box1 and box2) connected through an IPsec tunnel. They are both on the same subnet and both listen on port 22 (sshd running) When the ipsec tunnel is down and encap routes are flushed on both boxes (ipsecctl -F), performing a "telnet ip_of_box1 22

Re: Content filtering in smtpd(8)

2014-02-26 Thread Francesco Toscan
Hi Gilles, On Wed, Feb 26, 2014 at 11:37:47AM +0100, Gilles Chehade wrote: > On Wed, Feb 26, 2014 at 11:16:40AM +0100, Francesco Toscan wrote: > > Is this content filtering api documented anywhere? I found no mention in > > smtpd.conf(5) or smtpd(8) man pages. > > > > nope because we're still sta

Re: Content filtering in smtpd(8)

2014-02-26 Thread Gilles Chehade
On Wed, Feb 26, 2014 at 11:16:40AM +0100, Francesco Toscan wrote: > Hi, > Hi, > looking at GSOC2014 OpenBSD Foundation's idea list, I found a reference > to some "Perl and Python bindings" to smtpd's own content filtering > framework. > yup, experimental but fonctional stuff, not usable by !d

Content filtering in smtpd(8)

2014-02-26 Thread Francesco Toscan
Hi, looking at GSOC2014 OpenBSD Foundation's idea list, I found a reference to some "Perl and Python bindings" to smtpd's own content filtering framework. Is this content filtering api documented anywhere? I found no mention in smtpd.conf(5) or smtpd(8) man pages. I'd like to know whether this a

Re: ksh: expr 2147483648 / 2 = -1073741824 expected behavior or bug?

2014-02-26 Thread Janne Johansson
Not even when started with --posix, or with the env var POSIXLY_CORRECT. perhaps bash needs a --really-really-posix flag... 8-/ 2014-02-25 8:44 GMT+01:00 Dennis Davis : > On Tue, 25 Feb 2014, Ingo Schwarze wrote: > > > From: Ingo Schwarze > > To: Fabian Raetz > > Cc: misc@openbsd.org > > Date