Re: [SOLVED] PPPoE connection does not set IP

2020-12-09 Thread Chris Narkiewicz
On Wed, Dec 09, 2020 at 10:59:53AM -, Stuart Henderson wrote:
> Setting "inet" brings the interface up automatically. Move that
> down after the point you have set the connection parameters.

I escaped newlines with \ to make it one big line and this solved the
issue. Thank you.

Cheerio,
Chris


signature.asc
Description: PGP signature


Re: Default installurl and Package Source

2020-12-09 Thread Chris Bennett
On Wed, Dec 09, 2020 at 11:22:58AM +0800, Tito Mari Francis Escaño wrote:
> Hi misc,
> I recently installed 6.8 on VM then applied errata patches.
> When I tried to install git, it complained that git is not in the
> packages-stable folder, I was pleasantly surprised. The
> /etc/installurl by default is http://cdn.openbsd.org/pub/OpenBSD, and
> I got error 503 on the site. Checking the default URL indicates it may
> be down, same goes for Cloudflare CDN, Verizon seems working alright.
> When I changed /etc/installurl to where I used to get packages:
> http://ftp.jaist.ac.jp/pub/OpenBSD, it worked as expected.
> This raised the following questions:
> Does this mean when we apply errata patches, we're now automatically
> using stable release and need to use stable packages?
> Is it advisable to keep the /etc/installurl automatically default to
> http://cdn.openbsd.org/pub/OpenBSD or should users be advised to
> select packages from package sources geographically near them?
> Please advise. Thanks and keep up the great work.
> 

There are two packages that might help.
dbip-city-lite
dbip-country-lite

If you find a good mirror, you can hard code the PKG_PATH
export PKG_PATH=...
it can use multiple servers separated by :
Be sure to change it to 6.9 later!

That's what I do when I have cdn problems.
Avoid the OpenBSD source, if possible.
Please use https. Some ISP's insert crap into http.
Certs are free, why doesn't a trusted source not have one?

IMHO, you really should run stable. Although you might look at the
patches and decide not to. packages-stable may or may not have security
fixes you need. syspatch often, but not always, needs a reboot.

But it's your system, do as you please. A security patch might not be
relevant to you.

Chris Bennett




Re: PPPoE connection does not set IP

2020-12-09 Thread Chris Narkiewicz
On Wed, Dec 09, 2020 at 01:12:11PM +0100, Georg Bege wrote:
> Hello,
> 
> Im also on an VDSL connection from the german ISP T-Online -
> 
> I see that you dont use any VLAN,  are you sure that this is
> correct?

This is supposed to be handled by the ISPs modem internally.

When I look at a working OpenWrt configuration,
it uses VLAN on DSL interface and exposes pppoe interface
without VLAN.

Cheers,
Chris


signature.asc
Description: PGP signature


OT ahci failure

2020-12-09 Thread trubak
> Message-ID: 
> [...]
thank you for your input and time,

yes i'm on the latest BIOS and prior to fiddling with the system there
goes atactl(8) outcome should it help to determine my original concern
whether this is a dying motherboard or just a hard disk.

yes i can see its failures yet based on
https://en.wikipedia.org/wiki/S.M.A.R.T. i'am not enough skilled to
judge if these could be the root cause of the "acpi0: bla bla 31"
problem described in my previous message (despite of whether this disk
qualifies for a trash - which it is based sole its age - sitting on a
safe backup i'm happily going to ride it down to death) but budgeting
2021 just hoped (not) to learn it is the motherboard itself, because if
it is then (unless sponsoring same old technology) more nickels will be
needed for a newish cpu and the core.

but it may be very well not predictable based my previous message so
i'm disappearing from here, meantime aforesaid output:

$ doas atactl sd2 smartstatus
No SMART threshold exceeded

$ doas atactl sd2 readattr
Attributes table revision: 16
ID  Attribute name  Threshold   Value   Raw
  1 Raw Read Error Rate   51200 0x0220
  3 Spin Up Time  21150 0x0d82
  4 Start/Stop Count   0 90 0x2a1e
  5 Reallocated Sector Count 140200 0x
  7 Seek Error Rate    0100 0x
  9 Power-On Hours Count   0 79 0x3c46
10  Spin Retry Count   0100 0x
11  Calibration Retry Count    0100 0x
12  Device Power Cycle Count   0 90 0x2a1a
192 Power-Off Retract Count    0199 0x03cf
193 Load Cycle Count   0197 0x264e
194 Temperature    0105 0x0026
196 Reallocation Event Count   0200 0x
197 Current Pending Sector Count   0200 0x0003
198 Off-Line Scan Uncorrectable Sect   0200 0x0002
199 Ultra DMA CRC Error Count  0200 0x002e
200 Write Error Rate   0200 0x0002

$ echo; for i in comp directory selftest summary; do { echo "smartreadlog for 
$i:"; doas atactl sd2 smartreadlog $i; echo; }; done

smartreadlog for comp:
No log entries

smartreadlog for directory:
Log address 1: 1 sectors
Log address 2: 5 sectors
Log address 3: 0 sectors
Log address 4: 0 sectors
Log address 5: 0 sectors
Log address 6: 1 sectors
Log address 7: 0 sectors
Log address 8: 0 sectors
Log address 9: 1 sectors
Log address 10: 0 sectors
Log address 11: 0 sectors
Log address 12: 0 sectors
Log address 13: 0 sectors
Log address 14: 0 sectors
Log address 15: 0 sectors
Log address 16: 0 sectors
Log address 17: 0 sectors
Log address 18: 0 sectors
Log address 19: 0 sectors
Log address 20: 0 sectors
Log address 21: 0 sectors
Log address 22: 0 sectors
Log address 23: 0 sectors
Log address 24: 0 sectors
Log address 25: 0 sectors
Log address 26: 0 sectors
Log address 27: 0 sectors
Log address 28: 0 sectors
Log address 29: 0 sectors
Log address 30: 0 sectors
Log address 31: 0 sectors
Log address 32: 0 sectors
Log address 33: 0 sectors
Log address 34: 0 sectors
Log address 35: 0 sectors
Log address 36: 0 sectors
Log address 37: 0 sectors
Log address 38: 0 sectors
Log address 39: 0 sectors
Log address 40: 0 sectors
Log address 41: 0 sectors
Log address 42: 0 sectors
Log address 43: 0 sectors
Log address 44: 0 sectors
Log address 45: 0 sectors
Log address 46: 0 sectors
Log address 47: 0 sectors
Log address 48: 0 sectors
Log address 49: 0 sectors
Log address 50: 0 sectors
Log address 51: 0 sectors
Log address 52: 0 sectors
Log address 53: 0 sectors
Log address 54: 0 sectors
Log address 55: 0 sectors
Log address 56: 0 sectors
Log address 57: 0 sectors
Log address 58: 0 sectors
Log address 59: 0 sectors
Log address 60: 0 sectors
Log address 61: 0 sectors
Log address 62: 0 sectors
Log address 63: 0 sectors
Log address 64: 0 sectors
Log address 65: 0 sectors
Log address 66: 0 sectors
Log address 67: 0 sectors
Log address 68: 0 sectors
Log address 69: 0 sectors
Log address 70: 0 sectors
Log address 71: 0 sectors
Log address 72: 0 sectors
Log address 73: 0 sectors
Log address 74: 0 sectors
Log address 75: 0 sectors
Log address 76: 0 sectors
Log address 77: 0 sectors
Log address 78: 0 sectors
Log address 79: 0 sectors
Log address 80: 0 sectors
Log address 81: 0 sectors
Log address 82: 0 sectors
Log address 83: 0 sectors
Log address 84: 0 sectors
Log address 85: 0 sectors
Log address 86: 0 sectors
Log address 87: 0 sectors
Log address 88: 0 sectors
Log address 89: 0 sectors
Log address 

Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-09 Thread Bodie




On 9.12.2020 20:43, Stefan Hagen wrote:

Hello Zachary,

Zachary Campbell wrote:

Any luck with this? I am also struggling to get the internal
mic to work on the X1 Carbon 7th Gen. Have gone through
everything discussed here, but still no luck.

My dmesg and mixerctl match those already shared in thread.
Happy to share anything else that might be helpful, but after
reading through the multimedia FAQ and this thread I am
not quite sure where to go next.


No progress here.

I think all needed information is in here.
https://bbs.archlinux.org/viewtopic.php?id=249900



That part on SST remind me my problem with audio on T590 under Windows.
For at least two patch builds Windows had issue to picking up wrong
driver for audio. Instead of regular HD Audio they were setting
up SST HD Audio and then output/input were not working.

So maybe it is something wrong inside that HW like reporting wrong
capabilities?


Seems to be something for an azalia developer.

Best Regards,
Stefan




Re: support new

2020-12-09 Thread AMG Labs
Thank you guys.

Cheers!

Em qua., 9 de dez. de 2020 às 10:59, Ingo Schwarze 
escreveu:

> Hi Janne,
>
> Janne Johansson wrote on Wed, Dec 09, 2020 at 01:23:23PM +0100:
>
> > There is some,
> >
> > "We offer the server management service. We work on the deployment and
> > management of servers with open source technologies such as CentOS,
> Debian,
> > FreeBSD, OpenBSD and Ubuntu Server."
>
> Fair enough, sorry for missing that, not sure why i did.
>
> Maybe that's relatively new, it seems not all search engines picked
> it up yet.
>
> Anyway, i just added the entry.
>
> Yours,
>   Ingo
>


-- 
*AMG Labs*
--
www.amglabs.net
(51) 92000 7613


Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-09 Thread Stefan Hagen
Hello Zachary,

Zachary Campbell wrote:
> Any luck with this? I am also struggling to get the internal
> mic to work on the X1 Carbon 7th Gen. Have gone through
> everything discussed here, but still no luck.
>
> My dmesg and mixerctl match those already shared in thread.
> Happy to share anything else that might be helpful, but after
> reading through the multimedia FAQ and this thread I am
> not quite sure where to go next.

No progress here.

I think all needed information is in here. 
https://bbs.archlinux.org/viewtopic.php?id=249900

Seems to be something for an azalia developer.

Best Regards,
Stefan



Re: Internal Microphone on Thinkpad X1 Carbon 7th gen not working

2020-12-09 Thread Zachary Campbell
Hello,

Any luck with this? I am also struggling to get the internal
mic to work on the X1 Carbon 7th Gen. Have gone through
everything discussed here, but still no luck.

My dmesg and mixerctl match those already shared in thread.
Happy to share anything else that might be helpful, but after
reading through the multimedia FAQ and this thread I am
not quite sure where to go next.

Best,
Zachary
Stefan Hagen writes:

> Hello,
>
> I'm struggling to get the internal microphone working on my Thinkpad
> X1 Carbon 7th Gen.
>
> I can record from an external USB microphone on OpenBSD. It is only the
> internal microphone I'm struggling with.
>
> To rule out a hardware fault, I booted windows from a USB drive and the
> microphone works fine in this OS. While being there, I also updated the 
> bios and thunderbolt firmware to the latest version.
>
> Is anyone here that got it working on this machine?
>
> dmesg:
> azalia0 at pci0 dev 31 function 3 "Intel 300 Series HD Audio" rev 0x11: msi
> azalia0: codecs: Realtek ALC285, Intel/0x280b, using Realtek ALC285
> audio0 at azalia0
>
> $ sysctl kern.audio.record
> kern.audio.record=1
>
> $ mixerctl -v
> inputs.dac-2:3=174,174
> inputs.dac-0:1=174,174
> 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
> outputs.spkr_source=dac-2:3  [ dac-2:3 ]
> outputs.spkr_mute=off  [ off on ]
> outputs.spkr_eapd=on  [ off on ]
> outputs.spkr2_source=dac-0:1  [ dac-2:3 dac-0:1 ]
> outputs.spkr2_mute=off  [ off on ]
> outputs.spkr2_boost=off  [ off on ]
> inputs.mic=85,85
> outputs.mic_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-2:3_source=mic  { mic }
> record.adc-0:1_source=mic  { mic }
> outputs.mic_sense=unplugged  [ unplugged plugged ]
> outputs.hp_sense=unplugged  [ unplugged plugged ]
> outputs.spkr_muters=hp  { hp }
> outputs.master=255,255
> outputs.master.mute=off  [ off on ]
> outputs.master.slaves=dac-2:3,dac-0:1,spkr,spkr2,hp  { dac-2:3 dac-0:1 spkr 
> spkr2 hp }
> record.volume=124,124
> record.volume.mute=off  [ off on ]
> record.volume.slaves=adc-0:1,adc-2:3  { adc-0:1 adc-2:3 mic }
> record.enable=sysctl  [ off on sysctl ]
>
> I also cranked inputs.mic and record.volume up to 255,255 - no 
> difference.
>
> $ sndiod -ddd -f rsnd/0 -m play,rec # while aucat -o test.wav
> snd0 pst=cfg.default: rec=0:1 play=0:1 vol=23170 dup
> helper(helper|ini): created
> worker(worker|ini): created
> listen(/tmp/sndio/sock0|ini): created
> sock(sock|ini): created
> helper: recv: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
> helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
> helper: recv: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
> helper: send: cmd = 3, num = 0, idx = 0, mode = 0, fd = 3
> sock,rmsg,widl: AUTH message
> sock,rmsg,widl: HELLO message
> sock,rmsg,widl: hello from , mode = 2, ver 7
> snd0 pst=cfg: device requested
> worker: send: cmd = 0, num = 0, idx = 0, mode = 3, fd = -1
> worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 6
> snd0 pst=cfg: using rsnd/0
> worker: send: cmd = 2, num = 0, idx = 0, mode = 768, fd = -1
> worker: recv: cmd = 3, num = 0, idx = 0, mode = 0, fd = 7
> sio(dev|ini): created
> sioctl(mix|ini): created
> snd0 pst=cfg: adding output0.level=255 at 25
> snd0 pst=cfg: adding output1.level=255 at 26
> snd0 pst=cfg: adding output0.mute=0 at 57
> snd0 pst=cfg: adding output1.mute=0 at 58
> snd0 pst=cfg: adding input0.level=124 at 89
> snd0 pst=cfg: adding input1.level=124 at 90
> snd0 pst=cfg: adding input0.mute=0 at 121
> snd0 pst=cfg: adding input1.mute=0 at 122
> snd0 pst=cfg: 48000Hz, s16le, play 0:1, rec 0:1, 16 blocks of 480 frames
> snd0 pst=cfg: adding app/aucat0.level=127 at 0
> aucat0 vol=127,pst=ini: using snd0 pst=ini.default, mode = 2
> aucat0 vol=127,pst=ini,rmsg,widl: SETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: recording channels 0:1 ->0:1
> aucat0 vol=127,pst=ini,rmsg,widl: 48000Hz sample rate, 480 frame blocks
> aucat0 vol=127,pst=ini,rmsg,widl: 9600 frame buffer
> aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: GETPAR message
> aucat0 vol=127,pst=ini,rmsg,widl: START message
> aucat0 vol=127,pst=ini: recording s16le <- s16le
> cmap: nch = 2, ostart = 0, onext = 0, istart = 0, inext = 0
> aucat0 vol=127,pst=ini: allocated 9600/17280 fr buffers
> snd0 pst=ini: device started
> snd0 pst=run: started
> aucat0 vol=127,pst=run: attached at -7680, delta = 0
> aucat0 vol=127,pst=run: 48000Hz, s16le, rec 0:1, 20 blocks of 480 frames
> aucat0 vol=127,pst=run,rmsg,widl: building SETVOL message, vol = 127
> aucat0 vol=127,pst=run: prime = 16
> aucat0 vol=127,pst=run: prime = 15
> aucat0 vol=127,pst=run: prime = 14
> aucat0 vol=127,pst=run: prime = 13
> aucat0 vol=127,pst=run: prime = 12
> aucat0 vol=127,pst=run: prime = 

Re: Supported PCI USB 3 cards

2020-12-09 Thread Ed Gray
Has there been a lot of work on this in the last two releases?

I cannot provide further details at the moment but with 6.6 I was unable to
use a Samsung 1TB USB3 HDD with the onboard USB 3 ports on my desktop and
had to use USB 2.0 instead. The drive was not picked up in dmesg output at
all.

Looks like it has an NEC chip:

xhci0 at pci4 dev 0 function 0 "NEC xHCI" rev 0x03: msi, xHCI 0.96
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00
addr 1

Motherboard is ZOTAC 880GA-ITX-AE. Which is an AMD AM3 board with "AMD
RS880 Host" and "AMD RS780 PCIE". I know it's rather old hardware now and a
bit specialist being ITX but I would expect these NEC chips to be bundled
on quite a few boards.

Regards
Ed Gray

On Wed, 9 Dec 2020, 8:51 am Nils Blomqvist,  wrote:

> On 27 Nov 2020, at 17:12, Theo de Raadt wrote:
>
> > Nils Blomqvist  wrote:
> >
> >> I need a PCI card with USB 3 ports. Something like this is what I
> >> had in mind: https://amzn.to/2V8NgtT (SEDNA - PCI Express USB 3.1).
> >>
> >> Can anyone point me in the right direction for finding out if a
> >> particular card is supported, or a list of supported ones?
> >
> > All PCI USB cards should work fine.
>
> Follow-up: I got the above mentioned card which worked without a hitch.
>
>


Re: Predict which changes will be in snapshot pulled by sysupgrade?

2020-12-09 Thread Theo de Raadt
James Cook  wrote:

> My question:
> 
> If I see a recent change in CVS, is there any way to know whether it
> will be included if I run sysupgrade right now?

No.



Re: RISC-V and OpenBSD

2020-12-09 Thread Mihai Popescu
On Wed, Dec 9, 2020 at 8:21 PM Theo de Raadt  wrote:

> Mihai Popescu  wrote:
>
> > On Wed, Dec 9, 2020 at 7:57 PM Claudio Jeker 
> > wrote:
> >
> > > On Wed, Dec 09, 2020 at 05:30:48PM +0200, Mihai Popescu wrote:
> > > > Would it be interesting from the OpenBSD point of view [1] ?
> > > >
> > > > [1] http://www.micromagic.com/news/RISCv-Fastest_PR.pdf
> > >
> > > No, this is just PR. We need HW to run on.
> > >
> > > --
> > > :wq Claudio
> > >
> >
> > Of course. Some say Odroid is providing the board for the test [2].
> Sounds
> > interesting.
> >
> > [2]
> >
> https://www.eetimes.com/micro-magic-risc-v-core-claims-to-beat-apple-m1-and-arm-cortex-a9/
>
> I'm not sure what your point is.
>

Just wanted to see if RISC-V architecture is attractive for OpenBSD
development. It's open and it is from Berkeley.


>
> URLs and PDFs don't help the software development process.
>
> PDF isn't turing complete, so you can't write a cpu emulator in it.
>
> Did you really think I was thinking one can write a cpu emulator in a pdf?

Press releases are not helpful.  Only hardware in-hand helps.
>
Of course.

Thanks.


Predict which changes will be in snapshot pulled by sysupgrade?

2020-12-09 Thread James Cook
My question:

If I see a recent change in CVS, is there any way to know whether it
will be included if I run sysupgrade right now?

More info:

Usually this comes up when I see errata announced: I can find the
corresponding change in CVS, but if I run sysugprade on a -current
system, I have no idea whether that change made it in, so I don't know
if the problem is fixed on my system.

I found a couple of old (pre-2010) documents [0] [1] saying this
information is not available, but was wondering (a) whether that's
changed in the past 10 years, or (b) is there a heuristic that's likely
to work anyway, e.g. take the timestamps of the files in the
pub/OpenBSD/snapshots directory and subtract X hours.

I also had a strange experience recently where I ran sysupgrade several
times on the same machine within a few hours, and each time, got a
different #xxx in the output of uname -a (like "GENERIC.MP#206"). I
know the #xxx isn't very meaningful, but I expected it to at least
match if I download the same snapshot, and I'd expect to get the same
snapshot unless a new build has been completed in the meantime.
/etc/installurl contained https://cdn.openbsd.org/pub/OpenBSD . Is my
mental picture of what's going on too simple? Or do new builds really
appear every couple of hours? (I was trying to reproduce a bug I got on
another computer; I think it was the issue reported here:
https://marc.info/?l=openbsd-tech=160694869915567=2 .)

[0] https://undeadly.org/cgi?action=article;sid=2008094306
[1] https://ftp.openbsd.org/pub/OpenBSD/doc/history/obsd-faq43.pdf ("It
is sometimes asked...")

-- 
James



Re: RISC-V and OpenBSD

2020-12-09 Thread Theo de Raadt
Mihai Popescu  wrote:

> On Wed, Dec 9, 2020 at 7:57 PM Claudio Jeker 
> wrote:
> 
> > On Wed, Dec 09, 2020 at 05:30:48PM +0200, Mihai Popescu wrote:
> > > Would it be interesting from the OpenBSD point of view [1] ?
> > >
> > > [1] http://www.micromagic.com/news/RISCv-Fastest_PR.pdf
> >
> > No, this is just PR. We need HW to run on.
> >
> > --
> > :wq Claudio
> >
> 
> Of course. Some say Odroid is providing the board for the test [2]. Sounds
> interesting.
> 
> [2]
> https://www.eetimes.com/micro-magic-risc-v-core-claims-to-beat-apple-m1-and-arm-cortex-a9/

I'm not sure what your point is.

URLs and PDFs don't help the software development process.

PDF isn't turing complete, so you can't write a cpu emulator in it.

Press releases are not helpful.  Only hardware in-hand helps.



Re: RISC-V and OpenBSD

2020-12-09 Thread Mihai Popescu
On Wed, Dec 9, 2020 at 7:57 PM Claudio Jeker 
wrote:

> On Wed, Dec 09, 2020 at 05:30:48PM +0200, Mihai Popescu wrote:
> > Would it be interesting from the OpenBSD point of view [1] ?
> >
> > [1] http://www.micromagic.com/news/RISCv-Fastest_PR.pdf
>
> No, this is just PR. We need HW to run on.
>
> --
> :wq Claudio
>

Of course. Some say Odroid is providing the board for the test [2]. Sounds
interesting.

[2]
https://www.eetimes.com/micro-magic-risc-v-core-claims-to-beat-apple-m1-and-arm-cortex-a9/


Re: RISC-V and OpenBSD

2020-12-09 Thread Claudio Jeker
On Wed, Dec 09, 2020 at 05:30:48PM +0200, Mihai Popescu wrote:
> Would it be interesting from the OpenBSD point of view [1] ?
> 
> [1] http://www.micromagic.com/news/RISCv-Fastest_PR.pdf

No, this is just PR. We need HW to run on.

-- 
:wq Claudio



RISC-V and OpenBSD

2020-12-09 Thread Mihai Popescu
Would it be interesting from the OpenBSD point of view [1] ?

[1] http://www.micromagic.com/news/RISCv-Fastest_PR.pdf


Re: support new

2020-12-09 Thread Ingo Schwarze
Hi Janne,

Janne Johansson wrote on Wed, Dec 09, 2020 at 01:23:23PM +0100:

> There is some,
> 
> "We offer the server management service. We work on the deployment and
> management of servers with open source technologies such as CentOS, Debian,
> FreeBSD, OpenBSD and Ubuntu Server."

Fair enough, sorry for missing that, not sure why i did.

Maybe that's relatively new, it seems not all search engines picked
it up yet.

Anyway, i just added the entry.

Yours,
  Ingo



Re: PPPoE connection does not set IP

2020-12-09 Thread Stuart Henderson
On 2020-12-09, Stuart Henderson  wrote:
> On 2020-12-09, Chris Narkiewicz  wrote:
>> --gKMricLos+KVdGMg
>> Content-Type: text/plain; charset=us-ascii
>> Content-Disposition: inline
>> Content-Transfer-Encoding: 7bit
>>
>> I'm trying to establish VDSL connection using an ECI modem over PPPoE.
>> I'm running OpenBSD 6.8 on APU board from PC Engines.
>>
>> Relevant inerface configuration:
>> /etc/hostname.em0
>> up
>>
>> /etc/hostname.pppoe0
>> inet 0.0.0.0 255.255.255.255 NONE
>
> Setting "inet" brings the interface up automatically. Move that
> down after the point you have set the connection parameters.
>
>> mtu 1492
>
> not needed, 1492 is set by default. shouldn't hurt though.

...although given the AC-Name in your packet capture it looks like this is
UK so you can probably expect it to work with "mtu 1500" in pppoe0 and
"mtu 1508" in em0, which removes the need to mess about with "scrub
max-mss" (and avoids possible problems with large UDP packets).




Re: support new

2020-12-09 Thread Janne Johansson
There is some,

"We offer the server management service. We work on the deployment and
management of servers with open source technologies such as CentOS, Debian,
FreeBSD, OpenBSD and Ubuntu Server."

Den ons 9 dec. 2020 kl 13:03 skrev Ingo Schwarze :

> Hi,
>
> AMG Labs wrote on Tue, Dec 08, 2020 at 03:55:52PM -0300:
>
> > 0
> > C Brazil
> > P RS
> > T Santo Antonio da Patrulha
> > Z 95500-000
> > O AMG Labs
> > I Angelito Monteiro Goulart
> > A Av. Cel Victor Villa Verde 126/301
> > M cont...@amglabs.net
> > U https://www.amglabs.net/
> > B +55 51 92000 7613
> > X
> > N We are a software development and server management company
> > operating in the market since 2014. We work with the development of
> > customized web systems and the deployment and management of servers
> > based on open source technologies such as CentOS, Debian, FreeBSD,
> > OpenBSD and Ubuntu Server.
>
> Unless i'm mistaken, there is no mention of OpenBSD on your website.
>
> The web hosting offers appear to be for Linux and Windows only, and
> dedicated servers seem to be offered with Linux, Windows, and MacOS X.
>
> Yours,
>   Ingo
>
>

-- 
May the most significant bit of your life be positive.


Re: support new

2020-12-09 Thread Ingo Schwarze
Hi,

AMG Labs wrote on Tue, Dec 08, 2020 at 03:55:52PM -0300:

> 0
> C Brazil
> P RS
> T Santo Antonio da Patrulha
> Z 95500-000
> O AMG Labs
> I Angelito Monteiro Goulart
> A Av. Cel Victor Villa Verde 126/301
> M cont...@amglabs.net
> U https://www.amglabs.net/
> B +55 51 92000 7613
> X
> N We are a software development and server management company
> operating in the market since 2014. We work with the development of
> customized web systems and the deployment and management of servers
> based on open source technologies such as CentOS, Debian, FreeBSD,
> OpenBSD and Ubuntu Server.

Unless i'm mistaken, there is no mention of OpenBSD on your website.

The web hosting offers appear to be for Linux and Windows only, and
dedicated servers seem to be offered with Linux, Windows, and MacOS X.

Yours,
  Ingo



Re: PPPoE connection does not set IP

2020-12-09 Thread Stuart Henderson
On 2020-12-09, Chris Narkiewicz  wrote:
> --gKMricLos+KVdGMg
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
> Content-Transfer-Encoding: 7bit
>
> I'm trying to establish VDSL connection using an ECI modem over PPPoE.
> I'm running OpenBSD 6.8 on APU board from PC Engines.
>
> Relevant inerface configuration:
> /etc/hostname.em0
> up
>
> /etc/hostname.pppoe0
> inet 0.0.0.0 255.255.255.255 NONE

Setting "inet" brings the interface up automatically. Move that
down after the point you have set the connection parameters.

> mtu 1492

not needed, 1492 is set by default. shouldn't hurt though.

> pppoedev em0
> authproto chap
> authname 'my login'
> authkey 'my password'
> peerproto chap
> peerflag callin

I have never seen a standard ISP setup that needs "callin".

> up
> dest 0.0.0.1

FWIW my standard pppoe setup looks like this

inet 0.0.0.0 255.255.255.255 0.0.0.1 pppoedev em1 authproto chap authname 
"username" authkey "pass" up
inet6 eui64
inet6 autoconf -autoconfprivacy
!/sbin/route add default -ifp pppoe0 0.0.0.1
!/sbin/route add -inet6 default -ifp pppoe0 fe80::%pppoe0

> When I bring the interface up, I can see that it authenticates
> (tcpdump output is long so I put it below). I can observe that
> it authenticates and receives an IP address from the network ISP.
>
> However, when I check the interface, it does not set new IP and it is
> stuck with "no carrier"::
>
> pppoe0: flags=8810 mtu 1492
>   index 15 priority 0 llprio 3
>   dev: em0 state: initial
>   sid: 0x0 PADI retries: 0 PADR retries: 0
>   groups: pppoe
>   status: no carrier
>   inet 0.0.0.1 --> 0.0.0.0 netmask 0xff00
>
>
> How can I further investigate this issue? I'm a bit out of ideas.
>
>
> Cheers,
> KN
>
> Here is the output from tcpdump -i em0, showing the exchange between
> my APU board and ECI VDSL modem.
> 
> tcpdump: listening on em0, link-type EN10MB
> 01:19:24.111229 PPPoE-Discovery
>   code Initiation, version 1, type 1, id 0x, length 12
>   tag Service-Name, length 0
>   tag Host-Uniq, length 4 #\324\311\274
> 01:19:24.117698 PPPoE-Discovery
>   code Initiation, version 1, type 1, id 0x, length 12
>   tag Service-Name, length 0
>   tag Host-Uniq, length 4 #\324\311\274
> 01:19:24.122470 PPPoE-Discovery
>   code Offer, version 1, type 1, id 0x, length 47
>   tag Service-Name, length 0
>   tag AC-Name, length 11 acc-aln4.fb
>   tag Host-Uniq, length 4 #\324\311\274
>   tag AC-Cookie, length 16 
> 8\236\305\331\324?\035s\227\256\274\320\373\012\374h
> 01:19:24.122653 PPPoE-Discovery
>   code Request, version 1, type 1, id 0x, length 32
>   tag Service-Name, length 0
>   tag AC-Cookie, length 16 
> 8\236\305\331\324?\035s\227\256\274\320\373\012\374h
>   tag Host-Uniq, length 4 #\324\311\274
> 01:19:24.123960 PPPoE-Discovery
>   code Initiation, version 1, type 1, id 0x, length 12
>   tag Service-Name, length 0
>   tag Host-Uniq, length 4 #\324\311\274
> 01:19:24.130257 PPPoE-Discovery
>   code Initiation, version 1, type 1, id 0x, length 12
>   tag Service-Name, length 0
>   tag Host-Uniq, length 4 #\324\311\274
> 01:19:24.145508 PPPoE-Discovery
>   code Offer, version 1, type 1, id 0x, length 47
>   tag Service-Name, length 0
>   tag AC-Name, length 11 acc-aln4.fb
>   tag Host-Uniq, length 4 #\324\311\274
>   tag AC-Cookie, length 16 
> 8\236\305\331\324?\035s\227\256\274\320\373\012\374h
> 01:19:24.145724 PPPoE-Discovery
>   code Request, version 1, type 1, id 0x, length 32
>   tag Service-Name, length 0
>   tag AC-Cookie, length 16 
> 8\236\305\331\324?\035s\227\256\274\320\373\012\374h
>   tag Host-Uniq, length 4 #\324\311\274
> 01:19:24.149589 PPPoE-Discovery
>   code Confirm, version 1, type 1, id 0x144e, length 12
>   tag Service-Name, length 0
>   tag Host-Uniq, length 4 #\324\311\274
> 01:19:24.149639 PPPoE-Session
>   code Session, version 1, type 1, id 0x144e, length 16
>   LCP Configure-Request Id=0x01: Magic-Number=2012867662 Max-Rx-Unit=1492
> 01:19:24.185026 PPPoE-Session
>   code Session, version 1, type 1, id 0x144e, length 21
>   LCP Configure-Request Id=0x1f: Max-Rx-Unit=1492 Auth-Prot=CHAP/MD5 
> Magic-Number=538534638
> 01:19:24.185062 PPPoE-Session
>   code Session, version 1, type 1, id 0x144e, length 21
>   LCP Configure-Ack Id=0x1f: Max-Rx-Unit=1492 Auth-Prot=CHAP/MD5 
> Magic-Number=538534638
> 01:19:24.185167 PPPoE-Session
>   code Session, version 1, type 1, id 0x144e, length 16
>   LCP Configure-Ack Id=0x01: Magic-Number=2012867662 Max-Rx-Unit=1492
> 01:19:24.188465 PPPoE-Session
>   code Session, version 1, type 1, id 0x144e, length 64
>   CHAP Challenge Id=0x01: 
> Value=706d4498c8643102f0a75b6e8b352fcfa2fa51bd8ccd9177de4ca5a23a29aa2a966e425fd373e1441c3d32a7f161
>  Name=acc-aln4.fb
> 01:19:24.188546 PPPoE-Session
>   code Session, version 

Re: Supported PCI USB 3 cards

2020-12-09 Thread Nils Blomqvist
On 27 Nov 2020, at 17:12, Theo de Raadt wrote:

> Nils Blomqvist  wrote:
>
>> I need a PCI card with USB 3 ports. Something like this is what I
>> had in mind: https://amzn.to/2V8NgtT (SEDNA - PCI Express USB 3.1).
>>
>> Can anyone point me in the right direction for finding out if a
>> particular card is supported, or a list of supported ones?
>
> All PCI USB cards should work fine.

Follow-up: I got the above mentioned card which worked without a hitch.