Andrew Lester | 1 Sep 22:47 2014
Picon

OpenBSD 5.5 + FreeRADIUS 2.2: PID directory deleted on reboot?

Hi all,

This is probably a very simple question, but for the life of me I have not been able to
locate a solution. I am running a RADIUS server on OpenBSD 5.5 stable (+ openssl patches) 
using FreeRADIUS 2.2.0p2 from the ports tree. When I first installed FreeRADIUS, it worked
great. However, when I rebooted the system, radiusd would no longer start. I discovered
the run_dir of /var/lrun/radiusd, which houses the PID file and socket, was missing. I
re-created the directory and changed its ownership to _freeradius. After that, it
started working again. But whenever the system reboots, the entire /var/run/radiusd
directory gets deleted somehow.

The only references I could find regarding this happening with OpenBSD was on a blog,
where the recommendation was simply to manually re-create the directory. There must be
something I am missing here, and I feel like it’s probably quite simple. Does anybody know
what I need to do in order to prevent the run dir from being deleted, or know if there is
a better location for it where it won’t be automatically deleted when the system reboots?

Thanks in advance for any help, it is much appreciated and OpenBSD rocks!

Warm regards,

Andrew

Charles Musser | 1 Sep 21:18 2014
Picon

addresses and routes configured via rtsol

I set up a small network in which an OpenBSD machine serves as a
router for a collection of IPv6-only clients. Many thanks to previous
responders to my questions on tunneling with gif(4). This rudimentary
setup is working well: a client machine acquires an address via SLAAC
and can access the IPv6 Internet. I am curious, however, about the
addresses and routes that get installed on the client machine.

The setup straightforward. The router is connected to an IPv6 tunnel
on the Internet-facing side (using a gif(4) interface), it has IPv6
forwarding enabled, and is running rtadvd on the inward-facing
interface. Note that rtadvd is using its internal defaults; I didn't
create a configuration file for it because the man page

The interface info and routing table is at the end of this mail and
I've annotated lines of interest with numbers in brackets so that
referencing these entries in questions would be clearer. The questions
are:

1.) In addition to the self-assigned link-local address, the client's
interface has two other addresses, both having the network prefix
supplied by the router (annotation [1]). One has the same suffix as
that of the link-local address. The other, marked "autoconfprivacy",
is different and changes periodically (certainly on every reboot). I
assume this address is formed with the rules defined in RFC 4941. As I
interpret it, the RFC suggests a scheme that employs different
addresses for server-oriented tasks and client-oriented tasks. The
idea is that a predicable address is suitable for the former, while a
randomized one is for the latter. Is that what's happening here?
According to netstat(1), this seems to be the case. While surfing the
web, the local address always seems to be the one with the
(Continue reading)

Josh Grosse | 1 Sep 19:26 2014
Picon

syslogd fails to bind /dev/log with inet6

I have several machines running the August 29 i386 snapshot, one of which
is unable to create /dev/log.  I'm not clear on why the code path of the
failing machine is significantly different, or, why this particular
failure occurs.

It is repeatable on the failing platform.  In single user mode:

# mount -a
# syslogd
syslogd: bind: Can't assign requested address
#

ktrace shows that it is an error with inet6:

 19063 syslogd  CALL  bind(0x5,0x783d99e0,0x1c)
 19063 syslogd  STRU  struct sockaddr { AF_INET6, [::]:514 }
 19063 syslogd  RET   bind -1 errno 49 Can't assign requested address

I have implemented a simple circumvention, in rc.conf.local:

syslogd_flags="-4"

Any clues to help isolate and repair would be appreciated.

OpenBSD 5.6-current (GENERIC.MP) #319: Fri Aug 29 03:07:28 MDT 2014
    todd <at> i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Atom(TM) CPU N270  <at>  1.60GHz ("GenuineIntel" 686-class) 1.60 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE,LAHF,PERF
real mem  = 1064464384 (1015MB)
avail mem = 1034641408 (986MB)
(Continue reading)

Clint Pachl | 1 Sep 14:24 2014

Re: How to log in automatically to GUI?

Andy Bradford wrote, On 08/27/14 08:35:
> Thus said Clint Pachl on Mon, 25 Aug 2014 16:36:26 -0700:
>
>> If someone knows how to do this properly via getty(8), I would be very
>> interested.
> I've used this successfully (not sure how proper it is):
>
> /etc/ttys:
>
> ttyC0   "/usr/libexec/getty console.nopw"       vt220   on  secure
>
> /etc/gettytab:
>
> console.nopw:\
> 	:sp#9600:lo=/usr/bin/autologin:
>
> /usr/bin/autologin:
>
> #!/bin/sh
> exec /usr/bin/login -f "$ <at> "

FYI: "$ <at> " equals "-p -- USER" where USER is the username entered at the 
login prompt. I never would have guessed that the -p option was included.

I just wanted to point out that this still requires someone to enter a 
valid username to get a login session. Is it possible to bypass even 
this step and just get a user login session (i.e., auto-login)?

I noticed some GETTYS (e.g., agetty) have an auto-login feature. I'm 
wondering if OpenBSD's getty can do do similar using the "lo" capability?
(Continue reading)

somelooser3524 | 1 Sep 12:53 2014

How to disable keyboard+mouse input in FVWM?

Besides gluing the USB holes on a PC, how could I disable the keyboard
and mouse input for a logged in user on a OpenBSD 5.5 install with
FVWM? 

Many thanks, 

somelooser3524 | 1 Sep 12:51 2014

mplayer full screen problems

Hello, 

If I put an OpenBSD 5.5 (FVWM) box on a display via VGA cable mplayer
does strange things: 

The "-geometry=50%:50%" doesn't work (doesn't put the videos in
center).

The "-fs" doesn't work. 

I can only use "-xy 1024" - but that is not the best, since there
could be videos that are wrongly aligned with it, too much to the top,
or too much to the bottom. 

Does anybody knows how can I use mplayer in OpenBSD from console so it
will put the videos in fullscreen properly with good alignment (in
center/middle of the screen)? 

Many thanks!

cheeky.m | 31 Aug 21:49 2014

panic: ffs_valloc: dup alloc

ddb{4}> show panic
ffs_valloc: dup alloc
ddb{4}> trace
Debugger() at Debugger+0x5
panic() at panic+0xee
ffs1_reallocblks() at ffs1_reallocblks
ufs_makeinode() at ufs_makeinode+0x88
ufs_create() at ufs_create+0x35
VOP_CREATE() at VOP_CREATE+0x30
vn_open() at vn_open+0x2ad
doopenat() at doopenat+0x125
syscall() at syscall+0x24f
--- syscall (number 5) ---
end of kernel
end trace frame: 0x2040, count: -9
0xee6413b5f1a:

looks like there’s only one panic for that in ufs/ffs/ffs_alloc.c

OpenBSD   5.5 GENERIC.MP#315 amd64

OpenBSD 5.5 (GENERIC.MP) #315: Wed Mar  5 09:37:46 MST 2014
    deraadt <at> amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 17153232896 (16358MB)
avail mem = 16688005120 (15914MB)

Julian Andrej | 30 Aug 20:52 2014
Picon
Picon

Problem with cwm and tabbed

I encountered a problem either with cwm or tabbeb
(http://tools.suckless.org/tabbed/). If I use cwm as my window manager
and start tabbed with an XEmbed supported application like xterm, surf
or st (e.g. tabbed xterm -into) and then I resize the window of
tabbed.

Before doing something else with the application inside tabbed I try
to close the instance with CTRL+Q (which is inherited from tabbed to
close the application). The result is cwm crashing and i'll be greeted
by the xdm login window.

Unfortunately there is no relevant (imho) output to the Xorg logs.

Does the problem exist for others and how can I further debug it?

Julian Andrej | 30 Aug 20:51 2014
Picon

Problem with cwm and tabbed

I encountered a problem either with cwm or tabbeb
(http://tools.suckless.org/tabbed/). If I use cwm as my window manager
and start tabbed with an XEmbed supported application like xterm, surf
or st (e.g. tabbed xterm -into) and then I resize the window of
tabbed.

Before doing something else with the application inside tabbed I try
to close the instance with CTRL+Q (which is inherited from tabbed to
close the application). The result is cwm crashing and i'll be greeted
by the xdm login window.

Unfortunately there is no relevant (imho) output to the Xorg logs.

Does the problem exist for others and how can I further debug it?

Pierre Emeriaud | 30 Aug 17:50 2014
Picon

openbgpd & rdomain/rtable (vrf-lite)

Hello misc <at> ,

I'd like to set up bgpd with multiple routing tables, a la vrf-lite
(ie without mpls and mp-bgp).

What works:
- peering within a rtable/rdomain
- receiving the routes

What doesn't work:
- nexthop is never "validated"
 -> routes are never installed in fib

Configuration is pretty straitforward:

# cat bgpd.conf
AS 64751
router-id 172.22.151.130
listen on 172.22.151.130  # loopback
listen on 172.22.151.251  # interface towards peer
rtable 10
group "ibgp peering AS64751" {
   remote-as 64751
   neighbor 172.22.151.245 {
      descr   "beta"
      announce self
   }
}

bgpd is started as such:
(Continue reading)

Jan Stary | 30 Aug 17:29 2014
Picon

nginx in current.html

The line

	rcctl enable nginx

in current.htl should probably read

	rcctl enable enginx

because /etc/rc.d/enginx is what gets installed.


Gmane