Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Scuro

#1
Quote from: bunchofreeds on August 02, 2022, 05:10:45 AM
@Scuro do you have DHCP for your WAN and it's on interface igc0?

Yes and I had made a similar thread. https://forum.opnsense.org/index.php?topic=29571.0

The error varies between 10 minutes to an hour.
#2
Quote from: franco on August 01, 2022, 09:58:29 AM
You can check lease time via i.e.

# cat /var/db/dhclient.leases.igb1

I didn't have that file but I did have dhclient.leases.igc0.
Am I supposed to have 13 leases in that file all of them with the same interface and address?

I have one of these for every hour
lease {
  interface "igc0";
  fixed-address 67.###.##.35;
  option subnet-mask 255.255.252.0;
  option routers 67.###.##.1;
  option domain-name-servers 75.75.75.75,75.75.76.76;
  option host-name "scuros-fw";
  option domain-name "##.##.comcast.net.";
  option broadcast-address 255.255.255.255;
  option dhcp-lease-time 3600;
  option dhcp-message-type 5;
  option dhcp-server-identifier 96.###.###.143;
  option dhcp-renewal-time 657;
  option dhcp-rebinding-time 2700;
  renew 1 2022/8/1 19:55:10;
  rebind 1 2022/8/1 20:03:21;
  expire 1 2022/8/1 20:44:13;
}
#3
Quote from: bunchofreeds on August 02, 2022, 01:35:52 AM
But the renewal and error happens every 2 and a half mins

That is standard behavior for DHCP. They always request renewal at half of lease.
#4
Quote from: franco on July 30, 2022, 09:16:24 PM
I need one info from everyone having this issue: under WAN settings, what is your IPv4 type?

IPv4 Configuration Type: DHCP
#5
It was every hour but after a reboot it has been every 10 minutes now.

No perceivable issues, just noticed when checking for errors after the update

This is what the logs look like. They keep repeating the same messages.


2022-07-30T11:52:10-07:00 Notice opnsense plugins_configure hosts (execute task : unbound_hosts_generate())
2022-07-30T11:52:10-07:00 Notice opnsense plugins_configure hosts (execute task : dnsmasq_hosts_generate())
2022-07-30T11:52:10-07:00 Notice opnsense plugins_configure hosts ()
2022-07-30T11:52:10-07:00 Error opnsense /usr/local/etc/rc.newwanip: On (IP address: 67.###.###.###) (interface: WAN[wan]) (real interface: igc0).
2022-07-30T11:52:10-07:00 Error opnsense /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'igc0'
2022-07-30T11:52:10-07:00 Notice dhclient Creating resolv.conf
2022-07-30T11:40:11-07:00 Notice opnsense plugins_configure hosts (execute task : unbound_hosts_generate())
2022-07-30T11:40:11-07:00 Notice opnsense plugins_configure hosts (execute task : dnsmasq_hosts_generate())
2022-07-30T11:40:11-07:00 Notice opnsense plugins_configure hosts ()
2022-07-30T11:40:11-07:00 Error opnsense /usr/local/etc/rc.newwanip: On (IP address: 67.###.###.###) (interface: WAN[wan]) (real interface: igc0).
2022-07-30T11:40:11-07:00 Error opnsense /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'igc0'
2022-07-30T11:40:11-07:00 Notice dhclient Creating resolv.conf
2022-07-30T10:40:11-07:00 Notice opnsense plugins_configure hosts (execute task : unbound_hosts_generate())
2022-07-30T10:40:11-07:00 Notice opnsense plugins_configure hosts (execute task : dnsmasq_hosts_generate())
2022-07-30T10:40:11-07:00 Notice opnsense plugins_configure hosts ()
2022-07-30T10:40:11-07:00 Error opnsense /usr/local/etc/rc.newwanip: On (IP address: 67.###.###.###) (interface: WAN[wan]) (real interface: igc0).
2022-07-30T10:40:11-07:00 Error opnsense /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'igc0'
2022-07-30T10:40:11-07:00 Notice dhclient Creating resolv.conf
#6
Quote from: buecker on June 20, 2022, 09:56:24 PM
My 5 port Intel I225-V box with the latest opnsense updates does not have this issue.

My 4 port I225-V b3 box is having this issue.

Details:
No spoofing, no IDS. Just IPv4, VLANS, and a weighted upload.
WAN will randomly disconnect and show the following repeated:


2022-07-13T18:03:33-07:00 Critical dhclient exiting.
2022-07-13T18:03:33-07:00 Error dhclient connection closed
2022-07-13T18:03:33-07:00 Error opnsense /usr/local/etc/rc.linkup: DEVD: Ethernet detached event for dynamic wan(igc0)


Most times it will come back up on its own, other times it will refuse to pick up DHCP from WAN.
Turning interface on/off doesn't fix. Requires reboot or physically unplugging port.
#7
Do you have it listening on that VLAN interface?
System > Settings > Administration > Listen Interfaces
#9
I tried getting details of errors but all I could find was interface errors in netstat.
Speed test also were unable to reach full WAN speeds. After switching to untagged vlans full speeds were reached.
#10
Yes, and I also tried giving it an IP for untagged traffic.

And because of a new issue (WAN interface refused to pull IP from DHCP because it thought the interface was down) I reverted back to the current stable.

Both versions however have the same symptoms; tagged vlans generate errors.
#11
Thank you for those threads.
I did some testing and moved a VM off of a trunked port.
I can confirm that the errors stop if it is untagged.
#12
I've been getting errors on my i225v ports that have VLANed traffic. I tried updating to see if driver changes fixed it. No change.
#13
Just wondering if anyone else with an Intel I225V interface is getting errors on both in and out for interface that has VLANed traffic.

It looks like it is mostly benign as I don't notice anything and the errors are roughly 0.01% of traffic.

However it is easily reproducible. If I run any bandwidth testing that uses full bandwidth, the errors immediately go up.

The errors happen at both speeds of 1gbps or 2.5 if manually set.

I tried updating to 22.7.b, still get the same errors.
#14
Your profile script looks a little different from mine. I am wondering if there is a syntax error.
When you login, what happens if you type sh .profile

My .profile script looks like this:
# $FreeBSD$
#
HOME=/root
export HOME
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
export PATH
TERM=${TERM:-xterm}
export TERM
PAGER=less
export PAGER

# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV

# Query terminal size; useful for serial lines.
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi

# Uncomment to display a random cookie on each login.
# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fi
sudo opnsense-shell
#15
If you replace sudo su with sudo opnsense-shell does it fix the problem?