OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« previous next »
  • Print
Pages: [1]

Author Topic: Strange behaviour when Raspberry PI 4 connected to my OPNsense device  (Read 3888 times)

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« on: November 24, 2021, 10:14:43 am »
Briefly, my device has got 3 ports, WAN, LAN1 and LAN2, and each time I reboot the RB Pi 4 (which is connected to LAN2) all my devices (which are connected to a WAP on LAN1) lose Internet for about 2 minutes: why is that ?

Tia.
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 1752
  • Karma: 176
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #1 on: November 24, 2021, 07:37:49 pm »
Hard to say without details about the software on the Pi. First thought is an IP conflict since the timescale fits an ARP timeout.

Run a ping to 8.8.8.8 from one of your affected devices and Wireshark its traffic to see what's going on.

Bart...
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2195
  • Karma: 98
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #2 on: November 24, 2021, 09:21:25 pm »
Raspi OS?
Connected via wifi or RJ45?
Interface on raspi configured for DHCP or fixed IP?
Is the network connection on the raspi functional during these 2 min?
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #3 on: November 24, 2021, 09:46:45 pm »
Quote from: chemlud on November 24, 2021, 09:21:25 pm
Raspi OS?
Tried both Buster and Bullseye 64 bit

Quote
Connected via wifi or RJ45?
RJ45

Quote
Interface on raspi configured for DHCP or fixed IP?
Fixed IP

Quote
Is the network connection on the raspi functional during these 2 min?
Yes, LAN wise it seems all okay, e.g. I can use VNCViewer, SSH, and the shared printer
Logged

allebone

  • Sr. Member
  • ****
  • Posts: 374
  • Karma: 32
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #4 on: November 25, 2021, 03:04:16 am »
Do you have a usb nic anywhere by any chance. Some usb nics send a reset packet that broadcasts over the network that causes problems with many devices.
Logged

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #5 on: November 25, 2021, 11:24:21 am »
Nope, I don't use USB NIC - and if I connect the PS4 to same LAN2 port, I can reboot it many times and it all works normally.

I did also connect the Raspi directly to my laptop, and I can't see that same strange behaviour, i.e. my laptop never loses Internet connection.

Thanks.
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2195
  • Karma: 98
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #6 on: November 25, 2021, 02:35:19 pm »
Does the raspi try to connect to the WAP in LAN1? I don't get what the connection between joining LAN2 via RJ45 and the connection of your clients to a WAP in LAN1 should be....
« Last Edit: November 25, 2021, 02:52:34 pm by chemlud »
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #7 on: November 25, 2021, 04:50:04 pm »
Quote from: chemlud on November 25, 2021, 02:35:19 pm
Does the raspi try to connect to the WAP in LAN1?
No, both Bluetooth and Wi-Fi on Raspi are disabled.

Quote
I don't get what the connection between joining LAN2 via RJ45 and the connection of your clients to a WAP in LAN1 should be....
Me neither  ::)

I should probably look at some OPNsense logs, but have no clue where to start from, any advice?
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 1752
  • Karma: 176
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #8 on: November 25, 2021, 07:20:13 pm »
Quote from: hushcoden on November 25, 2021, 04:50:04 pm
I should probably look at some OPNsense logs, but have no clue where to start from, any advice?

Yes, start with the devices that have the actual problem - record a packet capture on a workstation that is running a ping -t 8.8.8.8 and check which errors you see.

There is as yet nothing to point to OPNsense - just to a general connectivity issue in a subnet that you can reliably trigger with a reboot of a device.

In a way, you're lucky. Random problems are much harder to diagnose :)

Bart...
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2195
  • Karma: 98
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #9 on: November 27, 2021, 10:19:28 pm »
My idea: try  something like Debian or opensuse

https://en.opensuse.org/HCL:Raspberry_Pi4

If same problem: post here again

If not: post in networking section of raspi forums...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #10 on: November 28, 2021, 07:54:04 pm »
Will try with a different OS sooner or later, for now I have swapped it with the PS4, i.e. Raspi connected to one of the LAN port of the WAP, and PS4 to LAN2 and no more that issue.
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2195
  • Karma: 98
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #11 on: November 29, 2021, 04:17:40 pm »
Are you using the LAN ports of your sense in bridge mode? Would not recommend....
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #12 on: November 29, 2021, 05:00:54 pm »
Quote from: chemlud on November 29, 2021, 04:17:40 pm
Are you using the LAN ports of your sense in bridge mode? Would not recommend....
Nope: LAN1 = 192.168.0.0/24 and LAN2 = 192.168.10.0/24
« Last Edit: November 29, 2021, 05:02:35 pm by hushcoden »
Logged

hushcoden

  • Sr. Member
  • ****
  • Posts: 445
  • Karma: 18
    • View Profile
Re: Strange behaviour when Raspberry PI 4 connected to my OPNsense device
« Reply #13 on: February 23, 2022, 10:37:20 pm »
Raspi is no longer connected, but still I experience this annoying issue this time with the PS4 connected to that same LAN2 port: each and everytime I switch it on, all my LAN clients lose Internet for a couple of minutes.

I have attached what I can see on the general log, any suggestions?

Tia.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Strange behaviour when Raspberry PI 4 connected to my OPNsense device
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2