OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • Upgrade deleted Manualy added WAN gateway
« previous next »
  • Print
Pages: [1]

Author Topic: Upgrade deleted Manualy added WAN gateway  (Read 2693 times)

rudiservo

  • Newbie
  • *
  • Posts: 27
  • Karma: 2
    • View Profile
Upgrade deleted Manualy added WAN gateway
« on: January 31, 2024, 12:58:18 am »
Somehow the upgrade deleted the upstream Gateway.

The system has a fixed IP address on a WAN with vlan.
Logged

KC515

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #1 on: January 31, 2024, 02:40:38 am »
Same thing happened to me as well.

WAN:
Static IP (no vlan)

But it also deleted manually defined gateways for my L3 routed networks.
Oddly enough, restoring from a config/settings backup taken just prior didn't restore them either.

I had to manually re-add all GWs that were not default.  Only 6, so not a huge deal but I could see it being an issue for larger networks.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17746
  • Karma: 1620
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #2 on: January 31, 2024, 07:54:30 am »
Can you provide a config.xml partial dump of the removed gateway_item sections only? The migration is discarding them for a specific reason.


Thanks,
Franco
Logged

Moonshine

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #3 on: February 01, 2024, 03:11:35 pm »
Lost mine also..

Code: [Select]
    <gateway_item>
      <interface>wan</interface>
      <gateway>x.x.x.x</gateway>
      <name>WAN_GW</name>
      <priority/>
      <weight/>
      <ipprotocol>inet</ipprotocol>
      <interval/>
      <descr>Spectrum Cable Gateway</descr>
      <defaultgw>1</defaultgw>
    </gateway_item>
Logged

muchacha_grande

  • Full Member
  • ***
  • Posts: 219
  • Karma: 19
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #4 on: February 01, 2024, 04:08:30 pm »
Same thing happened to me. I had to add the gateway by hand again.
Only the IPv4 gateway disappeared, the v6 one was still there.
Logged

Andreas_

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 1
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #5 on: February 01, 2024, 04:31:11 pm »
Same thing with me. Not only the gateway assignment in the WAN interface was removed, the gateway definition itself was gone.
All other gateways were still present.
Logged

clst

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #6 on: February 02, 2024, 05:32:22 pm »
Same here. in log/system/latest I get this line: 
Code: [Select]
config 76918 - [meta sequenceId="1"] Migration skipped gateway GWName (GW-IP)

EDIT: this line might be caused by restoring the config when troubleshooting, not the upgrade itself.
« Last Edit: February 02, 2024, 05:34:57 pm by clst »
Logged

marcquark

  • Full Member
  • ***
  • Posts: 103
  • Karma: 5
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #7 on: February 03, 2024, 09:19:50 am »
Encountered the same issue today. GW config XML looks exactly like Moonshine's. Both IPv4 and IPv6 gateways on WAN were affected. In my case however, there's no LAN interface, i'm running this instance as a VPN hub. Other than that there's nothing special going on
Logged

Jckf

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #8 on: February 08, 2024, 04:03:05 pm »
Same here. Gateway for v4 disappeared after upgrade, but v6 did not. Looks like a failed migration of the config.

The removed item looked like this:
Code: [Select]
<gateway_item>
<interface>wan</interface>
<gateway>x.y.z.209</gateway>
<name>E1_WAN_GWv4</name>
<priority/>
<weight/>
<ipprotocol>inet</ipprotocol>
<interval/>
<descr/>
<defaultgw>1</defaultgw>
</gateway_item>
« Last Edit: February 08, 2024, 04:09:18 pm by Jckf »
Logged

emaba

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #9 on: February 12, 2024, 09:50:08 pm »
<gateways>
    <gateway_item>
      <interface>wan</interface>
      <gateway>xx.xx.xx.xx</gateway>
      <name>WAN_GWv4</name>
      <priority/>
      <weight/>
      <ipprotocol>inet</ipprotocol>
      <interval/>
      <descr/>
      <defaultgw>1</defaultgw>
    </gateway_item>
    <gateway_item>
      <interface>opt2</interface>
      <gateway>xx.xx.xx.5xxgateway>
      <name>xxxxxx_GWv4</name>
      <priority>255</priority>
      <weight>1</weight>
      <ipprotocol>inet</ipprotocol>
      <interval/>
      <descr>GW Wireiguard</descr>
    </gateway_item>
    <gateway_item>
      <interface>opt5</interface>
      <gateway>xx.xx.xx.xx</gateway>
      <name>xxxxx_GWv4</name>
      <priority>255</priority>
      <weight>1</weight>
      <ipprotocol>inet</ipprotocol>
      <interval/>
      <descr/>
      <monitor>xx.xx.xx.xx</monitor>
      <fargw>1</fargw>
    </gateway_item>
    <gateway_item>
      <interface>opt6</interface>
      <gateway>xx.xx.xx.xx</gateway>
      <name>xxxxx_GWv4</name>
      <priority>255</priority>
      <weight>1</weight>
      <ipprotocol>inet</ipprotocol>
      <interval/>
      <descr>GW Wireiguard 2 </descr>
    </gateway_item>
  </gateways>

WAN_GWv4 was the one deleted during update.

Quote from: franco on January 31, 2024, 07:54:30 am
Can you provide a config.xml partial dump of the removed gateway_item sections only? The migration is discarding them for a specific reason.


Thanks,
Franco
Logged

lshantz

  • Full Member
  • ***
  • Posts: 109
  • Karma: 3
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #10 on: February 13, 2024, 04:54:49 pm »
Quote from: marcquark on February 03, 2024, 09:19:50 am
Encountered the same issue today. GW config XML looks exactly like Moonshine's. Both IPv4 and IPv6 gateways on WAN were affected. In my case however, there's no LAN interface, i'm running this instance as a VPN hub. Other than that there's nothing special going on

I tried that on my system and that did not work. Something changed enough that it doesn't help. My REDIS database will not come up either. So I'm guessing legacy stuff is getting updates and borking some things. 
Logged

grufo

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #11 on: February 27, 2024, 06:25:53 pm »
Same here - I had to remove the gateways in old style format from the config.xml file.

Changed
Quote
<Gateways version="1.0.0">
....
</Gateways>
To:
Quote
<Gateways version="1.0.0"/>

After a reboot the gateways from
Quote
<gateways>
    <gateway_item>
     ...

were active again and everything online as expected!
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17746
  • Karma: 1620
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #12 on: February 28, 2024, 08:04:17 am »
A fix was in 24.1.2 but the upgrade path from 23.7 hasn't been updated so far.


Cheers,
Franco
Logged

lshantz

  • Full Member
  • ***
  • Posts: 109
  • Karma: 3
    • View Profile
Re: Upgrade deleted Manualy added WAN gateway
« Reply #13 on: March 01, 2024, 10:44:04 pm »
YAY! Thanks for the update.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 24.1 Legacy Series »
  • Upgrade deleted Manualy added WAN gateway
 

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