Re: the problem with the OpenBSD installer

2016-01-17 Thread Clint Pachl

Jan Stary wrote on 01/17/16 14:29:

After installing various UNIX-like systems today,
I realized what the problem is with the installer:
it makes installing any other system a DAMN ORDEAL.


The installer is what initially addicted me to OpenBSD.

Back in the late 90s until about 2003 I used various Linux distros. I 
settled on Slackware for many years because it seemed the most 
straightforward and transparent. I could tell it was a bit different and 
simpler than the other Linux distros. Then I read that Slackware 
borrowed many ideals from BSD. I had not heard of BSD. After some 
research, I installed FreeBSD 4.8, which became my OS of choice for both 
server and desktop for 2 years.


Then, for some reason, I became more interested in security. I think I 
was also having stability issues with FreeBSD 5.x and was growing tired 
of the complexity of the system. So I looked into OpenBSD. The 
simplicity of the system, from install to management, immediately blew 
me away. I migrated all my systems to OpenBSD 3.6 in early 2005 and 
never looked back. I have been running OpenBSD exclusively for more than 
10 years now. I can't be happier with the developers and the directions 
and decisions they make. They have created a rock solid OS. It runs 
everything from my business to my kid's media center.


I used to write device drivers for hard real-time embedded systems in a 
previous life. I hope to someday have the time to contribute code to my 
favorite OS. In the meantime, I support the project with donations. I 
don't know what I would do without this OS. Thank you!




Re: codepage and iocharset in fat32 aka msdos filesystem

2016-01-17 Thread soko.tica
Not necessarily. OpenBSD does have pl locale and pl keyboard, while it does
not have rs/hr locale nor kbd.

See:

$ locale -a
$ kbd -l (may require doas/sudo)

It isn't Linux (nor, for that matter, FreeBSD or DragonflyBSD).

On Mon, Jan 18, 2016 at 2:26 AM, Zeljko Jovanovic <
zelj...@tesla.rcub.bg.ac.rs> wrote:

> On 17.01.2016. 16:12, Lampshade wrote:
>
> I am using Windows 8.1 64-bit and OpenBSD-current amd64.
>> When I used Gnu/Linux I mounted fat32 partitions
>> with these options:
>> iocharset=iso8859-2,codepage=852
>> However OpenBSD's mount tells me:
>> mount -t msdos  -o codepage=852 /dev/sd0f /mnt/partycjaFat/
>> mount_msdos: -o codepage: option not supported
>>
>> and
>> mount -t msdos  -o iocharset=iso8859-2 /dev/sd0f /mnt/partycjaFat/
>> mount_msdos: -o iocharset: option not supported
>>
>> 1. What codepage is used by default in FAT32 filesystem created
>> and mounted in OpenBSD?
>>
>
> I mount FAT32 filesystems in Linux with:
>
> mount -t vfat -o iocharset=utf8
>
> and then read/write them normally in Linux as well as Windows. Most
> filenames are in Serbian Latin (contain letters šŠ čČ ćĆ žŽ đĐ in
addition
> to ASCII), others are in Serbian Cyrillic, and everything work well.
>
> Just use UTF8, and I bet you will have no problem in OpenBSD too.



Re: smplayer 14.9 gets muted when moving or resizing windows in xfce 4.12

2016-01-17 Thread Jan Lambertz
Hi,

i had a similar Problem. turned out to happen with plain mplayer and
any windowmanager. when you move the application Window, after a sec
or so mplayer stops Sound. can you verify the behavior ?



Re: piping stderr to tee log (so I can have my log and watch it, too)

2016-01-17 Thread Joel Rees
On Mon, Jan 18, 2016 at 10:38 AM, Delan Azabani  wrote:
> Put the commands that are to be logged in a grouping command, and
> then apply 2>&1 to that grouping command:
>
> { cd ../compile/GENERIC.MP && \
>   make clean && make && make install; } \
>   2>&1 | tee /var/log/build/buildsys.log
>
> Note that grouping commands that use braces (i.e. those that execute
> their commands in the current environment) require a semicolon before
> they are closed, but those with parentheses do not.

