Re: l2tp and openbsd 6.1

2017-10-05 Thread Noth
Try pppx instead of pppx0, it'll work in pf.conf, including as a macro. On 05/10/17 18:35, Charles Amstutz wrote: This works as well: Pass in quick on pppx0 Pass out quick on pppx0 This doesn't work Pass in quick on pppx0 from pppx0 as it complains there is no IP. Assigning pppx0 to a v

Re: Blocking users who change their IP address

2017-10-05 Thread Eric Johnson
On Fri, 6 Oct 2017, Mihai Popescu wrote: > > I'm at a small Wireless ISP in a small town and have only a Class C block > > of addresses. > > > [...] > > > [...] > > Very romantic, indeed, but it has nothing to do with OpenBSD. > Are you serious? Since the primary firewall and the DHCP server (

Re: l2tp and openbsd 6.1

2017-10-05 Thread Noth
5.5, apart from no longer being supported, allows by default for weaker ciphers that aren't since 5.9. This was the release that broke android 6.x/7.x configs if you didn't specify which mod group you wanted. On 05/10/17 06:51, Vivek Vinod wrote: I do not understand the question ‎but this may

Re: Blocking users who change their IP address

2017-10-05 Thread Mihai Popescu
> I'm at a small Wireless ISP in a small town and have only a Class C block > of addresses. > [...] > [...] Very romantic, indeed, but it has nothing to do with OpenBSD. Are you serious?

Re: Blocking users who change their IP address

2017-10-05 Thread Rui Ribeiro
Hi Eric, I had that problem in the past in a (small) wifi service that was sold to a few customers outside our cable network. I had a couple of customers connecting new routers to evade charges of extra Internet usage. I solved it changing my provisioning software to create static addresses and AR

Re: compile WGXepc.c on openBSD 6.1

2017-10-05 Thread Jeremie Courreges-Anglas
On Thu, Oct 05 2017, antonio lapira wrote: > # uname -a > OpenBSD bsd750e.my.domain 6.1 GENERIC.MP#291 i386 > > > ORIGINAL FILE > > # cc > WGXepc.c > /tmp//cckbgvzi.o: In function `port_out': > WGXepc.c:(.text+0x122): undefined reference to `outb' > /tmp//cckbgvzi.o: In function `port_in': > WGXep

Re: compile WGXepc.c on openBSD 6.1

2017-10-05 Thread antonio lapira
ok with pio.h compilation is OK, I get a.out, but starting it, I get errors: ./a.out -f 10 open fail open fail open fail open fail Firebox not detected. If this is a Firebox it's either one we don't know about or it's running a bios we haven't seen. Hit the pfSense forums to let us know more. I

Re: compile WGXepc.c on openBSD 6.1

2017-10-05 Thread antonio lapira
# uname -a OpenBSD bsd750e.my.domain 6.1 GENERIC.MP#291 i386 ORIGINAL FILE # cc WGXepc.c /tmp//cckbgvzi.o: In function `port_out': WGXepc.c:(.text+0x122): undefined reference to `outb' /tmp//cckbgvzi.o: In function `port_in': WGXepc.c:(.text+0x2a4): undefined reference to `inb' collect2: ld retu

Re: compile WGXepc.c on openBSD 6.1

2017-10-05 Thread Jeremie Courreges-Anglas
On Thu, Oct 05 2017, antonio lapira wrote: > Hi > I need to compile a source file on openBSD > > > This is the source code > https://paste.debian.net/plain/989074 > > I need it to reduce fan speed of the machine That doesn't sound like a good idea. > on FreeBSD I do: > cc WGXepc.c > and I get a.

compile WGXepc.c on openBSD 6.1

2017-10-05 Thread antonio lapira
Hi I need to compile a source file on openBSD This is the source code https://paste.debian.net/plain/989074 I need it to reduce fan speed of the machine on FreeBSD I do: cc WGXepc.c and I get a.out working on OpenBSD, I get some errors Could you help me? Thanks

Re: l2tp and openbsd 6.1

2017-10-05 Thread Charles Amstutz
This works as well: Pass in quick on pppx0 Pass out quick on pppx0 This doesn't work Pass in quick on pppx0 from pppx0 as it complains there is no IP. Assigning pppx0 to a variable doesn't work either. Neither does setting it to be dynamic. -Original Message- From: owner-m...@

Blocking users who change their IP address

2017-10-05 Thread Eric Johnson
I'm at a small Wireless ISP in a small town and have only a Class C block of addresses. A couple of years, one local store sold to a new buyer and they wanted an Internet connection which I happily supplied with a single IPv4 address fro the store. A couple of weeks ago, the outside company that

Re: What is the correct debugger used for debugging program built with clang++?

2017-10-05 Thread Todd C. Miller
The gdb in base is very old. To debug programs compiled with clang you should use egdb from ports. - todd

Re: l2tp and openbsd 6.1

