Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Diana Eichert

We all weren't deprived, I had both an ISDN terminal adapter
and IDSL circuit at my house.  Both were outrageously
expensive, they provided by the company I was doing contract
work for.  They had dialup ISDN data connections, I was their
test node if other folks reported problems.




On Wed, 11 Jul 2018, Paul de Weerd wrote:


Hi Tom,

With the answers you already got, I think it's obvious that the
american continents were deprived of this fine technology .. their
envy is showing ;)  However, there's one possibility:


SNIP


Now if you could get those to work using ppp, I have no clue.  But I
think it's your best bet if you want to use your ISDN connectivity on
OpenBSD in 2018 (which you don't).

Cheers,

Paul




Re: samba at snapshots

2018-07-11 Thread Tuyosi T
i thank for kasak's nice advices of samba .

yesteday's perhaps today's snapshot is stable .
i am looking forward to 6.4 .
---
regards


Re: Configuration of a umb device

2018-07-11 Thread Bryan Vyhmeister
On Mon, Jul 09, 2018 at 12:37:42AM +, salan...@ouvaton.org wrote:
> Could someone direct me as to how to set up my computer such that I can
> get internet access through? I installed a this model of US Mobile SIM card.
> https://www.usmobile.com/shop/product/Triple-Cut-GSM-SIM-Card
> 
> Then I ran the commands below. What do I need to do next?
> 
> $ dmesg|grep umb 
> umb0 at uhub0 port 4 configuration 1 interface 6 "Lenovo N5321 gw" rev 
> 2.00/0.00 addr 2
> $ ifconfig apn pwg pin 1234 class 2G roaming up
> $ ifconfig
> umb0: flags=8851 mtu 1500
> index 5 priority 0 llprio 3
> roaming enabled registration home network
> state up cell-class EDGE rssi -77dBm speed 60.4Kps up 242Kps down
> SIM initialized PIN valid (3 attempts left)
> subscriber-id 310260855911295 ICC-id 8901260851159112954 provider US Mobile
> device KRD 131 30/123 - R1A/1 IMEI 004401701565398 firmware R3C11 (Pro), 
> R4A10 (App)
> APN pwg
> dns 10.177.0.34 10.177.0.210
> status: active
> inet 100.144.58.19 --> 100.144.58.18 netmask 0xfff8

The general idea is you need to add a route that points to the
interface rather than the IP address. You still need an IP address for
the route command. I wrote a script that automates bringing up a umb(4)
connection. It is configured by default for AT

https://raw.githubusercontent.com/brycv/openbsd-scripts/master/cell-setup

To add the default route, use the following command.

route add -ifp umb0 default 100.144.58.19

This command would be correct for the information you have above. The
-ifp option allows you to specify the name of the interface you are
using for the default route. Then you also add the IP address you are
assigned since route(8) requires an IP address for the command.

The script also adds the dns entry (AT only provides one where it
looks like you get two on the dns line) to /etc/resolv.conf so
everything works as expected.

Bryan



Re: Weird routing problem on simple CARP setup

2018-07-11 Thread Stuart Henderson
On 2018-07-11, Tom Smyth  wrote:
> Hi Pierre,
>
> with VRRP on other vendors the IP on the Virtual interface
> is recommended to be a /32,
>
>
> afaik
> it prevents ambiguity when it comes to your connected routes
> do you route a packet out the carp interface which as an ip on the configured
> /24 network or do you route the packet out the physcial interface which also
> has a /24 network configured
>
>
> I note the examples and faq page in openbsd  show ips configured
> with a /24 configured
> https://man.openbsd.org/carp
>
> and a /24 seems to be the default ip if a subnet mask is not specified
>
>
> But I would love to hear / learn more experienced OpenBSD Admins
> Devs take on it

My GBP0.02 (which isn't worth much these days ;)

- generally /32 for addresses on carp

- if there are no IPs from the subnet used in carp on another "real" interface
(i.e. the address is only on the carp interface) then use the full /XX for one
IP in that subnet on carp

- if you're redistributing a subnet on a carp interface into OSPF you need
the full /XX on the carp interface so it can announce the network rather
than a single host (you want to announce it from carp rather than the
"real" interface so the priority changes depending on the carp state)




Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Peter N. M. Hansteen
On 07/11/18 21:30, Paul de Weerd wrote:

> There used to be external ISDN "modems" (not really modulating or
> demodulating anything, but that's what marketing people called them so
> people would understand what these were in the same sense as regular
> modems were).  These would simply connect to your serial port and
> provide you with a dial up interface that you could use.  With some AT
> commands, these could be made to connect to the internet (if I recall
> correctly, they could even emulate a real 'modem' for old-fashioned
> dial-up).
> 
> Eicon was the brand, DIVA the model of one particular example I've
> actually had the "pleasure" of working with.  You can still find
> references on the web.  The web 1.0, that is.

I distinctly remember having a USRobotics ISDN unit that looked very
much like the 'real' modem models visually. It definitely took AT commands.

It's possible you could turn up something on ebay or similar (actually I
see one up on ebay right now selling for about a tenth of the nominal
price I paid for one way back then), so it might be worth a try.

> Now if you could get those to work using ppp, I have no clue.  But I
> think it's your best bet if you want to use your ISDN connectivity on
> OpenBSD in 2018 (which you don't).

Back in the day it was usually possible to wrestle those units into
doing PPP. I think Paul is very much on the right track here, given that
the box you connect has a traditional serial port or is able to fake one
via something like a USB-to-serial adapter.

- Peter

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Stuart Henderson
On 2018-07-11, Tom Smyth  wrote:
> Hello all,
>
> this is an odd one but I have a client that needs to
> migrate some legacy services
> Is there support for ISDN type interfaces in OpenBSD ?
>
> man / apropos shows nothing
>
> or is there a package that would add ISDN support
> (although I didnt see a package containing isdn or ISDN
> in packages)
> is ISDN support available under a different name by any chance
>
> Thanks
>
> Tom Smyth
>
>

ISDN covers various things, data/voice, and various types of line
(BRI = 2 64k data/voice "B" channels plus one signalling "D" channel ..
PRI = up to 30 B channels over an E1/T1 circuit).

Would need more information about what the "legacy services" are before
it's possible to make any kind of suggestion (but apart from some data
services on BRI which might work with an async TA, it's not really going
to involve OpenBSD in directly terminating the ISDN).





Re: Weird routing problem on simple CARP setup

2018-07-11 Thread Tom Smyth
Hi Pierre,

with VRRP on other vendors the IP on the Virtual interface
is recommended to be a /32,


afaik
it prevents ambiguity when it comes to your connected routes
do you route a packet out the carp interface which as an ip on the configured
/24 network or do you route the packet out the physcial interface which also
has a /24 network configured


I note the examples and faq page in openbsd  show ips configured
with a /24 configured
https://man.openbsd.org/carp

and a /24 seems to be the default ip if a subnet mask is not specified


But I would love to hear / learn more experienced OpenBSD Admins
Devs take on it

Thanks
Tom Smyth


On 11 July 2018 at 16:47, BARDOU Pierre  wrote:
> Hellom
>
> Sorry for the long delay, I've been very busy recently.
>
> Putting the carp in /32 works.
> What's the best practice when you have a physical IP + CARP in the same 
> subnet ?
> The FAQ here https://www.openbsd.org/faq/pf/carp.html#failover uses the same 
> netmask for the CARP and the physical interface.
>
> I upgraded to 6.3 and it also works.
>
> Thank you for your help
>
> --
> Cordialement,
> Pierre BARDOU
>
> -Message d'origine-
> De : Stefan Sperling 
> Envoyé : mardi 3 juillet 2018 13:33
> À : BARDOU Pierre 
> Cc : misc@openbsd.org
> Objet : Re: Weird routing problem on simple CARP setup
>
> On Wed, Jun 27, 2018 at 09:30:16AM +, BARDOU Pierre wrote:
>> Hello,
>>
>> I have a strange problem with OpenBSD 6.2, which looks like a bug.
>> Steps to reproduce :
>>
>> * sh /etc/netstart -> everything works. Routing table :
>> root@fw-t-wan-chut01:~ # netstat -rnf inet
>> Routing tables
>>
>> Internet:
>> DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
>> default10.194.119.254 UGS0   16 - 8 bge0
>> 224/4  127.0.0.1  URS0  798 32768 8 lo0
>> 10.194.116/22  10.194.116.29  UCn11 - 4 bge0
>> 10.194.116/22  10.194.116.28  UCn00 -19 carp0
>> 10.194.116.28  00:00:5e:00:01:0f  UHLl   03 - 1 carp0
>> 10.194.116.29  40:a8:f0:36:22:0c  UHLl   0   28 - 1 bge0
>> 10.194.119.254 00:1b:2a:e9:c4:00  UHLch  25 - 3 bge0
>> 10.194.119.255 10.194.116.29  UHb00 - 1 bge0
>> 10.194.119.255 10.194.116.28  UHb00 - 1 carp0
>> 127/8  127.0.0.1  UGRS   00 32768 8 lo0
>> 127.0.0.1  127.0.0.1  UHhl   1 1122 32768 1 lo0
>> 192.168.190/24 192.168.190.1  Cn 00 - 4 bge1
>> 192.168.190.1  40:a8:f0:36:22:0d  UHLl   00 - 1 bge1
>> 192.168.190.255192.168.190.1  Hb 00 - 1 bge1
>> root@fw-t-wan-chut01:~ # ifconfig carp0
>> carp0: flags=8843 mtu 1500
>> lladdr 00:00:5e:00:01:0f
>> description: TL-INT-ADM-WAN
>> index 10 priority 15 llprio 3
>> carp: MASTER carpdev bge0 vhid 15 advbase 1 advskew 10
>> groups: carp
>> status: master
>> inet 10.194.116.28 netmask 0xfc00 broadcast 10.194.119.255
>>
>> * then sh /etc/netstart carp0 -> routed traffic stops working (ping 
>> 10.194.125.120 says "sendmsg: Invalid argument").
>> Same result if I do ifconfig carp0 10.194.116.28/22.
>
> Have you tried using a /32 mask on carp0 instead of /22?
> That might work around the problem.
>
> I believe this problem is fixed in 6.3. Can you confirm?
>



-- 
Kindest regards,
Tom Smyth

Mobile: +353 87 6193172
The information contained in this E-mail is intended only for the
confidential use of the named recipient. If the reader of this message
is not the intended recipient or the person responsible for
delivering it to the recipient, you are hereby notified that you have
received this communication in error and that any review,
dissemination or copying of this communication is strictly prohibited.
If you have received this in error, please notify the sender
immediately by telephone at the number above and erase the message
You are requested to carry out your own virus check before
opening any attachment.



Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Martin Schröder
2018-07-11 21:30 GMT+02:00 Paul de Weerd :
> Eicon was the brand, DIVA the model of one particular example I've
> actually had the "pleasure" of working with.  You can still find
> references on the web.  The web 1.0, that is.
>
> Now if you could get those to work using ppp, I have no clue.  But I
> think it's your best bet if you want to use your ISDN connectivity on
> OpenBSD in 2018 (which you don't).

I would try our an ISDN to USB adapter.
Or a Cisco 876, which seems to do ISDN to Ethernet. :-)

Best
   Martin



Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Paul de Weerd
Hi Tom,

With the answers you already got, I think it's obvious that the
american continents were deprived of this fine technology .. their
envy is showing ;)  However, there's one possibility:

There used to be external ISDN "modems" (not really modulating or
demodulating anything, but that's what marketing people called them so
people would understand what these were in the same sense as regular
modems were).  These would simply connect to your serial port and
provide you with a dial up interface that you could use.  With some AT
commands, these could be made to connect to the internet (if I recall
correctly, they could even emulate a real 'modem' for old-fashioned
dial-up).

Eicon was the brand, DIVA the model of one particular example I've
actually had the "pleasure" of working with.  You can still find
references on the web.  The web 1.0, that is.

Now if you could get those to work using ppp, I have no clue.  But I
think it's your best bet if you want to use your ISDN connectivity on
OpenBSD in 2018 (which you don't).

Cheers,

Paul

On Wed, Jul 11, 2018 at 04:17:09PM +0100, Tom Smyth wrote:
| Hello all,
| 
| this is an odd one but I have a client that needs to
| migrate some legacy services
| Is there support for ISDN type interfaces in OpenBSD ?
| 
| man / apropos shows nothing
| 
| or is there a package that would add ISDN support
| (although I didnt see a package containing isdn or ISDN
| in packages)
| is ISDN support available under a different name by any chance
| 
| Thanks
| 
| Tom Smyth
| 

-- 
>[<++>-]<+++.>+++[<-->-]<.>+++[<+
+++>-]<.>++[<>-]<+.--.[-]
 http://www.weirdnet.nl/ 



Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Martin Schröder
2018-07-11 18:48 GMT+02:00 Christian Weisgerber :
> (Once upon a time there was something called isdn4bsd, but I don't
> think it was ever officially integrated into OpenBSD, and that's
> from, oh, twenty years ago.)

IIRC it was one of the reasons for the start of MirBSD (which did ISDN).

Best
   Martin



Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Tom Smyth
Thanks Guys :)