This may help me remember grouping syntax for real.

> If you want stdout and stderr to be logged to separate files, or
> you otherwise want to keep stdout and stderr separate, then a more
> complex dance is needed:
>
> { { cd ../compile/GENERIC.MP && \
>   make clean && make && make install; } \
>   2>&3 | tee /var/log/build/buildsys.out.log; } \
>   3>&1 | tee /var/log/build/buildsys.err.log 1>&2

Thanks, Delan (and Nigel, off list, for the parentheses example).

-- 
Joel Rees



Re: piping stderr to tee log (so I can have my log and watch it, too)

2016-01-17 Thread Delan Azabani
Put the commands that are to be logged in a grouping command, and
then apply 2>&1 to that grouping command:

{ cd ../compile/GENERIC.MP && \
  make clean && make && make install; } \
  2>&1 | tee /var/log/build/buildsys.log

Note that grouping commands that use braces (i.e. those that execute
their commands in the current environment) require a semicolon before
they are closed, but those with parentheses do not.

If you want stdout and stderr to be logged to separate files, or
you otherwise want to keep stdout and stderr separate, then a more
complex dance is needed:

{ { cd ../compile/GENERIC.MP && \
  make clean && make && make install; } \
  2>&3 | tee /var/log/build/buildsys.out.log; } \
  3>&1 | tee /var/log/build/buildsys.err.log 1>&2



Re: piping stderr to tee log (so I can have my log and watch it, too)

2016-01-17 Thread Joel Rees
Well, after posting this

On Mon, Jan 18, 2016 at 10:09 AM, Joel Rees  wrote:
> Trying to put some scripts together so I can set an update going one
> night, check it in the morning, reboot, and finish the update while
> I'm at work.
>
> So I want to do something like
>
>cd /usr/src && cvs -d$CVSROOT up -Pd | tee /var/log/build/cvssrc.log
>cd /usr/xenocara && cvs -d$CVSROOT up -Pd | tee
> /var/log/build/cvsxenocara.log
>cd /usr/ports && cvs -d$CVSROOT up -Pd | tee /var/log/build/cvsports.log
>cd /usr/src/sys/arch/`machine`/conf && config GENERIC.MP && \
>cd ../compile/GENERIC.MP && make clean && make && \
>make install | tee /var/log/build/buildsys.log 2>&1
>...
>
> except the 2>&1 is, I think the book says, too late to collect both
> output streams into buildsys.log .
>
> I found
>
>exec > >(tee ${LOGFILE}) 2>&1
>
> suggested on stackexchange (with claims that it works in ksh), but a
> simple test with
>
>ls /nonexisting > >(tee mylog) 2>&1
>
> fails with
>
>ksh: syntax error: `> ' unexpected
>
> Any suggestions appreciated. Cluebats, too.

I checked over the answer on stackexchange, played around with an
example of juggling file descriptors, and found this seems to work:

   { ls ${DIR} ; } 2>&1 | tee mylog

catching the output whether DIR exists or not. So I'm going to try

   { rm -rf /usr/obj/* && cd /usr/src && make obj && \
   cd /usr/sr/etc && env DESTDIR=/ make distrib-dirs && \
   cd /usr/src && make build ; } 2>&1 | tee /var/log/build/buildsys.log

in a script by itself now.

Sorry for talking to myself on list

-- 
Joel Rees

Be careful when you look at conspiracy.
Arm yourself with knowledge of yourself, as well:
http://reiisi.blogspot.jp/2011/10/conspiracy-theories.html



Re: the problem with the OpenBSD installer

2016-01-17 Thread Brandon Vincent
On Sun, Jan 17, 2016 at 2:29 PM, Jan Stary  wrote:
> Thanks for keeping it simple!

I had to reinstall Compaq Tru64 UNIX a year ago on a system. That
experience will make anyone love the OpenBSD installer.

Brandon Vincent



Re: codepage and iocharset in fat32 aka msdos filesystem

2016-01-17 Thread Zeljko Jovanovic

On 17.01.2016. 16:12, Lampshade wrote:


I am using Windows 8.1 64-bit and OpenBSD-current amd64.
When I used Gnu/Linux I mounted fat32 partitions
with these options:
iocharset=iso8859-2,codepage=852
However OpenBSD's mount tells me:
mount -t msdos  -o codepage=852 /dev/sd0f /mnt/partycjaFat/
mount_msdos: -o codepage: option not supported

and
mount -t msdos  -o iocharset=iso8859-2 /dev/sd0f /mnt/partycjaFat/
mount_msdos: -o iocharset: option not supported

1. What codepage is used by default in FAT32 filesystem created
and mounted in OpenBSD?


I mount FAT32 filesystems in Linux with:

mount -t vfat -o iocharset=utf8

and then read/write them normally in Linux as well as Windows. Most filenames 
are in Serbian Latin (contain letters šŠ čČ ćĆ žŽ đĐ in addition to ASCII), 
others are in Serbian Cyrillic, and everything work well.


Just use UTF8, and I bet you will have no problem in OpenBSD too.



piping stderr to tee log (so I can have my log and watch it, too)

2016-01-17 Thread Joel Rees
Trying to put some scripts together so I can set an update going one
night, check it in the morning, reboot, and finish the update while
I'm at work.

So I want to do something like

   cd /usr/src && cvs -d$CVSROOT up -Pd | tee /var/log/build/cvssrc.log
   cd /usr/xenocara && cvs -d$CVSROOT up -Pd | tee
/var/log/build/cvsxenocara.log
   cd /usr/ports && cvs -d$CVSROOT up -Pd | tee /var/log/build/cvsports.log
   cd /usr/src/sys/arch/`machine`/conf && config GENERIC.MP && \
   cd ../compile/GENERIC.MP && make clean && make && \
   make install | tee /var/log/build/buildsys.log 2>&1
   ...

except the 2>&1 is, I think the book says, too late to collect both
output streams into buildsys.log .

I found

   exec > >(tee ${LOGFILE}) 2>&1

suggested on stackexchange (with claims that it works in ksh), but a
simple test with

   ls /nonexisting > >(tee mylog) 2>&1

fails with

   ksh: syntax error: `> ' unexpected

Any suggestions appreciated. Cluebats, too.

-- 
Joel Rees

Be careful when you look at conspiracy.
Arm yourself with knowledge of yourself, as well:
http://reiisi.blogspot.jp/2011/10/conspiracy-theories.html



Re: the problem with the OpenBSD installer

2016-01-17 Thread keeper
The OpenBSD installer is a work of art. It makes me hate setting up Apache,
irssi, or mutt, because those things take forever to get just right. But the
OS itself is an absolute pleasure! And scriptable, for crying out loud!
BTW, I'd love to see your 15-minute mail server setup. I'd like to get mail
set up on my system, but I've not done it before, and it's rather complex. 

Sent from Outlook for iPhone for some reason




On Sun, Jan 17, 2016 at 1:32 PM -0800, "Jan Stary"  wrote:










After installing various UNIX-like systems today,
I realized what the problem is with the installer:
it makes installing any other system a DAMN ORDEAL.

>From boot to a working mailserver in 15 minutes,
as opposed to HOURS spend looking at a screen.

Thanks for keeping it simple!

Jan



Re: ifconfig inet dhcp and static alias support

2016-01-17 Thread Gregor Best
Hi Yury,

On Sun, Jan 17, 2016 at 12:21:51PM -0800, Yury Shefer wrote:
> [...]
> I was not able to find the information about ifconfig support for the IPv4
> address configuration where I have primary address assigned by DHCP
> (Comcast) and alias with static IP. My cable modem mgmt IP belongs to
> 192.168.100.0/24 subnet and to access it - I have to add an alias - but it
> always overwrite DHCP-assigned address (OpenBSD 5.8-stable (GENERIC.MP)).
> [...]

You might get somewhere by creating a bridge(4) interface, adding em0 to
that and adding a vether(4) to the bridge. dhclient would then run on
em0, adding and removing dynamically assigned IPv4-addresses, while
the vether has a static address:

# ifconfig bridge0 create
# ifconfig vether0 create inet 192.168.100.200/24 up
# ifconfig bridge0 add vether0
# ifconfig bridge0 add em0
# dhclient em0

The proper incantations in /etc/hostname.{bridge,vether,em}0 are left as
an exercise for the reader.

-- 
Gregor



Re: codepage and iocharset in fat32 aka msdos filesystem

2016-01-17 Thread Stuart Henderson
> Lampshade wrote on Sun, Jan 17, 2016 at 04:12:39PM +0100:
>> However OpenBSD's mount tells me:
>> mount -t msdos  -o codepage=852 /dev/sd0f /mnt/partycjaFat/
>> mount_msdos: -o codepage: option not supported

On 2016-01-17, Ingo Schwarze  wrote:
> The ports tree may or may not contain third-party tools that help.

The convmv package (ports/converters/convmv) may be of some help here.

> I have no idea.  Refer to your Windows documentation, or in case
> that is inconclusive, deal with it as usual when dealing with
> defective documentation: Read the fantastic source code.

;)



Re: ifconfig inet dhcp and static alias support

2016-01-17 Thread Stuart Henderson
> On Sun, Jan 17, 2016 at 12:21:51PM -0800, Yury Shefer wrote:
>> I was not able to find the information about ifconfig support for the IPv4
>> address configuration where I have primary address assigned by DHCP
>> (Comcast) and alias with static IP. My cable modem mgmt IP belongs to
>> 192.168.100.0/24 subnet and to access it - I have to add an alias - but it
>> always overwrite DHCP-assigned address (OpenBSD 5.8-stable (GENERIC.MP)).

It's not possible to do this with the DHCP client from base at
present.

On 2016-01-17, Josh Grosse  wrote:
> Instead of seting an alias, just route the 192.168.100/24 subnet through your 
> upstream gateway.
>
> In my case, none of my inner subnets are 192.168.100/24, so any packets
> to that subnet go to the default route assigned by dhcp.

That's not always possible. Sometimes you need to use (and respond
to ARP queries for) an address in the same subnet.

Fortunately in my case I don't have the need to do this very
often so I can cope with 'pkill -9 dhclient' to force it to exit
without removing the existing lease. That's not always acceptable
though - if there's no other way around it, using a 3rd-party
DHCP client is currently the only way.



the problem with the OpenBSD installer

2016-01-17 Thread Jan Stary
After installing various UNIX-like systems today,
I realized what the problem is with the installer:
it makes installing any other system a DAMN ORDEAL.

>From boot to a working mailserver in 15 minutes,
as opposed to HOURS spend looking at a screen.

Thanks for keeping it simple!

Jan



Re: ifconfig inet dhcp and static alias support

2016-01-17 Thread Josh Grosse
On Sun, Jan 17, 2016 at 12:21:51PM -0800, Yury Shefer wrote:
> Hi misc,
> 
> I was not able to find the information about ifconfig support for the IPv4
> address configuration where I have primary address assigned by DHCP
> (Comcast) and alias with static IP. My cable modem mgmt IP belongs to
> 192.168.100.0/24 subnet and to access it - I have to add an alias - but it
> always overwrite DHCP-assigned address (OpenBSD 5.8-stable (GENERIC.MP)).
> 
> I tried the following hostname.if config but the last line overwrite dhcp
> address:
> 
> $ cat /etc/hostname.em0
> lladdr b8:c7:ff:cd:ff:0e
> dhcp
> up
> rtsol
> inet alias 192.168.100.50 255.255.255.0
> 
> # sh /etc/netstart em0
> em0: no link . got link
> DHCPREQUEST on em0 to 255.255.255.255
> DHCPACK from 96.xxx.xx.113 (00:01:5c:63:fc:46)
> bound to 67.xxx.xx.xx9 -- renewal in 92649 seconds.
> # ifconfig em0
> em0: flags=208843 mtu 1500
> lladdr b8:c7:ff:cd:ff:0e
> priority: 0
> groups: egress
> media: Ethernet autoselect (1000baseT full-duplex)
> status: active
> inet6 fe80::bac7::abcd:abc%em0 prefixlen 64 scopeid 0x1
> inet6 2001:abc:dead:10d:beef:be0b:2e16:9486 prefixlen 128 pltime
> 343370 vltime 343370
> inet 192.168.100.50 netmask 0xff00 broadcast 192.168.100.255
 
Instead of seting an alias, just route the 192.168.100/24 subnet through your 
upstream gateway.

In my case, none of my inner subnets are 192.168.100/24, so any packets
to that subnet go to the default route assigned by dhcp.



Re: current snap fails on gigabyte brix at uhub0

2016-01-17 Thread Andrew
> I had the same problem with a Gigabyte GA-970A-UD3 based computer, but the
> latest snapshot (#1846: Sun Jan 17 02:34:54 MST 2016) fixed it for me.
>
> Kind regards,
>
>
> Martijn Rijkeboer

Just downloaded GENERIC.MP #1847 amd and it boots seamlessly to a login prompt.

As always, thanks to Theo and to all the past and present devs -- have
a great week ahead !!



ifconfig inet dhcp and static alias support

2016-01-17 Thread Yury Shefer
Hi misc,

I was not able to find the information about ifconfig support for the IPv4
address configuration where I have primary address assigned by DHCP
(Comcast) and alias with static IP. My cable modem mgmt IP belongs to
192.168.100.0/24 subnet and to access it - I have to add an alias - but it
always overwrite DHCP-assigned address (OpenBSD 5.8-stable (GENERIC.MP)).

I tried the following hostname.if config but the last line overwrite dhcp
address:

$ cat /etc/hostname.em0
lladdr b8:c7:ff:cd:ff:0e
dhcp
up
rtsol
inet alias 192.168.100.50 255.255.255.0

# sh /etc/netstart em0
em0: no link . got link
DHCPREQUEST on em0 to 255.255.255.255
DHCPACK from 96.xxx.xx.113 (00:01:5c:63:fc:46)
bound to 67.xxx.xx.xx9 -- renewal in 92649 seconds.
# ifconfig em0
em0: flags=208843 mtu 1500
lladdr b8:c7:ff:cd:ff:0e
priority: 0
groups: egress
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet6 fe80::bac7::abcd:abc%em0 prefixlen 64 scopeid 0x1
inet6 2001:abc:dead:10d:beef:be0b:2e16:9486 prefixlen 128 pltime
343370 vltime 343370
inet 192.168.100.50 netmask 0xff00 broadcast 192.168.100.255


-- 
Best regards,
Yury.



Re: permanent ARP being overwritten by ISP

2016-01-17 Thread Vijay Sankar
Not clear from your message so I was wondering if you have all the following
on the same switch

ISP interface
External interface of your firewall
Internal interface of your firewall
Interfaces of your other systems

I noticed behaviour similar to what you described when I did something like
the above.

The arp rewrite attempts stopped when I separated the Internet connection and
the external interface of the firewall on one switch and all the internal
systems on another switch.

Vijay

Sent from my iPhone

> On Jan 16, 2016, at 12:40, Doug Moss  wrote:
>
> (my apologies for last message - unfamiliar with Yahoo and forcing plain
text email)
>
> Why is a manually entered permanent arp entry being overwritten?
>
>
> At my home, I have an ISP from which I have 5 static IPv4 addresses.
> I use these for my home network, a home email server, jabber server for
family/friends,
> website related to my academic work, etc, with different domains.
>
>
> The ISP service comes into my home via an ethernet cable which I connect to
a switch
> (Cisco gigabit)
>
> Connected to the switch are:
> (A) router to my home network (behind which are desktops, a wireless access
point, kids laptops, etc)
> a low-power, dual NIC OpenBSD amd64 running NAT and unbound (caching)
> with IP address 70.20.25.26
> (B) the academic website
> a low-power, OpenBSD 5.7 amd64
> with IP address 70.20.25.30
> (plus other servers)
>
> The ISP gateway/router is IP address 70.20.25.1
>
> On the academic website, I noticed that the arp table
> showed 70.20.25.26 with the MAC of the ISP gateway
>
> I thought - why should my private traffic from my personal webserver be
routed
> through the ISP gateway - why not go directly to my home network on the same
switch?
>
> So on my webserver, I did this:
> # sudo arp -s 70.20.25.26 00:25:90:0A:69:B6 permanent
>
> Then I checked:
> # arp -an
> Host Ethernet Address   Netif Expire
Flags
> 70.20.25.1   fa:c0:01:75:98:cdem0 19m59s
> 70.20.25.26  00:25:90:0a:69:b6em0 permanent
> 70.20.25.30  00:25:90:ea:52:9cem0 permanent  l
>
> The next day, I found this is the logs:
> Jan 12 08:17:54 www /bsd: arp info overwritten for 70.20.25.26 by
00:25:90:0a:69:b6 on em0
> Jan 12 08:17:54 www /bsd: arp info overwritten for 70.20.25.26 by
fa:c0:01:75:98:cd on em0
> Jan 12 08:37:54 www /bsd: arp info overwritten for 70.20.25.26 by
00:25:90:0a:69:b6 on em0
> Jan 12 08:37:54 www /bsd: arp info overwritten for 70.20.25.26 by
fa:c0:01:75:98:cd on em0
> Jan 12 08:57:54 www /bsd: arp info overwritten for 70.20.25.26 by
00:25:90:0a:69:b6 on em0
> Jan 12 08:57:54 www /bsd: arp info overwritten for 70.20.25.26 by
fa:c0:01:75:98:cd on em0
> (repeated a couple hundred times)
>
> $ arp -an
> Host Ethernet Address   Netif Expire
Flags
> 70.20.25.1   fa:c0:01:75:98:cdem0 19m54s
> 70.20.25.26  fa:c0:01:75:98:cdem0 17m15s
> 70.20.25.30  00:25:90:ea:52:9cem0 permanent  l
>
> and
> $ traceroute 70.20.25.26
> traceroute to 70.20.25.26 (70.20.25.26), 64 hops max, 40 byte packets
> 1  lo0-100.BSTNMA-VFTTP-308.verizon-gni.net (70.20.25.1)  2.841 ms  0.594 ms
3.724 ms
> 2  static-70-20-25-26.bstnma.fios.verizon.net (70.20.25.26)  3.544 ms  1.255
ms  3.593 ms
>
> Am I understanding this correctly?
> Is the ISP gateway continuing to try to re-direct the arp table on my home
router
> to route traffic out to its gateway before coming back to my home network,
instead of
> directly from my router to the other server connected to ports on the same
switch?
>
>
> Have I done something wrong in my configuration?
>
> Is this (a) expected (b) strange but innocent (c) nefarious, or (d)
something else?



Re: current snap fails on gigabyte brix at uhub0

2016-01-17 Thread Martijn Rijkeboer
> FYI -- the current snapshot fails on a Gigabyte Brix.
>
> The boot process blows up at:uhub0
>
> --
> uhub0: device problem, disabling port 1
> uhub0: device problem, disabling port 2
> ehci_sync_hc: tsleep() = 35
> ehci_sync_hc: tsleep() = 35
> ehci_sync_hc: tsleep() = 35
> ehci_sync_hc: tsleep() = 35
> ehci_sync_hc: tsleep() = 35
> ehci_sync_hc: tsleep() = 35
> ehci_sync_hc: tsleep() = 35
> ehci_sync_hc: tsleep() = 35

I had the same problem with a Gigabyte GA-970A-UD3 based computer, but the
latest snapshot (#1846: Sun Jan 17 02:34:54 MST 2016) fixed it for me.

Kind regards,


Martijn Rijkeboer



Re: permanent ARP being overwritten by ISP

2016-01-17 Thread Martin Pieuchot
On 16/01/16(Sat) 18:40, Doug Moss wrote:
> (my apologies for last message - unfamiliar with Yahoo and forcing plain text 
> email)
> 
> Why is a manually entered permanent arp entry being overwritten?

It should not, are you running -current?  If not could you try?

> 
> At my home, I have an ISP from which I have 5 static IPv4 addresses.
> I use these for my home network, a home email server, jabber server for 
> family/friends,
> website related to my academic work, etc, with different domains.
> 
> 
> The ISP service comes into my home via an ethernet cable which I connect to a 
> switch
> (Cisco gigabit)
> 
> Connected to the switch are:
> (A) router to my home network (behind which are desktops, a wireless access 
> point, kids laptops, etc)
>  a low-power, dual NIC OpenBSD amd64 running NAT and unbound (caching)
>  with IP address 70.20.25.26
> (B) the academic website
>  a low-power, OpenBSD 5.7 amd64
>  with IP address 70.20.25.30
> (plus other servers)
> 
> The ISP gateway/router is IP address 70.20.25.1
> 
> On the academic website, I noticed that the arp table
> showed 70.20.25.26 with the MAC of the ISP gateway
> 
> I thought - why should my private traffic from my personal webserver be routed
> through the ISP gateway - why not go directly to my home network on the same 
> switch?
> 
> So on my webserver, I did this:
> # sudo arp -s 70.20.25.26 00:25:90:0A:69:B6 permanent
> 
> Then I checked:
> # arp -an
> Host Ethernet Address   Netif Expire Flags
> 70.20.25.1   fa:c0:01:75:98:cdem0 19m59s 
> 70.20.25.26  00:25:90:0a:69:b6em0 permanent 
> 70.20.25.30  00:25:90:ea:52:9cem0 permanent  l
> 
> The next day, I found this is the logs:
> Jan 12 08:17:54 www /bsd: arp info overwritten for 70.20.25.26 by 
> 00:25:90:0a:69:b6 on em0
> Jan 12 08:17:54 www /bsd: arp info overwritten for 70.20.25.26 by 
> fa:c0:01:75:98:cd on em0
> Jan 12 08:37:54 www /bsd: arp info overwritten for 70.20.25.26 by 
> 00:25:90:0a:69:b6 on em0
> Jan 12 08:37:54 www /bsd: arp info overwritten for 70.20.25.26 by 
> fa:c0:01:75:98:cd on em0
> Jan 12 08:57:54 www /bsd: arp info overwritten for 70.20.25.26 by 
> 00:25:90:0a:69:b6 on em0
> Jan 12 08:57:54 www /bsd: arp info overwritten for 70.20.25.26 by 
> fa:c0:01:75:98:cd on em0
> (repeated a couple hundred times)
> 
> $ arp -an
> Host Ethernet Address   Netif Expire Flags
> 70.20.25.1   fa:c0:01:75:98:cdem0 19m54s 
> 70.20.25.26  fa:c0:01:75:98:cdem0 17m15s 
> 70.20.25.30  00:25:90:ea:52:9cem0 permanent  l
> 
> and
> $ traceroute 70.20.25.26
> traceroute to 70.20.25.26 (70.20.25.26), 64 hops max, 40 byte packets
> 1  lo0-100.BSTNMA-VFTTP-308.verizon-gni.net (70.20.25.1)  2.841 ms  0.594 ms  
> 3.724 ms
> 2  static-70-20-25-26.bstnma.fios.verizon.net (70.20.25.26)  3.544 ms  1.255 
> ms  3.593 ms
> 
> Am I understanding this correctly?
> Is the ISP gateway continuing to try to re-direct the arp table on my home 
> router
> to route traffic out to its gateway before coming back to my home network, 
> instead of
> directly from my router to the other server connected to ports on the same 
> switch?
> 
> 
> Have I done something wrong in my configuration?
> 
> Is this (a) expected (b) strange but innocent (c) nefarious, or (d) something 
> else?



Re: codepage and iocharset in fat32 aka msdos filesystem

2016-01-17 Thread Ingo Schwarze
Hi,

Lampshade wrote on Sun, Jan 17, 2016 at 04:12:39PM +0100:

> I am from Poland.
> I am using Windows 8.1 64-bit and OpenBSD-current amd64.
> When I used Gnu/Linux I mounted fat32 partitions
> with these options:
> iocharset=iso8859-2,codepage=852

The only charset supported by the OpenBSD base system is Unicode
and the only encoding supported is UTF-8, and there are no plans
to change that.

> However OpenBSD's mount tells me:
> mount -t msdos  -o codepage=852 /dev/sd0f /mnt/partycjaFat/
> mount_msdos: -o codepage: option not supported
> 
> and
> mount -t msdos  -o iocharset=iso8859-2 /dev/sd0f /mnt/partycjaFat/
> mount_msdos: -o iocharset: option not supported
> 
> 1. What codepage is used by default in FAT32 filesystem created
> and mounted in OpenBSD?

OpenBSD file systems do not have any noting of characters in file names.
The file systems treat file names as byte string.  Interpretation is
left to userland tools.

Userland tools are being worked on to treat strings as UTF-8 if the
locale(1) is set to UTF-8, and as US-ASCII otherwise.  Right now,
some are still inconsistent.

The ports tree may or may not contain third-party tools that help.

> 2. Is there a way to use other codepage in OpenBSD?

No, and it is very unlikely to happen in the future.

> If answer to 2 is no, then:
> 3. Is there way to force Windows to use different codepage
> for that FAT32 partition?

I have no idea.  Refer to your Windows documentation, or in case
that is inconclusive, deal with it as usual when dealing with
defective documentation: Read the fantastic source code.

Yours,
  Ingo



codepage and iocharset in fat32 aka msdos filesystem

2016-01-17 Thread Lampshade
Hello,
I am from Poland.
I am using Windows 8.1 64-bit and OpenBSD-current amd64.
When I used Gnu/Linux I mounted fat32 partitions
with these options:
iocharset=iso8859-2,codepage=852
However OpenBSD's mount tells me:
mount -t msdos  -o codepage=852 /dev/sd0f /mnt/partycjaFat/
mount_msdos: -o codepage: option not supported

and
mount -t msdos  -o iocharset=iso8859-2 /dev/sd0f /mnt/partycjaFat/
mount_msdos: -o iocharset: option not supported

1. What codepage is used by default in FAT32 filesystem created
and mounted in OpenBSD?
2. Is there a way to use other codepage in OpenBSD?
If answer to 2 is no, then:
3. Is there way to force Windows to use different codepage
for that FAT32 partition?



Re: Asrock Rack C2750D4I -- unsupported watchdog ?

2016-01-17 Thread Brendan Horan
On 15 Jan, 2016, at 8:45 PM, Stuart Henderson s...@spacehopper.org wrote:

> On 2016-01-15, Brendan Horan  wrote:
>> One thing I would like to get working if I can is the watchdog.
> 
>> acpi0: tables DSDT FACP FPDT FIDT HPET AAFT SPMI MCFG WDAT UEFI APIC BDAT 
>> SSDT
>
> 
> The watchdog is described in the ACPI "Watch Dog Action Table" (WDAT),
> it will need code writing to support this. The specification is at
> https://msdn.microsoft.com/en-us/windows/hardware/gg463320.aspx


Thank you! 
I had no clue. Let me go read the documents and see what I can do.