2017-10-05 Thread Charles Amstutz
Here is a related but new question, If pppx0 only exists when someone is vpn'ed in. How do people handle this in pf? If you don't define rules, packets get blocked on it. But if there is no connect, pf complains about pppx0 not having a firewall. The only thing that seems to work is set ski

Re: openSMTPD relaying and aliases

2017-10-05 Thread Michael Hekeler
On Thu, Oct 05, 2017 at 12:41:53PM +0200, Michael Hekeler wrote: > > aliases file: > > root: logs+...@domain.tld If your monitoring app on localhost sends an email to "root" then the header of that email has: From: Cron Daemon <-- I don´t know what your sender looks like X-Original-To: root

Re: l2tp and openbsd 6.1

2017-10-05 Thread Vijay Sankar
Quoting lilit-aibolit : On 05/10/17 09:17, lilit-aibolit wrote: Hi, I've just try your suggestion and IPhone could connect but Windows gives new errors in log: ##here is Windows attempt Oct  5 09:08:16 gw isakmpd[19354]: message_parse_payloads: invalid next payload type in payload of type

Re: migrate .htaccess conent to httpd.conf

2017-10-05 Thread Markus Rosjat
Hi, Am 05.10.2017 um 12:53 schrieb Michael Hekeler: I don't need them I have them on a older system were apache 1.3 was the standard webserver for openbsd still. So I simply want to migrate the content to a system with a new standard webserver httpd. Okay But keep in mind that httpd is not Apa

Re: migrate .htaccess conent to httpd.conf

2017-10-05 Thread Michael Hekeler
> I don't need them I have them on a older system were apache 1.3 was > the standard webserver for openbsd still. So I simply want to > migrate the content to a system with a new standard webserver httpd. Okay But keep in mind that httpd is not Apache and converting complicated htaccess stuff is

Re: openSMTPD relaying and aliases

2017-10-05 Thread Michael Hekeler
> aliases file: > root: logs+...@domain.tld > > ... > > But I get mails in my log account > From: r...@machinename.domain.tld > To:r...@machinename.domain.tld Isn't this the expected result? I think it is the purpose of mailaliases that you receive in the log account mbox the emails with "To: r

What is the correct debugger used for debugging program built with clang++?

2017-10-05 Thread Nan Xiao
Hi misc@, The default "c++" compiler shipped with OpenBSD doesn't support "C++11", so I use "clang++" to build program which use Standard C++ Thread Library: # cat hello.cpp #include #include void hello() { std::cout << "Hello World!\n"; } int main(void) { std::thread t(hello); t.

Re: Why the executable file type is also "DYN", not "EXEC"?

2017-10-05 Thread William Ahern
On Wed, Oct 04, 2017 at 04:17:32PM +0800, Nan Xiao wrote: > Hi all, > > I find the type of executable file format on OpenBSD is "DYN", not > "EXEC": > Is there any special consideration for it? Thanks very much in advance! > Because it was built as a position-independent executable (PIE). See h

Re: migrate .htaccess conent to httpd.conf

2017-10-05 Thread Markus Rosjat
Hi, Am 05.10.2017 um 10:11 schrieb Michael Hekeler: And 2nd question would be how to give the user a way to implement something like it on there own? I was thinking of a simply standard include in the server definition but this might mess things up if you need directory specific and user defin

Re: openSMTPD relaying and aliases

2017-10-05 Thread Boudewijn Dijkstra
Op Wed, 04 Oct 2017 11:31:25 +0200 schreef rosjat : [...] But I get mails in my log account From: r...@machinename.domain.tld To:r...@machinename.domain.tld but i would like to have a it with From: r...@machinename.domain.tld To: logs+...@domain.tld to make my filtering easier in the mail accou

Re: l2tp and openbsd 6.1

2017-10-05 Thread lilit-aibolit
On 05/10/17 09:17, lilit-aibolit wrote: Hi, I've just try your suggestion and IPhone could connect but Windows gives new errors in log: ##here is Windows attempt Oct  5 09:08:16 gw isakmpd[19354]: message_parse_payloads: invalid next payload type in payload of type 5 Oct  5 09:08:16 gw isakm

Re: migrate .htaccess conent to httpd.conf

2017-10-05 Thread Michael Hekeler
> And 2nd question would be how to give the user a way to implement > something like it on there own? I was thinking of a simply standard > include in the server definition but this might mess things up if you need directory specific and user define-able override files like those .htaccess then w

Re: Resize partitions?

2017-10-05 Thread Niels Kobschaetzki
On 17/10/04 23:21, Alexander Hall wrote: On October 4, 2017 6:58:52 PM GMT+02:00, Niels Kobschaetzki wrote: /.../ And I don't know OpenBSD enough to know how "dangerous" it is to use "pkg_delete -a". I used similar functions with linux-distributions and they wanted to remove a tool like git

Re: httpd.conf and directory index

2017-10-05 Thread Michael Hekeler
> > Since the rules get evaluated top to bottom and stoping at first > match If this is true (which I don´t know - where did you get this information?) then httpd would stop at line 15 and would try to find index.html. So the request "https://domain.tld/admin/"; will try "https://domain.tld/a