Appreciate the confirmation :)



On 11 July 2018 at 17:52, Theo de Raadt  wrote:
> Christian Weisgerber  wrote:
>
>> On 2018-07-11, Tom Smyth  wrote:
>>
>> > this is an odd one but I have a client that needs to
>> > migrate some legacy services
>> > Is there support for ISDN type interfaces in OpenBSD ?
>>
>> No.
>>
>> (Once upon a time there was something called isdn4bsd, but I don't
>> think it was ever officially integrated into OpenBSD, and that's
>> from, oh, twenty years ago.)
>
> And some people are still crying themselves to sleep.
>



-- 
Kindest regards,
Tom Smyth

Mobile: +353 87 6193172
The information contained in this E-mail is intended only for the
confidential use of the named recipient. If the reader of this message
is not the intended recipient or the person responsible for
delivering it to the recipient, you are hereby notified that you have
received this communication in error and that any review,
dissemination or copying of this communication is strictly prohibited.
If you have received this in error, please notify the sender
immediately by telephone at the number above and erase the message
You are requested to carry out your own virus check before
opening any attachment.



Re: roundcube installation php modules

2018-07-11 Thread Teno Deuter
here is an example:

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_fileinfo.dll
;extension=php_gd2.dll
extension=/usr/local/lib/php-5.6/modules/gd.so
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
extension=/usr/local/lib/php-5.6/modules/intl.so
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=/usr/local/lib/php-5.6/modules/ldap.so
;extension=php_mbstring.dll
;extension=php_exif.dll  ; Must be after mbstring as it depends on it
;extension=php_mysql.dll
;extension=php_mysqli.dll

