Re: Cannot mount a LAN samba share with usmb

2021-02-03 Thread Anindya Mukherjee
>On 2021-02-03, tilikoom  wrote:
>> 
>> Hello - sorry if this is the wrong support channel for this - I am
>> quite new to \ this stuff. I cannot mount a samba share in a LAN with
>> usmb. The binary \ successfully parses my .usmb.conf but then drops
>> me into some sort of assembly \ prompt that shows: Opcode: init
>> 
>> Command: '$ usmb -c /home/myuser/.usmb.conf -d local_mount'
>> Permissions: 'chmod 600 /home/myuser/.usmb.conf' Owner: 'chown
>> root:wheel /home/myuser/.usmb.conf'

I have it working on my machine (fairly recent snapshot).
Here is my usmb.conf, in case it's useful:
=


  
rommie
anindya
  

  
rommie
rommie
/home/anindya/Downloads/mnt
allow_other
  

=
Mounts with:
doas usmb -c ~/Downloads/usmb.conf -u rommie

Luckily the "allow_other" option works so I can set permissions as root
and have read/write access as my normal user.

>
>FUSE on OpenBSD doesn't currently work as a normal user, only as root.
Yes, unfortunately one has to be root.
>
>There may be other problems too, but that's the first..

Some of the options (like umask) don't work. Also the performance is not
great but for quick transfers it's usable. FUSE won't have good
performance anyway.

Anindya



IPv6 - Using 4G Wan

2021-02-03 Thread Antonino Sidoti
Hello,

I have a 4G Wan Service which is IPv6 enabled. I get an IPv6 address and it 
will populate the route table automatically, though I am unable to connect to 
sites using IPv6, "test-ipv6.com" will say I have no IPv6 address. Also, I 
cannot ping the IPv6 default gateway address or any IPv6 sites, e.g. 
google.com. I am using “ping6”.

I know the 4G connection is working as I can connect my MacBook directly to the 
4G Modem (configured in Bridge Mode) and my MacBook gets an IPv6 address and I 
a have working Internet connection with no issues.

I have provided some information below regarding my setup. I am using openbsd 
6.8 (release) with latest patches installed. Any hints will be appreciated.

/etc/hostname.em0
dhcp
inet6 autoconf

Ifconfig
ofw$ ifconfig  
lo0: flags=8049 mtu 32768
index 4 priority 0 llprio 3
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
em0: flags=a08843 
mtu 1500
lladdr 00:e0:67:15:e7:82
index 1 priority 0 llprio 3
groups: egress
media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
status: active
inet6 fe80::2e0:67ff:fe15:e782%em0 prefixlen 64 scopeid 0x1
inet 22.208.0.133 netmask 0xff00 broadcast 22.208.0.255
inet6 2001:8004:1420:58d8:72b0:a75d:c8db:22f5 prefixlen 64 autoconf
inet6 2001:8004:1420:58d8:7705:d6c3:8775:babe prefixlen 64 autoconf 
autoconfprivacy pltime 84436 vltime 171336
em1: flags=8843 mtu 1500
lladdr 00:e0:67:15:e7:83
index 2 priority 0 llprio 3
media: Ethernet autoselect (100baseTX full-duplex,rxpause,txpause)
status: active
inet 10.99.1.1 netmask 0xff00 broadcast 10.99.1.255
enc0: flags=0<>
index 3 priority 0 llprio 3
groups: enc
status: active
pflog0: flags=141 mtu 33136
index 5 priority 0 llprio 3
groups: pflog

Ndp output
ofw$ ndp -a
Neighbor Linklayer Address   Netif ExpireS Flags
2001:8004:1420:58d8:72b0:a75d:c8db:22f5 00:e0:67:15:e7:82  em0 permanent R l
2001:8004:1420:58d8:7705:d6c3:8775:babe 00:e0:67:15:e7:82  em0 permanent R l
fe80::2e0:67ff:fe15:e782%em0 00:e0:67:15:e7:82 em0 permanent R l
fe80::54b0:dcff:fe43:f656%em082:63:9c:36:23:a2 em0 23h35m6s  S R
fe80::81f8:3655:c614:449c%em0(incomplete)  em0 expired   I R

