-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After 19.7 upgrade some IPSEC tunnel only came up after edit/apply #3582
Comments
|
This is weird, because... ... there is no functional change in IPsec code between 19.1.10 and 19.7. |
|
Can you diff the config history for clues? |
|
Hm, there's nothing. |
|
And the System: Configuration: History page? You're saying on reboot IPsec comes up but forgets to write a single configuration line and after save and apply it's back? Does this happen after every reboot or just one time on 19.7? This is weird... |
|
It happens on every reboot. The tunnels are stuck in Phase1. I change to Status Overview where I can stop and initiate the tunnel multiple times, doesn't work. Then I edit one connection, don't change anything, save, apply. Then the tunnels go up. It's reproduceable .. |
|
|
Looks ok to me, it could only be a boot artefact if anything. |
|
Hm, any idea why it always reverts on reboot? |
|
No clue so far. We will need to print-debug on this. I don't see this on my phase 2 connections. |
|
Ok, I found the issue (not the solution). When in Phase2 the encryption is set to AES(auto), the esp line in con is missing after reboot. When you hit just Save in VPN menu the value now is: If I switch from auto to e.g. 256 it's the correct value from the beginning: So, it must be something with AES(auto) ... |
|
@mimugmail can you share a config snippet (phase1 + phase2) where this happens? there are different paths leading to an esp line. at a first glance boot and apply are using the same code. |
|
@AdSchellevis this is the config.xml part: And that's what came out after reboot: When I go to VPN - IPSec - Tunnel Settings and hit Save the config is: When I set a fixed bit length of AES is phase2 it's working. Thanks for jumping in :) |
|
@mimugmail I can reproduce your issue, this is quite weird. run ipsec_configure_do() after boot and the esp section is back again. |
|
@mimugmail php is playing tricks here with a global assignment, 64858b5 rewrites the globals to function calls |
|
Works, best Ad in town, thanks! :) |
|
Nice catch this one indeed! |
|
I just connected 2 dots and ran the command: To apply the patch, without having to wait for the hotfix. @AdSchellevis please remove this comment if it's not helpful or dangerous. |
|
@hboetes what comment? |
|
@AdSchellevis the very comment the sentence comes from. |
|
@hboetes ah, I totally misunderstood, you mean your |
I also had some tunnels which dropped phase2 after some time, all had been AES(auto). Changed auto to 256 and it is working so far like the other tunnels that were configured to 256 from beginning. |
|
I have this bug. For Example: In first time log with only one phase2 of tree: Nov 17 10:24:41 sense-secure charon: 10[CFG] rereading secrets After edit log with all tree phase2: Nov 17 10:24:45 sense-secure charon: 10[CFG] rereading secrets Can you tell me: P.S: It seems as if there are not even attempts to initiate the second phases. |
Firewall with 3 VPNs updated to 19.7 and rebooted. 2 tunnels were stuck in Phase2 (other side OPNsense) and one tunnel up (Sophos). When I edit one of the two connection and hit apply, both of the others are up again.
I did a diff after reboot and compared with after hitting apply (error is reproduceable with every reboot):
This is the log from the upgraded firewall:
And this from the remote site:
And there is also one other guy in the forums complaining ...
https://forum.opnsense.org/index.php?topic=13516.msg62233;boardseen#new
The text was updated successfully, but these errors were encountered: