Re: Captive portal with OpenBSD as a hostap

2015-10-08 Thread Kapetanakis Giannis
On 08/10/15 23:17, Predrag Punosevac wrote: Somebody will correct me if I am wrong but the way that Authpf works (I have configured it in the past) is to load a new set of PF rules after successful ssh login. My understanding is that by default the traffic remains unencrypted unless we use more P

Re: Captive portal with OpenBSD as a hostap

2015-10-08 Thread Predrag Punosevac
Kapetanakia Giannis wrote: > > On 05/10/15 14:35, David Coppa wrote: > > On Mon, Oct 5, 2015 at 1:18 PM, C.L. Martinez > wrote: > >> Hi all, > >> > >> I have installed an openbsd vm to works as a hostap for tablets and > >> smartphones (android and iOS). > >> > >> All it is working ok: pf, h

Re: Captive portal with OpenBSD as a hostap

2015-10-07 Thread laudarch
Here is the diff I made, it simply calls a program when a user logs in with authpf and when a user logs out. to use this diff you must add these lines to authpf.conf start=/path/to/startsession.pl end=/path/to/endsession.pl follows is the diff Index: src/usr.sbin/authpf/authpf.c ==

Re: Captive portal with OpenBSD as a hostap

2015-10-06 Thread C. L. Martinez
On Mon, Oct 5, 2015 at 1:26 PM, laudarch wrote: > I made a custom implementation and a diff to authpf, will share that > later just in case anyone wants it. > > I hope this helps you, it pretty simple > http://bastienceriani.fr/?p=70 > Thanks laudarch ... Very close to what I am searching... I wi

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread Abel Abraham Camarillo Ojeda
On Mon, Oct 5, 2015 at 5:18 PM, Kapetanakis Giannis wrote: > On 06/10/15 01:04, Abel Abraham Camarillo Ojeda wrote: >> >> >> That's nice, but how do you log-out inactive users/IPs? >> There is no such option in pf >> a) expire after a certain amount of time and/or >> pfctl -t loggedusers -T expire

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread Kapetanakis Giannis
On 06/10/15 01:04, Abel Abraham Camarillo Ojeda wrote: That's nice, but how do you log-out inactive users/IPs? There is no such option in pf a) expire after a certain amount of time and/or pfctl -t loggedusers -T expire 3600 # expire after one hour, regardless of activity you're right on this.

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread Abel Abraham Camarillo Ojeda
On Mon, Oct 5, 2015 at 4:47 PM, Kapetanakis Giannis wrote: > On 05/10/15 16:26, laudarch wrote: >> >> I made a custom implementation and a diff to authpf, will share that >> later just in case anyone wants it. >> >> I hope this helps you, it pretty simple >> http://bastienceriani.fr/?p=70 > > > Th

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread Kapetanakis Giannis
On 05/10/15 16:26, laudarch wrote: I made a custom implementation and a diff to authpf, will share that later just in case anyone wants it. I hope this helps you, it pretty simple http://bastienceriani.fr/?p=70 That's nice, but how do you log-out inactive users/IPs? There is no such option in

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread laudarch
I made a custom implementation and a diff to authpf, will share that later just in case anyone wants it. I hope this helps you, it pretty simple http://bastienceriani.fr/?p=70 On 2015-10-05 11:18, C.L. Martinez wrote: Hi all, I have installed an openbsd vm to works as a hostap for tablets and

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread David Coppa
On Mon, Oct 5, 2015 at 2:49 PM, C.L. Martinez wrote: > On 10/05/2015 12:29 PM, Kapetanakis Giannis wrote: >> >> On 05/10/15 14:35, David Coppa wrote: >>> >>> On Mon, Oct 5, 2015 at 1:18 PM, C.L. Martinez >>> wrote: Hi all, I have installed an openbsd vm to works as a hostap

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread C.L. Martinez
On 10/05/2015 12:29 PM, Kapetanakis Giannis wrote: On 05/10/15 14:35, David Coppa wrote: On Mon, Oct 5, 2015 at 1:18 PM, C.L. Martinez wrote: Hi all, I have installed an openbsd vm to works as a hostap for tablets and smartphones (android and iOS). All it is working ok: pf, hostapd and d

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread Kapetanakis Giannis
On 05/10/15 14:35, David Coppa wrote: On Mon, Oct 5, 2015 at 1:18 PM, C.L. Martinez wrote: Hi all, I have installed an openbsd vm to works as a hostap for tablets and smartphones (android and iOS). All it is working ok: pf, hostapd and dhcpd server. All tablets and smartphones that I have

Re: Captive portal with OpenBSD as a hostap

2015-10-05 Thread David Coppa
On Mon, Oct 5, 2015 at 1:18 PM, C.L. Martinez wrote: > Hi all, > > I have installed an openbsd vm to works as a hostap for tablets and > smartphones (android and iOS). > > All it is working ok: pf, hostapd and dhcpd server. All tablets and > smartphones that I have tested works ok, connects and

Captive portal with OpenBSD as a hostap

2015-10-05 Thread C.L. Martinez
Hi all, I have installed an openbsd vm to works as a hostap for tablets and smartphones (android and iOS). All it is working ok: pf, hostapd and dhcpd server. All tablets and smartphones that I have tested works ok, connects and surfs Internet. But now I am thinking to use some type of a