Route Table

Internet:
DestinationGatewayFlags   Refs  Use   Mtu  Prio Iface
default22.208.0.1 UGS5 9360 - 8 em0  
base-address.mcast localhost  URS00 32768 8 lo0  
10.99.1/24 ofwUCn10 - 4 em1  
ofw00:e0:67:15:e7:83  UHLl   0  440 - 1 em1  
10.99.1.10320:c9:d0:2c:09:22  UHLc   2 9374 - 3 em1  
10.99.1.255ofwUHb0   22 - 1 em1  
22.208.0/2422.208.0.133   UCn10 - 4 em0  
22.208.0.1 82:63:9c:36:23:a2  UHLch  1  277 - 3 em0  
22.208.0.133   00:e0:67:15:e7:82  UHLl   0  419 - 1 em0  
22.208.0.255   22.208.0.133   UHb00 - 1 em0  
127/8  localhost  UGRS   00 32768 8 lo0  
localhost  localhost  UHhl   12 32768 1 lo0  

Internet6:
DestinationGatewayFlags   Refs  
Use   Mtu  Prio Iface
defaultfe80::81f8:3655:c614:449c%em0  UGS0  
 14 - 8 em0  
::/96  localhost  UGRS   0  
  0 32768 8 lo0  
localhost  localhost  UHhl  10  
 20 32768 1 lo0  
:::0.0.0.0/96  localhost  UGRS   0  
  0 32768 8 lo0  
2001:8004:1420:58d8::/64   2001:8004:1420:58d8:72b0:a75d: UCPn   0  
  1 - 4 em0  
2001:8004:1420:58d8::/64   2001:8004:1420:58d8:7705:d6c3: UCPn   0  
  0 - 4 em0  
2001:8004:1420:58d8:72b0:a75d:c8db 00:e0:67:15:e7:82  UHLl   0  
  2 - 1 em0  
2001:8004:1420:58d8:7705:d6c3:8775 00:e0:67:15:e7:82  UHLl   0  
 17 - 1 em0  
2002::/24  localhost  UGRS   0  
  0 32768 8 lo0  
2002:7f00::/24 localhost  UGRS   0  
  0 32768 8 lo0  
2002:e000::/20 localhost  UGRS   0  
  0 32768 8 lo0  
2002:ff00::/24 localhost  UGRS   0  
  0 32768 8 lo0  
fe80::/10  localhost  UGRS   0  
  1 32768 

Re: Cannot mount a LAN samba share with usmb

2021-02-03 Thread Stuart Henderson
On 2021-02-03, tilikoom  wrote:
> This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
> ---70f6a2a78cd3a92ae8289939c5051701
> Content-Type: 
> multipart/alternative;boundary=-f606deaeef98ebf2eaa6cb6012e96e31
>
> ---f606deaeef98ebf2eaa6cb6012e96e31
> Content-Transfer-Encoding: 8bit
> Content-Type: text/plain;charset=utf-8
>
> Hello - sorry if this is the wrong support channel for this - I am quite new 
> to this stuff. I cannot mount a samba share in a LAN with usmb. The binary 
> successfully parses my .usmb.conf but then drops me into some sort of 
> assembly prompt that shows:
>
> Opcode: init
>
> Command: '$ usmb -c /home/myuser/.usmb.conf -d local_mount'
> Permissions: 'chmod 600 /home/myuser/.usmb.conf'
> Owner: 'chown root:wheel /home/myuser/.usmb.conf'

FUSE on OpenBSD doesn't currently work as a normal user, only as root.

There may be other problems too, but that's the first..




Re: OpenMPI 4.0.5 segfault with mpi_file_open() [ OpenBSD 6.8 release & current ]

2021-02-03 Thread j

I looked into the IO issue, one hint is found with

export OMPI_MCA_io_base_verbose=40
mpirun -np 1 -H localhost:1 ./mpitest
...
 mca: base: components_open: found loaded component ompio
 mca: base: components_open: component ompio open function successful
 mca: base: components_open: found loaded component romio321
 mca: base: components_open: component romio321 open function successful
...

So in fact there are two IO components available: ompio and romio321. 
The

first is selected (and fails).  If you select the second, mpitest works:

$ mpirun -np 1 -H localhost:1 --mca io romio321 ./mpitest
This is process 1 / 1

You can make this permanent with

export OMPI_MCA_io=romio321

added to your login scripts.

HTH.  (OpenMPI is too complicated for it's own good.)


John



On 2021-02-03 09:51, j...@bitminer.ca wrote:

Hi Martin,

I haven't run into your MPI_File_open issue (don't use it), but
your code does fail for me too in the same way.


$> mpirun -np 1 -H localhost:1 ./fmpitest
fmpitest:/usr/local/lib/libmpi.so.5.0: ./fmpitest : WARNING:
symbol(mpi_fortran_statuses_ignore_) size mismatch,
relink your program
fmpitest:/usr/local/lib/libmpi.so.5.0: ./fmpitest : WARNING:
symbol(mpi_fortran_status_ignore_) size mismatch,
relink your program


The Fortran symbol error you see is common and I'm not sure of the
cause.  I did look into it at one point and decided all definitions 
were

in fact identical, so it might be a weird compiler+linker issue.

It's never been symptomatic beyond the warning so I ignore it.


--John




Re: OpenMPI 4.0.5 segfault with mpi_file_open() [ OpenBSD 6.8 release & current ]

2021-02-03 Thread j

Hi Martin,

I haven't run into your MPI_File_open issue (don't use it), but
your code does fail for me too in the same way.


$> mpirun -np 1 -H localhost:1 ./fmpitest
fmpitest:/usr/local/lib/libmpi.so.5.0: ./fmpitest : WARNING:
symbol(mpi_fortran_statuses_ignore_) size mismatch,
relink your program
fmpitest:/usr/local/lib/libmpi.so.5.0: ./fmpitest : WARNING:
symbol(mpi_fortran_status_ignore_) size mismatch,
relink your program


The Fortran symbol error you see is common and I'm not sure of the
cause.  I did look into it at one point and decided all definitions were
in fact identical, so it might be a weird compiler+linker issue.

It's never been symptomatic beyond the warning so I ignore it.


--John



Cannot mount a LAN samba share with usmb

2021-02-03 Thread tilikoom


signature.asc
Description: OpenPGP digital signature


HP 13-w0XX laptop's Realtek ALC295 audio codec - Not all speakers produce sound

2021-02-03 Thread Eugene Moz.
Hello, I'm looking to get quad speakers working on my laptop, only 2
front speakers are working, 2 back speakers are not. I took a
peek at /usr/src/sys/dev/pci/azalia_codec.c, my 0x10ec0295 codec doesn't
have explicit support. I might figure how to add support eventualy, I
used to run Linux on it. I was using this hda-jack-retask.fw patch to get
all the speakers working there, if anyone is familiar with this. I'll paste it
here.

$ cat hda-jack-retask.fv
[codec]
0x10ec0295 0x103c827e 0

[pincfg]
0x12 0xb7a60130
0x13 0x4000
0x14 0x02170150
0x16 0x41f0
0x17 0x90170110
0x18 0x41f0
0x19 0x50170110
0x1a 0x41f0
0x1b 0x41f0
0x1d 0x4061
0x1e 0x41f0
0x21 0x01174150

Would be great to get some tips on this.

# mixerctl -v
inputs.dac-2:3=158,158
inputs.dac-0:1=158,158
record.adc-0:1_mute=off  [ off on ]
record.adc-0:1=124,124
record.adc-2:3_mute=off  [ off on ]
record.adc-2:3=124,124
record.adc-4:5_mute=off  [ off on ]
record.adc-4:5=124,124
inputs.mic=85,85
outputs.spkr_source=dac-2:3  [ dac-2:3 ]
outputs.spkr_mute=off  [ off on ]
outputs.spkr_eapd=on  [ off on ]
inputs.mic2=85,85
outputs.mic2_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80 
input-vr100 ]
outputs.hp_source=dac-0:1  [ dac-2:3 dac-0:1 ]
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=off  [ off on ]
outputs.hp_eapd=on  [ off on ]
record.adc-4:5_source=mic2  { mic2 }
record.adc-2:3_source=mic2,mic  { mic2 mic }
record.adc-0:1_source=mic  [ mic ]
outputs.mic2_sense=unplugged  [ unplugged plugged ]
outputs.hp_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp  { hp }
outputs.master=158,158
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp  { dac-2:3 dac-0:1 spkr hp }
record.volume=124,124
record.volume.mute=off  [ off on ]
record.volume.slaves=adc-0:1,adc-2:3,adc-4:5  { adc-0:1 adc-2:3 adc-4:5 mic 
mic2 }
record.enable=sysctl  [ off on sysctl ]

