Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
PPPoE and pf restart after OPNsense reboot
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: PPPoE and pf restart after OPNsense reboot (Read 12793 times)
elektroinside
Hero Member
Posts: 574
Karma: 51
PPPoE and pf restart after OPNsense reboot
«
on:
January 16, 2018, 04:32:19 pm »
Figured i should not keep this to myself and open a new topic not to flood another.
So, sometimes the PPPoE interface is not loading when it should (18.1.r1, 18.1.r2) and pf restart is required after an OPNsense reboot in order for the interface to work (otherwise, no internet connection for LAN clients, just the OPNsense box).
@Franco, i have sent you a PM with system logs, as you asked me the other day.
Thank you!
«
Last Edit: January 16, 2018, 04:44:58 pm by elektroinside
»
Logged
OPNsense v18
| HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s
Team Rebellion Member
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #1 on:
January 16, 2018, 05:01:10 pm »
Hi elektroinside,
Ok, the new debug message triggered... It's what we have guessed last time:
Ironically everything is ok, but new IP assignments are not acted upon during boot time, specifically this block:
https://github.com/opnsense/core/blob/edbcdd0ffec89c436391f477a195fa1ce48141f4/src/etc/rc.newwanip#L42-L45
I'm unsure if this was ever handled differently or your PPPoE is lightning fast... A bit of research is required. If anybody else has an idea that would be splendid as well.
Cheers,
Franco
Logged
elektroinside
Hero Member
Posts: 574
Karma: 51
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #2 on:
January 16, 2018, 05:10:55 pm »
Well, all i can say at the moment is that everything was fine with 17.7.12
I have a cron job to reboot every early morning, did not wake up before without a working internet connection.
Maybe i should create a startup script or cron job which runs a command which executes a pf restart from the console.
Didn't research yet.
I hope it's possible, at least until a fix is available.
Logged
OPNsense v18
| HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s
Team Rebellion Member
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #3 on:
January 16, 2018, 05:34:17 pm »
It is a timing issue that surfaces now. It's not great but it means we're going in the right direction.
You can set a syshook script with:
https://docs.opnsense.org/development/backend/autorun.html
The "start" hooks are executed after boot. You want to call /usr/local/etc/rc.interfaces_wan_configure and that should work around it.
Cheers,
Franco
Logged
elektroinside
Hero Member
Posts: 574
Karma: 51
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #4 on:
January 16, 2018, 05:58:46 pm »
Thanks Franco!
This is what i noticed:
-calling /usr/local/etc/rc.interfaces_wan_configure from the console breaks the connection entirely, not even pf restart (or any other service exposed in the GUI for that matter) repairs it, i need to reboot the box
-with the script, pf restart fixes it, but still needed..
Logged
OPNsense v18
| HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s
Team Rebellion Member
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #5 on:
January 16, 2018, 06:02:07 pm »
Whoops, does not sound so nice. And if you call /usr/local/etc/rc.newwanip in that script?
Possible permanent workaround in the works that would require the above info.
Cheers,
Franco
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #6 on:
January 16, 2018, 06:23:58 pm »
So this is for ordering the debug message...
https://github.com/opnsense/core/commit/cd5e23
And this on top is remembering that newwanip should be executed... at this stage experimental but not worse than before...
https://github.com/opnsense/core/commit/257a93a
# opnsense-patch cd5e23 257a93a
I'm not 100% sure if opnsense-patch does this correctly, it may needs the following, too:
# chmod 755 /usr/local/etc/rc.syshook.d/10-newwanip.start
Cheers,
Franco
Logged
elektroinside
Hero Member
Posts: 574
Karma: 51
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #7 on:
January 16, 2018, 06:46:05 pm »
So far so good, i'll reply again if i manage to reproduce.
I can also see the IP renew in the logs (same gdrive link as in the last pm).
Thank you Franco!
«
Last Edit: January 16, 2018, 06:53:38 pm by elektroinside
»
Logged
OPNsense v18
| HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s
Team Rebellion Member
odites999
Newbie
Posts: 35
Karma: 4
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #8 on:
January 17, 2018, 08:05:31 am »
I've seen something similar in my system. With 17.7 and 18.1 series. Usually, the first boot after a system upgrade but not always. If i can help, just tell me.
Cheers,
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #9 on:
January 17, 2018, 08:23:52 am »
I'll test this latest version of the patch in the office today.
https://github.com/opnsense/core/commit/386938
If all goes well, the behaviour should be fixed in the final 18.1 builds.
Cheers,
Franco
Logged
elektroinside
Hero Member
Posts: 574
Karma: 51
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #10 on:
January 17, 2018, 08:45:10 am »
Mine survived the nightly reboot only with this:
https://forum.opnsense.org/index.php?topic=6891.msg30086#msg30086
Just noticed, essentially the same thing as #386938
«
Last Edit: January 17, 2018, 08:47:45 am by elektroinside
»
Logged
OPNsense v18
| HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s
Team Rebellion Member
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #11 on:
January 17, 2018, 09:00:58 am »
Yes, the only change that was made was moving the reload to the backend daemon for serialisation. The commit is now on master, pending merge to stable/18.1.
Cheers,
Franco
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #12 on:
January 17, 2018, 11:25:24 am »
Works fine, will be in 18.1.
Cheers,
Franco
Logged
elektroinside
Hero Member
Posts: 574
Karma: 51
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #13 on:
January 17, 2018, 11:51:04 am »
Confirming, works as expected.
Thanks again Franco!
Logged
OPNsense v18
| HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s
Team Rebellion Member
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: PPPoE and pf restart after OPNsense reboot
«
Reply #14 on:
January 17, 2018, 01:13:22 pm »
Okay, thanks!
Final commit was this, it also prints what it's doing during boot now:
https://github.com/opnsense/core/commit/f2d600f5b7
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
Archive
»
18.1 Legacy Series
»
PPPoE and pf restart after OPNsense reboot