Re: Weird errors during install.site

2016-07-28 Thread James Pole
> On 29/07/2016, at 12:59 AM, trondd wrote: > I do most everything in rc.firsttime. I think you're going to be better > off just moving your stuff to rc.firsttime rather than trying to > manipulate the rd environment. Is that really going to be easier than > copy/pasting lines out of a script? >

PKG_CACHE and recent snapshot

2016-07-28 Thread Daniel Melameth
While trying out the latest snapshot, I noticed that PKG_CACHE is ignored: # whoami root # echo $PKG_CACHE /root/packages # pkg_add -ivv wget Update candidates: quirks-2.241 -> quirks-2.241 quirks-2.241 signed on 2016-07-26T16:56:10Z No change in quirks-2.241 parsing wget-1.18 ... Running /usr/bin

Re: HTTPD location index issue

2016-07-28 Thread R0me0 ***
Solved location "/app/" { directory index index.php } location "/app/*.php" { fastcgi socket "/run/php-fpm.sock" } Thanks 2016-07-28 18:17 GMT-03:00 R0me0 *** : > Yes that's what I intend > > I noticed directory index grammar just works out of location grammar and I > cant setup more than one

Re: HTTPD location index issue

2016-07-28 Thread R0me0 ***
Yes that's what I intend I noticed directory index grammar just works out of location grammar and I cant setup more than one time 2016-07-28 18:00 GMT-03:00 Alexander Hall : > > > On July 28, 2016 10:33:04 PM GMT+02:00, R0me0 *** > wrote: > >Howdy ! > > > >I'm running OpenBSD 5.9 stable branc

Re: HTTPD location index issue

2016-07-28 Thread Alexander Hall
On July 28, 2016 10:33:04 PM GMT+02:00, R0me0 *** wrote: >Howdy ! > >I'm running OpenBSD 5.9 stable branch > >I can't setup two different locations with different index files > >Sample: > > >server "example.com" > listen on egress port 80 ># Root path and directory index is already index.php >root

Re: HTTPD location index issue

2016-07-28 Thread R0me0 ***
diiff < # Root path and directory index is already index.php > # Root path and directory index is already index.hml 2016-07-28 17:33 GMT-03:00 R0me0 *** : > Howdy ! > > I'm running OpenBSD 5.9 stable branch > > I can't setup two different locations with different index files > > Sample: > > > ser

HTTPD location index issue

2016-07-28 Thread R0me0 ***
Howdy ! I'm running OpenBSD 5.9 stable branch I can't setup two different locations with different index files Sample: server "example.com" listen on egress port 80 # Root path and directory index is already index.php root "/htdocs/example.com" location "/app/*.php" { # setting new index for

Encrypting carp traffic with ipsec

2016-07-28 Thread C. L. Martinez
Hi all, I will try to encrypt all carp traffic between two OpenBSD 5.9 fws (fully patched). According to ifconfig(8) man page: carppeer peer_address Send the carp advertisements to a specified point-to-point peer or multicast group instead of sending the messages to the default carp multicast gr

Re: LibreSSL, openssl.cnf and using ENV to pass values

2016-07-28 Thread Mike
On 7/28/2016 10:57 AM, Theo de Raadt wrote: > > ENV support was removed entirely. > > A few people found convenient ways to use that hack. > > However, the support is baked in -- unavoidable -- and occurs in all > library use-contexts. In some of those contexts, this environment > variable su

Re: LibreSSL, openssl.cnf and using ENV to pass values

2016-07-28 Thread Theo de Raadt
> As I mentioned earlier, OpenSSL has no issues with this, but LibreSSL > picks up an error. The error is probably right in front of my eyes, but > I cannot find it. What am I doing wrong? ENV support was removed entirely. A few people found convenient ways to use that hack. However, the sup

LibreSSL, openssl.cnf and using ENV to pass values

2016-07-28 Thread Mike
First, some quick background. I wrote some scripts to help me manage a self-signing cert authority for my home network, partly to use the certs and partly to learn about TLS and such. The CA is currently running on FreeBSD (AMD64, 10.3) using OpenSSL. I have wanted to move it over to LibreSSL, s

Re: Weird errors during install.site

2016-07-28 Thread trondd
On Thu, July 28, 2016 4:40 am, James Pole wrote: > Hello, > > My thinking at this stage is either to: > (1) Move the pkg_add(1) command to /etc/rc.firsttime. This which would > also > mean moving a whole lot of other scripted commands that depends on these > packages to /erc/rc.firsttime as well so

Re: sed vs gsed and \+ difference

2016-07-28 Thread Jiri B
On Thu, Jul 28, 2016 at 12:55:40PM +0200, David Vasek wrote: > On Thu, 28 Jul 2016, Jiri B wrote: > > >Hi, > > > >I can't understand a difference between OpenBSD and GNU sed when > >handling '\+' (one or more). > > > >Example: > > > >$ echo 'tzdata-2016a-1.el7.noarch.rpm' | sed 's/\(tzdata\)\+.*/\

Re: sed vs gsed and \+ difference

2016-07-28 Thread David Vasek
On Thu, 28 Jul 2016, Jiri B wrote: Hi, I can't understand a difference between OpenBSD and GNU sed when handling '\+' (one or more). Example: $ echo 'tzdata-2016a-1.el7.noarch.rpm' | sed 's/\(tzdata\)\+.*/\1/' tzdata-2016a-1.el7.noarch.rpm $ echo 'tzdata-2016a-1.el7.noarch.rpm' | gsed 's/\(tz

sed vs gsed and \+ difference

2016-07-28 Thread Jiri B
Hi, I can't understand a difference between OpenBSD and GNU sed when handling '\+' (one or more). Example: $ echo 'tzdata-2016a-1.el7.noarch.rpm' | sed 's/\(tzdata\)\+.*/\1/' tzdata-2016a-1.el7.noarch.rpm $ echo 'tzdata-2016a-1.el7.noarch.rpm' | gsed 's/\(tzdata\)\+.*/\1/' tzdata $ echo '112345

Weird errors during install.site

2016-07-28 Thread James Pole
Hello, I have an install.site script which calls (among others) these commands:- […] packages="git letsencrypt postgresql-server vim—no_x11" […] pkg_add $packages […] When the script is executed, the following errors appears:- […] git-2.7.0:libiconv-1.14p3 (installing) […] 3% ldconfig

Re: ipsec+tunnel vs. 'pure' ipsec

2016-07-28 Thread Claer
On Thu, Jul 28 2016 at 24:09, Kim Zeitler wrote: > Hello Hello, > having run a 'pure' ipsec tunnel for some years now I was wondering if there > are more advantages in using a tunnel like gre(4),gif(4) or ehterip(4) over > ipsec except being able to set the mtu or pass Layer2 traffic? If you don'

ipsec+tunnel vs. 'pure' ipsec

2016-07-28 Thread Kim Zeitler
Hello having run a 'pure' ipsec tunnel for some years now I was wondering if there are more advantages in using a tunnel like gre(4),gif(4) or ehterip(4) over ipsec except being able to set the mtu or pass Layer2 traffic? Thanks for your answer Kim