OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • Cannot route to internet after upgrade
« previous next »
  • Print
Pages: [1]

Author Topic: Cannot route to internet after upgrade  (Read 2166 times)

dfw3xam1n3r

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
    • View Profile
Cannot route to internet after upgrade
« on: February 05, 2024, 10:49:45 pm »
Upgraded to 24.1_1, cannot ping out to the internet now. Not sure what changed.

Pinging from OPNsense command line:

PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: No route to host

Has anyone else seen this?

I have stopped suricata, zenarmor, crowdsec, and nothing seems to help.
« Last Edit: February 05, 2024, 10:57:35 pm by dfw3xam1n3r »
Logged
OPNsense 24.7.7  - QEMU/KVM (Ubuntu), i9-9900K 16 core @ 5ghz, 16GB RAM, 64GB SSD, 2 dedicated SFP+ NICs

Saarbremer

  • Sr. Member
  • ****
  • Posts: 353
  • Karma: 14
    • View Profile
Re: Cannot route to internet after upgrade
« Reply #1 on: February 05, 2024, 10:57:37 pm »
Check your default gateway for IPv4. It went missing on my box after the upgrade. I had to manually create it (static ip configuration).

You might also want to have a look at the gateway config in the WAN interface, being set to Auto-Config.
Logged

dfw3xam1n3r

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
    • View Profile
Re: Cannot route to internet after upgrade
« Reply #2 on: February 05, 2024, 11:07:24 pm »
Thanks for the quick reply! That was definitely it.
Logged
OPNsense 24.7.7  - QEMU/KVM (Ubuntu), i9-9900K 16 core @ 5ghz, 16GB RAM, 64GB SSD, 2 dedicated SFP+ NICs

tiophamu

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Cannot route to internet after upgrade
« Reply #3 on: February 09, 2024, 01:51:22 pm »
Quote from: Saarbremer on February 05, 2024, 10:57:37 pm
Check your default gateway for IPv4. It went missing on my box after the upgrade. I had to manually create it (static ip configuration).

You might also want to have a look at the gateway config in the WAN interface, being set to Auto-Config.

Thank you, that also fixed my issue. I still have two question:
* Do you, or someone else, know why the default gateway was deleted?
* Why do you recommend to set the gateway to auto-config in the settings for the wan interface?
Logged

Saarbremer

  • Sr. Member
  • ****
  • Posts: 353
  • Karma: 14
    • View Profile
Re: Cannot route to internet after upgrade
« Reply #4 on: February 09, 2024, 09:48:22 pm »
Hi,

I don't know about the reasons for the missing gateway. But some people here reported that earlier and I saw it on my machine, too.

The Auto-config is stated in the docs and the help for all cases where you just have 1 WAN. It furthermore prevents you from an unexpected routing behavior in cases where a second gateway in a subnet exists. It causes all traffic to take the set gateway.
Logged

plyn

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Cannot route to internet after upgrade
« Reply #5 on: February 24, 2024, 12:03:03 pm »
Quote from: Saarbremer on February 05, 2024, 10:57:37 pm
You might also want to have a look at the gateway config in the WAN interface, being set to Auto-Config.

Could you please tell me where I can find these settings?
I went to Interfaces > [WAN] but I couldn't find an item to set to Auto-Config.

Thanks in advance for your help. 

Logged

Saarbremer

  • Sr. Member
  • ****
  • Posts: 353
  • Karma: 14
    • View Profile
Re: Cannot route to internet after upgrade
« Reply #6 on: February 24, 2024, 01:15:09 pm »
Check "IPv4 Upstream Gateway" settings on the interface of your LAN.

On WAN this can only be set in static config.


The docs say why this is important: https://docs.opnsense.org/manual/interfaces.html

It causes all replies to traffic coming in through the interface going out to the gateway, if defined. In networks other than transfer networks this may cause a lot of pain.

In pure 1-1 transfer networks it just doesn't matter as there are no other addressable hosts.
Logged

plyn

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Cannot route to internet after upgrade
« Reply #7 on: February 24, 2024, 05:02:34 pm »
oh, my IPv4 Upstream Gateway on LAN is (and can only be) set to Auto-detect.
I guess this is what you mean by Auto-config and everything is now set correctly.
Thanks for your help!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • Cannot route to internet after upgrade
 

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