On Tue, Jul 10, 2018 at 4:19 PM, Danny AwesomeRetro
 wrote:
> Could you give me an example of defining absolute path to the module?
>
> Cheers,
>
> Danny
>
>
> On 07/10/2018 03:07 PM, Teno Deuter wrote:
>> actually I had to define the absolute path to the module. After doing
>> this it did work!
>>
>> I still have the issue with Imagick though! There is no module for
>> that in OpenBSD repository as it's already integrated in php -
>> correct? In that case should I ignore that?
>>
>> Thank you
>>
>> On Tue, Jul 10, 2018 at 2:30 PM, Teno Deuter  wrote:
>>> sorry forgot to mention that after doing the below changes I did
>>> restart the server!
>>>
>>> Thank you
>>>
>>> On Tue, Jul 10, 2018 at 2:29 PM, Teno Deuter  wrote:
 here are my current extension settings in php-5.6.ini:

 ;extension=php_bz2.dll
 ;extension=php_curl.dll
 ;extension=php_fileinfo.dll

 extension=php_gd2.dll

 ;extension=php_gettext.dll
 ;extension=php_gmp.dll

 extension=php_intl.dll

 ;extension=php_imap.dll
 ;extension=php_interbase.dll
 ;extension=php_ldap.dll
 ;extension=php_mbstring.dll
 ;extension=php_exif.dll  ; Must be after mbstring as it depends on it
 ;extension=php_mysql.dll
 ;extension=php_mysqli.dll
 ;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
 ;extension=php_openssl.dll
 ;extension=php_pdo_firebird.dll
 ;extension=php_pdo_mysql.dll
 ;extension=php_pdo_oci.dll
 ;extension=php_pdo_odbc.dll
 ;extension=php_pdo_pgsql.dll

 extension=php_pdo_sqlite.dll

 ;extension=php_pgsql.dll
 ;extension=php_shmop.dll
 ;extension=php_soap.dll
 ;extension=php_sockets.dll

 extension=php_sqlite3.dll

 ;extension=php_sybase_ct.dll
 ;extension=php_tidy.dll
 ;extension=php_xmlrpc.dll
 ;extension=php_xsl.dll

 but nothing happens. I still get the same error in the first installer 
 step.

 Thank you

 On Tue, Jul 10, 2018 at 2:07 PM,   wrote:
> Have you altered your php.ini to load the extensions and restart php-fpm?
> On Jul 10, 2018 7:00 AM, Teno Deuter  wrote:
>> Dear list,
>>
>> in a OpenBSD 6.3 machine I run httpd and opensmptd and try to intall
>> roundcubemail 1.3.5 from the OpenBSD packages repository.
>>
>> When running the installer, in the first page, I get following warnings:
>>
>> FileInfo:  OK
>> Libiconv:  OK
>> Intl:  NOT AVAILABLE(See http://www.php.net/manual/en/book.intl.php)
>> Exif:  OK
>> LDAP:  NOT AVAILABLE(See http://www.php.net/manual/en/book.ldap.php)
>> GD:  NOT AVAILABLE(See http://www.php.net/manual/en/book.image.php)
>> Imagick:  NOT AVAILABLE(See 
>> http://www.php.net/manual/en/book.imagick.php)
>>
>> but pkg_info shows:
>>
>> php-gd-5.6.34   image manipulation extensions for php
>> php-intl-5.6.34 intl library support for php
>>
>> and I think php-imagick is already part of the php OpenBSD package.
>>
>> Why do I get the above warnings?
>>
>> Also, in the second installation page I get the following:
>>
>> Mimetype to file extension mapping:  NOT OK
>>
>> but in httpd.conf, on the top of the file, I have the following entry:
>>
>> types { include "/usr/share/misc/mime.types" }
>>
>> Thank you
>>
>



Re: roundcube installation php modules

2018-07-11 Thread Danny AwesomeRetro
Yeah i missed it,my bad.

To be fair,it is noted in the readme file,but nowhere in any tutorials
online.

Just a stupid mistake to miss i guess.

Unsure if we are at emf,we do a _lot_ of events,i think so? ;)


Cheers,
Danny



On 07/11/2018 01:04 PM, Stuart Henderson wrote:
>> On 07/10/2018 04:25 PM, Vijay Sankar wrote:
>>> Sorry to interject -- just wondering if you read the instructions
>>> towards the bottom in /usr/local/share/doc/pkg-readmes for php-5.6. It
>>> specifically says
> On 2018-07-10, Danny AwesomeRetro  wrote:
>> No problem,that fixed the issue for me ;)
>>
>> thank you,this has cost me around 18 hours of searching
> btw, when you run pkg_add and install something which comes with a
> pkg-readme file, it tells you about it - it's always worth reading these
> as they were written by the porter and have specific information about
> use with the standard OpenBSD setup.
>
> btw (offtopic :), are AwesomeRetro coming to emfcamp again this year?
>
>



Re: samba at snapshots

2018-07-11 Thread kasak




11.07.2018 18:04, Tuyosi T пишет:

hi all .

it is supprising openbsd snapshots runs samba .
and
windows 10 accesses "OpenSamba" .

but this may contain some errors .
then please point them .

1)/etc/samba/smb.conf

[global]
workgroup = WORKGROUP
server string = SAMBA SERVER Version %v
netbios name = OpenSamba
security = user
passdb backend = tdbsam
dos charset = CP932
unix charset = UTF-8
wins support = yes
load printers = no
disable spoolss = yes
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[Share]
comment = Share Folder for All Users
path = /home/share/
browsable = yes
writable = yes
read only = no

2)
/etc/rc.d/samba restart
nmbd(ok)
smbd(ok)
smbd(ok)
nmbd(ok)

3) testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (128) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[Share]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

