You need dhcpcd from ports. I don't think the base client supports scripts.
On Dec 28, 2017 3:51 PM, Stefan Wollny <stefan.wol...@web.de> wrote:
>
> Hi there!
>
> I have this little machine which serves as (squid-)proxy for my local net.
> $ dmesg | grep Open
> OpenBSD 6.2-current (GENERIC.MP) #311: Wed Dec 27 21:49:49 MST 2017
>
> Basically everything is fine - except responses are kind of slow. So I
> had the idea to not use squid to filter for unwanted sites but use adsuck.
>
> I followed the advice in /usr/local/share/doc/pkg-readmes/adsuck-2.5.0p4
> which now reads:
> $ cat /etc/dhclient.conf
> send host-name <client-name>;
> script "/usr/local/sbin/dhclient-adsuck";
>
> I had to use chflags with 'schg' to make shure that /etc/resolv.conf
> only contains one line (neither 'supersede' nor 'prepend' in
> dhclient.conf did the job):
> $ cat /etc/resolv.conf
>
>
> nameserver 127.0.0.1
>
> And YES: adsuck is activated via /etc/rc.conf.local (actually it is the
> very first one after 'pkg_scripts='). It is up and running:
> $ top | grep adsuck
> 72573 _adsuck    2    0 2260K 4704K idle      kqread    0:00  0.00% adsuck
>
> Now: If I run 'sh /etc/netstart' on the console or an xterm I see the
> following:
>
> $ doas sh /etc/netstart
> em1: /etc/dhclient.conf line 2: expecting statement.
> em1: script
> em1: ^
> em1: DHCPREQUEST to 255.255.255.255
> em1: DHCPACK from a.b.c.d (aa:bb:cc:dd:ee:ff)
> em1: bound to a.b.d.e -- renewal in 432000 seconds
>
> I am kind of stuck: What might I have been doing wrong here???
>
> Some kind soul around to give me a clue?
>
> THX in advance!
>
> Best,
> STEFAN
>

Reply via email to