DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 5th June 2020
cal70 cal70 is offline
New User
 
Join Date: Mar 2020
Posts: 3
Default Logging question

I'm using OpenBSD as the router / firewall, so far loving it. I daily check the logs (messages & daemon). I have had some issues and been able to sort all except this. I don't know where to go from here...

Screen shot of log output.

Here is the issue:
Code:
Jun  4 17:00:02 firewall-dev syslogd[39702]: restart
Jun  4 18:16:35 firewall-dev dhclient[26642]: vmx0: sendmsg(DHCPREQUEST): Permission denied
Jun  4 18:16:36 firewall-dev dhclient[26642]: vmx0: sendmsg(DHCPREQUEST): Permission denied
Appreciate any help...
Attached Images
File Type: png Screen Shot 2020-06-05 at 10.53.48.png (356.8 KB, 54 views)
Reply With Quote
  #2   (View Single Post)  
Old 5th June 2020
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

This error is produced in /usr/src/sbin/dhclient/bpf.c, at line number 323:
Code:
    315         } else {
    316                 memset(&msg, 0, sizeof(msg));
    317                 msg.msg_name = (struct sockaddr *)&dest;
    318                 msg.msg_namelen = sizeof(dest);
    319                 msg.msg_iov = iov;
    320                 msg.msg_iovlen = iovcnt;
    321                 result = sendmsg(ifi->udpfd, &msg, 0);
    322                 if (result == -1)
    323                         log_warn("%s: sendmsg(%s)", log_procname, desc);
    324                 else if (result < total) {
    325                         result = -1;
    326                         log_warnx("%s, sendmsg(%s): %zd of %zd bytes",
    327                             log_procname, desc, result, total);
    328                 }
sendmsg(2) is a syscall which can produce an access error.
Code:
     [EACCES]           The connection was blocked by pf(4), or SO_BROADCAST
                        is not set on the socket and a broadcast address was
                        given as the destination.
If you're certain this isn't a PF issue, then you may want to do some dhclient(8) debugging. You can start it with -v, and if that fails to provide sufficient information, you can dust off your programming skills and use gdb(1) or devel/gdb, set breakpoints, and/or log values before the syscall. I note that vmx(4) is something of a special case pseudo-NIC, designed for use in VMWare guests.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
URL logging beavers OpenBSD General 15 9th March 2019 01:54 AM
Doas has logging? cpaulette OpenBSD General 1 13th March 2016 10:24 AM
pflog not logging. bsdnewbie999 OpenBSD General 9 13th March 2009 11:19 PM
Suggestions for Web Traffic Logging? Bruco FreeBSD Ports and Packages 16 18th September 2008 10:54 PM
spamd logging question roundkat OpenBSD General 10 11th June 2008 01:27 PM


All times are GMT. The time now is 11:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick