Connections dropped when renewing WAN DHCP lease

Started by Snowstorm1491, August 04, 2022, 11:39:42 PM

Previous topic - Next topic
For some reason, my WAN DHCP is renewing every few minutes. When this happens, connections from LAN to Internet is dropped for 2 seconds. So every few minutes I lose Internet connection for 2 seconds. Is it to be expected that connections will be dropped when WAN DHCP is renewing lease?

ping logs from LAN client:
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=983 Destination Host Unreachable
From 192.168.1.1 icmp_seq=984 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2053 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2054 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2603 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2604 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2605 Destination Host Unreachable


From system logs:
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain dhclient 14374 - [meta sequenceId="1"] New IP Address (vtnet1): xxx.yyy.182.81
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain dhclient 15362 - [meta sequenceId="2"] New Subnet Mask (vtnet1): 255.255.254.0
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain dhclient 16206 - [meta sequenceId="3"] New Broadcast Address (vtnet1): xxx.yyy.183.255
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain dhclient 17299 - [meta sequenceId="4"] New Routers (vtnet1): xxx.yyy.182.1
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain dhclient 18878 - [meta sequenceId="5"] route add default xxx.yyy.182.1
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain dhclient 19817 - [meta sequenceId="6"] Creating resolv.conf
<11>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain opnsense 21296 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain opnsense 21296 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain opnsense 21296 - [meta sequenceId="9"] plugins_configure hosts ()
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain opnsense 21296 - [meta sequenceId="10"] plugins_configure hosts (execute task : dnsmasq_hosts_generate())
<13>1 2022-08-04T23:03:53+02:00 Ocelot.localdomain opnsense 21296 - [meta sequenceId="11"] plugins_configure hosts (execute task : unbound_hosts_generate())
<13>1 2022-08-04T23:11:41+02:00 Ocelot.localdomain dhclient 23714 - [meta sequenceId="1"] Creating resolv.conf
<11>1 2022-08-04T23:11:41+02:00 Ocelot.localdomain opnsense 25784 - [meta sequenceId="2"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-04T23:11:41+02:00 Ocelot.localdomain opnsense 25784 - [meta sequenceId="3"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-04T23:11:41+02:00 Ocelot.localdomain opnsense 25784 - [meta sequenceId="4"] plugins_configure hosts ()
<13>1 2022-08-04T23:11:41+02:00 Ocelot.localdomain opnsense 25784 - [meta sequenceId="5"] plugins_configure hosts (execute task : dnsmasq_hosts_generate())
<13>1 2022-08-04T23:11:41+02:00 Ocelot.localdomain opnsense 25784 - [meta sequenceId="6"] plugins_configure hosts (execute task : unbound_hosts_generate())
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain dhclient 13102 - [meta sequenceId="1"] New IP Address (vtnet1): xxx.yyy.182.81
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain dhclient 13960 - [meta sequenceId="2"] New Subnet Mask (vtnet1): 255.255.254.0
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain dhclient 14594 - [meta sequenceId="3"] New Broadcast Address (vtnet1): xxx.yyy.183.255
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain dhclient 15499 - [meta sequenceId="4"] New Routers (vtnet1): xxx.yyy.182.1
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain dhclient 17181 - [meta sequenceId="5"] route add default xxx.yyy.182.1
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain dhclient 18506 - [meta sequenceId="6"] Creating resolv.conf
<11>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain opnsense 19811 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain opnsense 19811 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain opnsense 19811 - [meta sequenceId="9"] plugins_configure hosts ()
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain opnsense 19811 - [meta sequenceId="10"] plugins_configure hosts (execute task : dnsmasq_hosts_generate())
<13>1 2022-08-04T23:21:44+02:00 Ocelot.localdomain opnsense 19811 - [meta sequenceId="11"] plugins_configure hosts (execute task : unbound_hosts_generate())
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain dhclient 83332 - [meta sequenceId="1"] New IP Address (vtnet1): xxx.yyy.182.81
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain dhclient 84019 - [meta sequenceId="2"] New Subnet Mask (vtnet1): 255.255.254.0
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain dhclient 84871 - [meta sequenceId="3"] New Broadcast Address (vtnet1): xxx.yyy.183.255
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain dhclient 85210 - [meta sequenceId="4"] New Routers (vtnet1): xxx.yyy.182.1
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain dhclient 87164 - [meta sequenceId="5"] route add default xxx.yyy.182.1
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain dhclient 88029 - [meta sequenceId="6"] Creating resolv.conf
<11>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain opnsense 89254 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain opnsense 89254 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain opnsense 89254 - [meta sequenceId="9"] plugins_configure hosts ()
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain opnsense 89254 - [meta sequenceId="10"] plugins_configure hosts (execute task : dnsmasq_hosts_generate())
<13>1 2022-08-04T23:30:56+02:00 Ocelot.localdomain opnsense 89254 - [meta sequenceId="11"] plugins_configure hosts (execute task : unbound_hosts_generate())


I have tried connecting a VM directly to upstream, and it pings for hours with no packet losses. Either the VM does not renew DHCP leases as frequently or DHCP lease renewal doesn't drop connections.

It's pretty important to at least post in the appropriate forum for your version number, but I'm guessing 22.7 so:

https://forum.opnsense.org/index.php?topic=29556.msg143071#msg143071


Cheers,
Franco

This also happened in 22.1 before upgrading, that's why I thought it's not version dependent and hence I posted in General Discussion.

I will apply the patch and see if it solves the problem.

After applying the patch it still happens.

PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1032 Destination Host Unreachable
From 192.168.1.1 icmp_seq=1033 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2069 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2070 Destination Host Unreachable
From 192.168.1.1 icmp_seq=2071 Destination Host Unreachable
From 192.168.1.1 icmp_seq=3089 Destination Host Unreachable
From 192.168.1.1 icmp_seq=3090 Destination Host Unreachable


<13>1 2022-08-05T00:14:34+02:00 Ocelot.localdomain dhclient 56322 - [meta sequenceId="1"] New IP Address (vtnet1): xxx.yyy.182.81
<13>1 2022-08-05T00:14:34+02:00 Ocelot.localdomain dhclient 57732 - [meta sequenceId="2"] New Subnet Mask (vtnet1): 255.255.254.0
<13>1 2022-08-05T00:14:34+02:00 Ocelot.localdomain dhclient 58693 - [meta sequenceId="3"] New Broadcast Address (vtnet1): xxx.yyy.183.255
<13>1 2022-08-05T00:14:34+02:00 Ocelot.localdomain dhclient 59902 - [meta sequenceId="4"] New Routers (vtnet1): xxx.yyy.182.1
<13>1 2022-08-05T00:14:34+02:00 Ocelot.localdomain dhclient 61997 - [meta sequenceId="5"] route add default xxx.yyy.182.1
<13>1 2022-08-05T00:14:34+02:00 Ocelot.localdomain dhclient 63282 - [meta sequenceId="6"] Creating resolv.conf
<11>1 2022-08-05T00:14:34+02:00 Ocelot.localdomain opnsense 65222 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-05T00:14:34+02:00 Ocelot.localdomain opnsense 65222 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-05T00:21:48+02:00 Ocelot.localdomain dhclient 98174 - [meta sequenceId="1"] Creating resolv.conf
<13>1 2022-08-05T00:31:52+02:00 Ocelot.localdomain dhclient 34620 - [meta sequenceId="1"] New IP Address (vtnet1): xxx.yyy.182.81
<13>1 2022-08-05T00:31:52+02:00 Ocelot.localdomain dhclient 35946 - [meta sequenceId="2"] New Subnet Mask (vtnet1): 255.255.254.0
<13>1 2022-08-05T00:31:52+02:00 Ocelot.localdomain dhclient 36662 - [meta sequenceId="3"] New Broadcast Address (vtnet1): xxx.yyy.183.255
<13>1 2022-08-05T00:31:52+02:00 Ocelot.localdomain dhclient 37553 - [meta sequenceId="4"] New Routers (vtnet1): xxx.yyy.182.1
<13>1 2022-08-05T00:31:52+02:00 Ocelot.localdomain dhclient 39110 - [meta sequenceId="5"] route add default xxx.yyy.182.1
<13>1 2022-08-05T00:31:52+02:00 Ocelot.localdomain dhclient 40114 - [meta sequenceId="6"] Creating resolv.conf
<11>1 2022-08-05T00:31:52+02:00 Ocelot.localdomain opnsense 41889 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-05T00:31:52+02:00 Ocelot.localdomain opnsense 41889 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-05T00:38:50+02:00 Ocelot.localdomain dhclient 50066 - [meta sequenceId="1"] Creating resolv.conf
<13>1 2022-08-05T00:48:53+02:00 Ocelot.localdomain dhclient 81788 - [meta sequenceId="1"] New IP Address (vtnet1): xxx.yyy.182.81
<13>1 2022-08-05T00:48:53+02:00 Ocelot.localdomain dhclient 82268 - [meta sequenceId="2"] New Subnet Mask (vtnet1): 255.255.254.0
<13>1 2022-08-05T00:48:53+02:00 Ocelot.localdomain dhclient 83213 - [meta sequenceId="3"] New Broadcast Address (vtnet1): xxx.yyy.183.255
<13>1 2022-08-05T00:48:53+02:00 Ocelot.localdomain dhclient 83721 - [meta sequenceId="4"] New Routers (vtnet1): xxx.yyy.182.1
<13>1 2022-08-05T00:48:53+02:00 Ocelot.localdomain dhclient 85506 - [meta sequenceId="5"] route add default xxx.yyy.182.1
<13>1 2022-08-05T00:48:53+02:00 Ocelot.localdomain dhclient 86074 - [meta sequenceId="6"] Creating resolv.conf
<11>1 2022-08-05T00:48:53+02:00 Ocelot.localdomain opnsense 88985 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-05T00:48:53+02:00 Ocelot.localdomain opnsense 88985 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-05T00:56:31+02:00 Ocelot.localdomain dhclient 56815 - [meta sequenceId="1"] Creating resolv.conf

There's two patches. It looks like you applied the secondary one, but the more important one might still be missing?


Cheers,
Franco

Indeed, running opnsense-patch 7aaa6a263b1 bb4743a7322 as suggested only applied bb4743a7322. So I had to patch both separately. After reboot I made sure both patches are applied:

root@Ocelot:~ # opnsense-patch 7aaa6a263b1
Found local copy of 7aaa6a263b1, skipping fetch.
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From 7aaa6a263b1351f74408038dd8d339e7deb4aafa Mon Sep 17 00:00:00 2001
|From: Franco Fichtner <franco@opnsense.org>
|Date: Tue, 2 Aug 2022 08:21:18 +0200
|Subject: [PATCH] system: do not reload unbound/dnsmasq "hosts" by default
|                                                                                                                                                           
|Number of people noted spurious restarts of Unbound and this seems
|to be the cause.  However, the real cause of hammering rc.newwanip
|is in 797c18641944 and to avoid other side effects like the GIF/GRE
|stuff we should consider reverting part of it.
|---
| src/etc/inc/system.inc      | 2 --
| src/www/services_dhcp.php   | 1 +
| src/www/services_dhcpv6.php | 1 +
| 3 files changed, 2 insertions(+), 2 deletions(-)
|
|diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc
|index 1972606927..917e83d4c4 100644
|--- a/src/etc/inc/system.inc
|+++ b/src/etc/inc/system.inc                                                                                                                               
--------------------------
Patching file etc/inc/system.inc using Plan A...
Reversed (or previously applied) patch detected!  Assuming -R.Hunk #1 succeeded at 449 (offset -15 lines).
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------                                                                                                                                 
|diff --git a/src/www/services_dhcp.php b/src/www/services_dhcp.php
|index 099a1d42fb..85c8429b36 100644
|--- a/src/www/services_dhcp.php
|+++ b/src/www/services_dhcp.php
--------------------------
Patching file www/services_dhcp.php using Plan A...                                                                                                         
Reversed (or previously applied) patch detected!  Assuming -R.Hunk #1 succeeded at 49.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/src/www/services_dhcpv6.php b/src/www/services_dhcpv6.php
|index 679b357054..8174e9edb8 100644
|--- a/src/www/services_dhcpv6.php
|+++ b/src/www/services_dhcpv6.php
--------------------------
Patching file www/services_dhcpv6.php using Plan A...
Reversed (or previously applied) patch detected!  Assuming -R.Hunk #1 succeeded at 37.
done
All patches have been applied successfully.  Have a nice day.

root@Ocelot:~ # opnsense-patch bb4743a7322
Found local copy of bb4743a7322, skipping fetch.
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From bb4743a732243a3e5bd55f1586bbe5e3a2739d1d Mon Sep 17 00:00:00 2001
|From: Franco Fichtner <franco@opnsense.org>
|Date: Tue, 2 Aug 2022 09:04:12 +0200
|Subject: [PATCH] interfaces: stop DHCP from calling rc.newwanip when no
| changes are being done
|
|This is a partial revert of 797c1864194 which has good intentions but rc.newwanip(v6)
|isn't equipped with being called a lot of times yet.  We want to improve this for 23.1.
|---
| src/opnsense/scripts/interfaces/dhclient-script | 9 ++++++++-
| 1 file changed, 8 insertions(+), 1 deletion(-)
|
|diff --git a/src/opnsense/scripts/interfaces/dhclient-script b/src/opnsense/scripts/interfaces/dhclient-script
|index 5c8bfe9c60..6fd5c5b212 100755
|--- a/src/opnsense/scripts/interfaces/dhclient-script
|+++ b/src/opnsense/scripts/interfaces/dhclient-script
--------------------------
Patching file opnsense/scripts/interfaces/dhclient-script using Plan A...
Reversed (or previously applied) patch detected!  Assuming -R.Hunk #1 succeeded at 296 (offset -2 lines).
Hunk #2 succeeded at 311 (offset -2 lines).
done
All patches have been applied successfully.  Have a nice day.


Then ping test:
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=999 Destination Host Unreachable
From 192.168.1.1 icmp_seq=1000 Destination Host Unreachable


System log:
<13>1 2022-08-05T11:49:09+02:00 Ocelot.localdomain dhclient 16916 - [meta sequenceId="1"] Creating resolv.conf
<11>1 2022-08-05T11:49:09+02:00 Ocelot.localdomain opnsense 18228 - [meta sequenceId="2"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-05T11:49:09+02:00 Ocelot.localdomain opnsense 18228 - [meta sequenceId="3"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-05T11:49:09+02:00 Ocelot.localdomain opnsense 18228 - [meta sequenceId="4"] plugins_configure hosts ()
<13>1 2022-08-05T11:49:09+02:00 Ocelot.localdomain opnsense 18228 - [meta sequenceId="5"] plugins_configure hosts (execute task : dnsmasq_hosts_generate())
<13>1 2022-08-05T11:49:09+02:00 Ocelot.localdomain opnsense 18228 - [meta sequenceId="6"] plugins_configure hosts (execute task : unbound_hosts_generate())
<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain dhclient 36325 - [meta sequenceId="1"] New IP Address (vtnet1): xxx.yyy.182.81
<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain dhclient 37087 - [meta sequenceId="2"] New Subnet Mask (vtnet1): 255.255.254.0
<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain dhclient 37924 - [meta sequenceId="3"] New Broadcast Address (vtnet1): xxx.yyy.183.255
<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain dhclient 38442 - [meta sequenceId="4"] New Routers (vtnet1): xxx.yyy.182.1
<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain dhclient 39929 - [meta sequenceId="5"] route add default xxx.yyy.182.1
<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain dhclient 40632 - [meta sequenceId="6"] Creating resolv.conf
<11>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain opnsense 41911 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain opnsense 41911 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain opnsense 41911 - [meta sequenceId="9"] plugins_configure hosts ()
<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain opnsense 41911 - [meta sequenceId="10"] plugins_configure hosts (execute task : dnsmasq_hosts_generate())<13>1 2022-08-05T11:59:12+02:00 Ocelot.localdomain opnsense 41911 - [meta sequenceId="11"] plugins_configure hosts (execute task : unbound_hosts_generate())


After applying patches, "Error opnsense/usr/local/etc/rc.newwanip" still appears in my system log, as opposed to the other users on that thread.

Even after clean installation of 22.7, apply updates, apply patches, still the same.

After reinstallation:
root@ocelot:~ # opnsense-patch 7aaa6a263b1 bb4743a7322
Fetched 7aaa6a263b1 via https://github.com/opnsense/core
Fetched bb4743a7322 via https://github.com/opnsense/core
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From 7aaa6a263b1351f74408038dd8d339e7deb4aafa Mon Sep 17 00:00:00 2001                                                                                     
|From: Franco Fichtner <franco@opnsense.org>                                                                                                               
|Date: Tue, 2 Aug 2022 08:21:18 +0200
|Subject: [PATCH] system: do not reload unbound/dnsmasq "hosts" by default                                                                                 
|
|Number of people noted spurious restarts of Unbound and this seems                                                                                         
|to be the cause.  However, the real cause of hammering rc.newwanip                                                                                         
|is in 797c18641944 and to avoid other side effects like the GIF/GRE                                                                                       
|stuff we should consider reverting part of it.
|---
| src/etc/inc/system.inc      | 2 --
| src/www/services_dhcp.php   | 1 +
| src/www/services_dhcpv6.php | 1 +
| 3 files changed, 2 insertions(+), 2 deletions(-)
|
|diff --git a/src/etc/inc/system.inc b/src/etc/inc/system.inc                                                                                               
|index 1972606927..917e83d4c4 100644
|--- a/src/etc/inc/system.inc
|+++ b/src/etc/inc/system.inc
--------------------------
Patching file etc/inc/system.inc using Plan A...
Hunk #1 succeeded at 449 (offset -15 lines).
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/src/www/services_dhcp.php b/src/www/services_dhcp.php                                                                                         
|index 099a1d42fb..85c8429b36 100644
|--- a/src/www/services_dhcp.php
|+++ b/src/www/services_dhcp.php
--------------------------
Patching file www/services_dhcp.php using Plan A...
Hunk #1 succeeded at 49.
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/src/www/services_dhcpv6.php b/src/www/services_dhcpv6.php                                                                                     
|index 679b357054..8174e9edb8 100644
|--- a/src/www/services_dhcpv6.php
|+++ b/src/www/services_dhcpv6.php
--------------------------
Patching file www/services_dhcpv6.php using Plan A...
Hunk #1 succeeded at 37.
done
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|From bb4743a732243a3e5bd55f1586bbe5e3a2739d1d Mon Sep 17 00:00:00 2001                                                                                     
|From: Franco Fichtner <franco@opnsense.org>
|Date: Tue, 2 Aug 2022 09:04:12 +0200
|Subject: [PATCH] interfaces: stop DHCP from calling rc.newwanip when no                                                                                   
| changes are being done
|
|This is a partial revert of 797c1864194 which has good intentions but rc.newwanip(v6)                                                                     
|isn't equipped with being called a lot of times yet.  We want to improve this for 23.1.                                                                   
|---
| src/opnsense/scripts/interfaces/dhclient-script | 9 ++++++++-                                                                                             
| 1 file changed, 8 insertions(+), 1 deletion(-)
|
|diff --git a/src/opnsense/scripts/interfaces/dhclient-script b/src/opnsense/scripts/interfaces/dhclient-script                                             
|index 5c8bfe9c60..6fd5c5b212 100755
|--- a/src/opnsense/scripts/interfaces/dhclient-script
|+++ b/src/opnsense/scripts/interfaces/dhclient-script
--------------------------
Patching file opnsense/scripts/interfaces/dhclient-script using Plan A...                                                                                   
Hunk #1 succeeded at 296 (offset -2 lines).
Hunk #2 succeeded at 314 (offset -2 lines).
done
All patches have been applied successfully.  Have a nice day.                                                                                               

root@ocelot:~ # reboot


Ping test:
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1075 Destination Host Unreachable
From 192.168.1.1 icmp_seq=1076 Destination Host Unreachable


System log:
<13>1 2022-08-05T12:41:03+02:00 ocelot.localdomain dhclient 54217 - [meta sequenceId="1"] Creating resolv.conf
<13>1 2022-08-05T12:51:06+02:00 ocelot.localdomain dhclient 78943 - [meta sequenceId="1"] New IP Address (vtnet1): xxx.yyy.182.81
<13>1 2022-08-05T12:51:06+02:00 ocelot.localdomain dhclient 80106 - [meta sequenceId="2"] New Subnet Mask (vtnet1): 255.255.254.0
<13>1 2022-08-05T12:51:06+02:00 ocelot.localdomain dhclient 81393 - [meta sequenceId="3"] New Broadcast Address (vtnet1): xxx.yyy.183.255
<13>1 2022-08-05T12:51:06+02:00 ocelot.localdomain dhclient 82718 - [meta sequenceId="4"] New Routers (vtnet1): xxx.yyy.182.1
<13>1 2022-08-05T12:51:06+02:00 ocelot.localdomain dhclient 85317 - [meta sequenceId="5"] route add default xxx.yyy.182.1
<13>1 2022-08-05T12:51:06+02:00 ocelot.localdomain dhclient 87187 - [meta sequenceId="6"] Creating resolv.conf
<11>1 2022-08-05T12:51:06+02:00 ocelot.localdomain opnsense 89605 - [meta sequenceId="7"] /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'vtnet1'
<11>1 2022-08-05T12:51:06+02:00 ocelot.localdomain opnsense 89605 - [meta sequenceId="8"] /usr/local/etc/rc.newwanip: On (IP address: xxx.yyy.182.81) (interface: WAN[wan]) (real interface: vtnet1).
<13>1 2022-08-05T12:57:49+02:00 ocelot.localdomain dhclient 99774 - [meta sequenceId="1"] Creating resolv.conf