Global parameters
[global]
disable spoolss = Yes
dos charset = CP932
load printers = No
netbios name = OPENSAMBA
security = USER
server string = SAMBA SERVER Version %v
wins support = Yes
idmap config * : backend = tdb

[homes]
browseable = No
comment = Home Directories
inherit acls = Yes
read only = No
valid users = %S %D%w%S

[Share]
comment = Share Folder for All Users
path = /home/share/
read only = No

---
regards



Please explain your problem more clearly. It's nothing wrong with config.
Litle remark: you have

writable = yes
read only = no

In your "Share" definition. This is the inverted synonim of each other. You can 
delete one of them.
Also i probably guess that you are trying to write with guest user to directory 
/home/share.
For doing so you need to add option
Map to guest = Bad user to "global" section and do in shell:
chown -R nobody:nogroup /home/share



Re: Resume fails with connected USB hub

2018-07-11 Thread Maximilian Pichler
On Mon, Jan 29, 2018 at 6:43 PM, Maximilian Pichler
 wrote:
> Resume after suspend fails on a Zenbook UX390UA if (and only if) the
> USB hub/adapter that comes with it is connected.

This issue no longer occurs with current from Jun 21st. I don't know
which change (since Jan 24) is responsible.



Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Theo de Raadt
Christian Weisgerber  wrote:

> On 2018-07-11, Tom Smyth  wrote:
> 
> > this is an odd one but I have a client that needs to
> > migrate some legacy services
> > Is there support for ISDN type interfaces in OpenBSD ?
> 
> No.
> 
> (Once upon a time there was something called isdn4bsd, but I don't
> think it was ever officially integrated into OpenBSD, and that's
> from, oh, twenty years ago.)

And some people are still crying themselves to sleep.



Re: ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Christian Weisgerber
On 2018-07-11, Tom Smyth  wrote:

> this is an odd one but I have a client that needs to
> migrate some legacy services
> Is there support for ISDN type interfaces in OpenBSD ?

No.

(Once upon a time there was something called isdn4bsd, but I don't
think it was ever officially integrated into OpenBSD, and that's
from, oh, twenty years ago.)

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



xbacklight on second monitor

2018-07-11 Thread Maximilian Pichler
Is it possible to change the backlight of a second monitor?

It seems that xbacklight can only change the backlight of the first
monitor, i.e. in my case the laptop's integrated display. I'd like to
change the backlight of an external monitor.

Here it is suggested to use a tool called ddcutil. Unfortunately this
doesn't compile under OpenBSD because it depends on libudev.
https://unix.stackexchange.com/questions/421307/how-can-i-change-the-backlight-of-an-external-monitor

I'm aware of 'xrandr --brightness', but of course brightness isn't the
same as the backlight (see xrandr's man page).

Thanks for any hints

Max



Re: Weird routing problem on simple CARP setup

2018-07-11 Thread BARDOU Pierre
Hellom

Sorry for the long delay, I've been very busy recently.

Putting the carp in /32 works.
What's the best practice when you have a physical IP + CARP in the same subnet ?
The FAQ here https://www.openbsd.org/faq/pf/carp.html#failover uses the same 
netmask for the CARP and the physical interface.

I upgraded to 6.3 and it also works.

Thank you for your help

--
Cordialement,
Pierre BARDOU

-Message d'origine-
De : Stefan Sperling  
Envoyé : mardi 3 juillet 2018 13:33
À : BARDOU Pierre 
Cc : misc@openbsd.org
Objet : Re: Weird routing problem on simple CARP setup

On Wed, Jun 27, 2018 at 09:30:16AM +, BARDOU Pierre wrote:
> Hello,
> 
> I have a strange problem with OpenBSD 6.2, which looks like a bug.
> Steps to reproduce :
> 
> * sh /etc/netstart -> everything works. Routing table :
> root@fw-t-wan-chut01:~ # netstat -rnf inet
>   
>  
> Routing tables
> 
> Internet:
> DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
> default10.194.119.254 UGS0   16 - 8 bge0 
> 224/4  127.0.0.1  URS0  798 32768 8 lo0  
> 10.194.116/22  10.194.116.29  UCn11 - 4 bge0 
> 10.194.116/22  10.194.116.28  UCn00 -19 carp0
> 10.194.116.28  00:00:5e:00:01:0f  UHLl   03 - 1 carp0
> 10.194.116.29  40:a8:f0:36:22:0c  UHLl   0   28 - 1 bge0 
> 10.194.119.254 00:1b:2a:e9:c4:00  UHLch  25 - 3 bge0 
> 10.194.119.255 10.194.116.29  UHb00 - 1 bge0 
> 10.194.119.255 10.194.116.28  UHb00 - 1 carp0
> 127/8  127.0.0.1  UGRS   00 32768 8 lo0  
> 127.0.0.1  127.0.0.1  UHhl   1 1122 32768 1 lo0  
> 192.168.190/24 192.168.190.1  Cn 00 - 4 bge1 
> 192.168.190.1  40:a8:f0:36:22:0d  UHLl   00 - 1 bge1 
> 192.168.190.255192.168.190.1  Hb 00 - 1 bge1
> root@fw-t-wan-chut01:~ # ifconfig carp0   
>   
> 
> carp0: flags=8843 mtu 1500
> lladdr 00:00:5e:00:01:0f
> description: TL-INT-ADM-WAN
> index 10 priority 15 llprio 3
> carp: MASTER carpdev bge0 vhid 15 advbase 1 advskew 10
> groups: carp
> status: master
> inet 10.194.116.28 netmask 0xfc00 broadcast 10.194.119.255
> 
> * then sh /etc/netstart carp0 -> routed traffic stops working (ping 
> 10.194.125.120 says "sendmsg: Invalid argument"). 
> Same result if I do ifconfig carp0 10.194.116.28/22.

Have you tried using a /32 mask on carp0 instead of /22?
That might work around the problem.

I believe this problem is fixed in 6.3. Can you confirm?



ISDN Card /PRI Card support on OpenBSD

2018-07-11 Thread Tom Smyth
Hello all,

this is an odd one but I have a client that needs to
migrate some legacy services
Is there support for ISDN type interfaces in OpenBSD ?

man / apropos shows nothing

or is there a package that would add ISDN support
(although I didnt see a package containing isdn or ISDN
in packages)
is ISDN support available under a different name by any chance

Thanks

Tom Smyth



samba at snapshots

2018-07-11 Thread Tuyosi T
hi all .

it is supprising openbsd snapshots runs samba .
and
windows 10 accesses "OpenSamba" .

but this may contain some errors .
then please point them .

1)/etc/samba/smb.conf

[global]
workgroup = WORKGROUP
server string = SAMBA SERVER Version %v
netbios name = OpenSamba
security = user
passdb backend = tdbsam
dos charset = CP932
unix charset = UTF-8
wins support = yes
load printers = no
disable spoolss = yes
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[Share]
comment = Share Folder for All Users
path = /home/share/
browsable = yes
writable = yes
read only = no

2)
/etc/rc.d/samba restart
nmbd(ok)
smbd(ok)
smbd(ok)
nmbd(ok)

3) testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (128) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[Share]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

Global parameters
[global]
disable spoolss = Yes
dos charset = CP932
load printers = No
netbios name = OPENSAMBA
security = USER
server string = SAMBA SERVER Version %v
wins support = Yes
idmap config * : backend = tdb

[homes]
browseable = No
comment = Home Directories
inherit acls = Yes
read only = No
valid users = %S %D%w%S

[Share]
comment = Share Folder for All Users
path = /home/share/
read only = No

---
regards


Re: roundcube installation php modules

2018-07-11 Thread Stuart Henderson
> On 07/10/2018 04:25 PM, Vijay Sankar wrote:
>> Sorry to interject -- just wondering if you read the instructions
>> towards the bottom in /usr/local/share/doc/pkg-readmes for php-5.6. It
>> specifically says

On 2018-07-10, Danny AwesomeRetro  wrote:
> No problem,that fixed the issue for me ;)
>
> thank you,this has cost me around 18 hours of searching

btw, when you run pkg_add and install something which comes with a
pkg-readme file, it tells you about it - it's always worth reading these
as they were written by the porter and have specific information about
use with the standard OpenBSD setup.