# dmesg
OpenBSD 6.8-stable (GENERIC.MP) #0: Tue Feb  2 11:53:42 MSK 2021
u...@lap.lan:/sys/arch/amd64/compile/GENERIC.MP
real mem = 8446021632 (8054MB)
avail mem = 8175013888 (7796MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x3b2d5000 (40 entries)
bios0: vendor American Megatrends Inc. version "F.50" date 12/12/2019
bios0: HP HP Spectre x360 Convertible 13-w0XX
acpi0 at bios0: ACPI 6.1
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT MCFG SSDT FIDT SSDT MSDM SSDT HPET SSDT UEFI 
SSDT LPIT WSMT SSDT SSDT DBGP DBG2 DMAR NHLT TPM2 ASF! BGRT
acpi0: wakeup devices PS2K(S3) PS2M(S3) RP09(S4) PXSX(S4) RP10(S4) PXSX(S4) 
RP11(S4) PXSX(S4) RP12(S4) PXSX(S4) RP13(S4) PXSX(S4) RP01(S4) PXSX(S4) 
RP02(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, 3094.06 MHz, 06-8e-09
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, 3092.81 MHz, 06-8e-09
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz, 3092.80 MHz, 06-8e-09
cpu2: 

Re: relayd + pfsync

2021-02-03 Thread Jordan Geoghegan



On 2/1/21 8:20 PM, Kapetanakis Giannis wrote:
> On 02/02/2021 05:18, Jordan Geoghegan wrote:
>> Hello,
>>
>> I had a question about using relayd with pfsync.
>>
>> I have a small gateway/load-balancer set up with relayd, carp and pfsync 
>> plus BGPd for IP failover, and everything is working great. I was pleasantly 
>> surprised at how easy it was to get pfsync tunnelled over wireguard. Things 
>> failover perfectly, and I'm happy as a clam.
>>
>> I however do have a question about some pfsync/relayd details that I'm not 
>> fully clear on:
>>
>> With all the plumbing being done with relayd and all the associated 
>> TCP/TLS/HTTP(s) checks it's doing, it ends up setting up and tearing down a 
>> decent number of connections on a recurring basis. I know in PF you can use 
>> the "no-sync" keyword to prevent states created by certain rules from being 
>> synced across the wire, but I haven't found a way to do this with 
>> rules/states generated by relayd.
>>
>> It's probably largely irrelevant in the grand scheme of things, but I found 
>> it slightly irritating having hundreds or thousands of state table entries 
>> experiencing constant churn while being synced over the wire. Having the 
>> noise from the relayd connectivity checks syncing back and forth makes using 
>> tcpdump on a pfsync interface much less convenient. All these state table 
>> entries will never be used should the machine fail-over, as all the 
>> connectivity checks are initiated from the local IP address, rather that the 
>> CARP address.
>>
>> So I guess what I'm trying to ask is: Is there a way to have relayd not sync 
>> it's TCP/TLS/etc connectivity checks via pfsync?
>>
>> I was hoping to get a sanity check here so I can confirm weather or not I'm 
>> totally off base here.
>>
>> I currently have "keep state (no-sync)" peppered throughout my config for 
>> rules I want excluded from pfsync, as the pf config is quite simple. Maybe 
>> I'm missing something obvious, but is there a "sync" option? ie the ability 
>> to manually specify exactly which rules/states you want synced?
>>
>> Would some sort of rule like "pass out on $int_if proto tcp to any user 
>> _relayd keep state (no-sync)" do what I want, or would that also catch the 
>> traffic I'm trying to load balance as well?
>>
>> Any insight or advice would be much appreciated.
>>
>> P.S  Sorry for the wall of text
>>
>> Regards,
>>
>> Jordan
>
> Hi,
>
> As you said, you can use the no-sync.
>
> Relayd checks don't create any pf rules. Only the listen creates rules
> pfctl -sr -a'relayd/ldap'
>
> pass in quick on rdomain 0 inet proto tcp from any to x.x.x.x port = 636 
> flags S/SA keep state (tcp.established 4200) tag RELAYD_ldap rdr-to  
> port 1636 least-states sticky-address
>
> local checks from LB to hosts can have the no-sync.
> I have these in my config
>
> # checks from LB
> pass out quick on $ldap_if proto tcp from ($ldap_if) to ($ldap_if:network) 
> port {1389, 1636} keep state (no-sync)
>
> Maybe you have another rule (out on $ldap_if) before, that allows the traffic?
>
> I handle incoming traffic (to LB) with pftag on relayd.conf and I 
> specifically allow them on out direction.
>
> # client rules
> pass out quick on $ldap_if tagged RELAYD_ldap keep state (tcp.established 
> 4200)
>
> G
>
>

Hello,

Thanks for the sanity check, I've got everything working as expected now!

I need to learn to step away from the keyboard when I'm getting tired and 
frustrated. The answer seems obvious in retrospect, but at least its figured 
out now.

Regards,

Jordan




Re: umount at boot possible?

2021-02-03 Thread misc nick
It worked exactly as you explained it and i learned how to use ed on the way.

A million thanks Paul!

> Sent: Tuesday, February 02, 2021 at 2:38 PM
> From: "Paul de Weerd" 
> To: "misc nick" 
> Cc: "misc" 
> Subject: Re: umount at boot possible?
>
> On Tue, Feb 02, 2021 at 01:30:28PM +0100, misc nick wrote:
> | Hello
> |
> | I have a separate disk that i was mounting as a nfs partition. That disk 
> crashed (it was very old). Now that OpenBSD 6.7/i386 release system cannot 
> boot because it can't mount the disk.
> | Is it possible to umount the partition or somehow skip mounting it at boot 
> time and continue booting from the disk that contains the OS?
>
> Before loading the OpenBSD kernel, at the bootloader type `boot -s`.
> This boots the system in single user mode.  Now you can manually mount
> the root filesystem (`mount -u -w /`), and you can then fix your
> /etc/fstab to exclude the broken disk.
>
> Note that in single user mode, many userland tools are not available
> if /usr is on a separate partition (which is a sane default).  You'll
> have to fix /etc/fstab with tools like cat and ed, or mount /usr.
>
> Once things are fixed, unmount everything that you manually mounted,
> and remount the root filesystem read-only again (`mount -u -r /`).
> Then exit the single user shell, the system should continue booting
> from there.
>
> Cheers,
>
> Paul 'WEiRD' de Weerd
>
> --
> >[<++>-]<+++.>+++[<-->-]<.>+++[<+
> +++>-]<.>++[<>-]<+.--.[-]
>  http://www.weirdnet.nl/
>



Re: rsync over ssh, slow speed (700 kB/s) on x230

2021-02-03 Thread Sven Wolf

Hi,

over cable/lan everything is fine.
On my router (OpenWRT) I detected a speed/bandwidth drop from 72 Mbit/s 
down to 6 Mbit/s when I start the copy over wireless. That's strange, 
because under Linux I don't see this issue.

Lesson learned: use the cable :)

Best regards,
Sven

On 2/2/21 11:04 PM, Sven Wolf wrote:

Hi,

on my x230 the rsync over ssh speed is extremly slow - about 700 kB/s 
over wireless. I don't see a performance issue on the source and target 
systems. When I reboot to Linux the speed is acceptable - about 12 mB/s 
over wireless.

The compression an ciphers parameters don't have impact to the speed.

Interesting is that under OpenBSD in debug mode the lines get printed 
slowly.

692.05kB/s    0:17:16  debug2: channel 0: rcvd adjust 32768

Under Linux the debug lines scroll really fast over the screen
debug2: channel 0: rcvd adjust 114688

Do you have any ideas how I can solve the problem?
ulimit, openfiles limit etc. don't show any problems.

Thanks and best regards,
Sven