btw (offtopic :), are AwesomeRetro coming to emfcamp again this year?




Re: Ratgod leadership?

2018-07-11 Thread Ywe Cærlyn

And dommmainname shop reply is, to remove them from your argumentation!

And I see no more point in talking on this list either. This was truly a 
worst case scenario, of talking about something as good as what I am 
working on. These people are ofcourse completely excluded, from any such 
understanding of any such grace.




Re: Ratgod leadership?

2018-07-11 Thread Ywe Cærlyn
N DUUUDE. THEO DE RAADT IS LOBOTOMIZED FOR 
SCHIZOPHRENIA!!


Well that just takes the cake on this argument. Lol.



Re: Configuration of a umb device

2018-07-11 Thread Gregory Edigarov




On 11.07.18 07:13, salan...@ouvaton.org wrote:

9 juillet 2018 08:12 "Gregory Edigarov"  a écrit:

perhaps a simple
route add -net default 100.144.58.18
will do the trick

I have done that, but this result does not change.

# ifconfig umb0
umb0: flags=8851 mtu 1500
 index 13 priority 0 llprio 3
 roaming disabled registration home network
 state up cell-class EDGE rssi -81dBm speed 60.4Kps up 242Kps down
 SIM initialized PIN valid (3 attempts left)
 subscriber-id 310260855911295 ICC-id 8901260851159112954 provider US 
Mobile
 device KRD 131 30/123 - R1A/1 IMEI 004401701565398 firmware R3C11 
(Pro), R4A10 (App)
 APN pwg
 dns 10.177.0.34 10.177.0.210
 status: active
 inet 100.146.18.133 --> 100.146.18.131 netmask 0xfff8
# route add -net default 100.146.18.131
# ping -c1 100.146.18.131
PING 100.146.18.131 (100.146.18.131): 56 data bytes

--- 100.146.18.131 ping statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss


but at least, now there is no error.
may be it's a provider that blocks traffic.
also can you confirm pf is disabled on your side?



Re: Ratgod leadership?

2018-07-11 Thread Ywe Cærlyn
Oh yes, maximal psychopathy. While I on the other hand, request a 
drugtest on both you and Theo De Raadt, probably other involved, and a 
childporn investigation on difficult parties should also be done.  Linus 
Diving is indeed a paedophile metaphor. GNU hides theft. Theo is a junkie.


Who do you think you´re fooling? You are obviously in a very intense 
fantasyworld, where your reply is thought ok. How much of a fairyworld 
is a pedophiles?
Not just pedophiles. Junkie Pedophiles. Who moralize, and even claim to 
be gods. GNU indeed is from the use of psychedelics where God includes 
pedophile sex with Richard Stallman. He dances around, in his own world 
still, believing it is a god. How many psychiatric diagnosises does he 
have? And how much drugs does he use? Just testing him alone, would say 
a lot.


Don´t you just wish you just shut up now, Joseph. Because reality 
called, where you are shit looser.


And your pedophile GNU god is shit looser: 
https://www.youtube.com/watch?v=ZtnfFtaKzhk


And your ratgod is shit looser.

You should truly take a good shitting on, in the pits of hell.

BEST,
Ywe.

Den 7/10/2018 21:42, skrev Joseph Mayer:

"Ywe"/nyt.cloud owner,

I have filed an abuse complaint at www.domainname.shop asking them to
discontinue your domain/email/hosting deal with them, and filed a request for
your domain name at https://rddsrequest.nic.cloud/ .

I have also asked them to not serve you personally in the future as you can be
expected to fall back into harassing open source emailing lists using the
services they provide you.

Your unsolicited emails irritate me immensely and I ask you again to withdraw
from this emailing list. I hope you save community participants the effort of
needing to phone every single emailing host abuse line on this planet to have
you dropped out of here.

I find your actions toxic and shameful. Please choose another outlet than this
emailing list, your spam is not welcome here.

Joseph

On July 10, 2018 6:57 PM, Email  wrote:

What does Theo De Raadt mean anyway? God Is The Rat? Ratgod leadership
may indeed take the side of junkie pedophiles.

And we will do with available source regardless of fairyworld ideas of
leadership.