Internet lost in PfSense but VPN or everythingelse work well?
-
Aha !!
You saw that ?
Fiirst :then, after the 'patch' (I sometimes have this strange feeling that @stephenw10 is an AI Netgate bot that is here to drop this "run: certctl rehash" command (sorry, stephenw10, I couldn't resist))
and then
which opens the path to 2.7.2.
Be ware that 2.7.2 won't free you from all misery, as you're like us : upgrading is great, but more then often, don't forget to upgrade the admin also (that's where most of the issues resides).
It will include a new OpenSSL and a way more recent OpenVPN.
If you are using the OpenVPN server you have to upgrade your clients also.
Easy enough : https://openvpn.net/client/client-connect-vpn-for-windows/ or : your phone app store etc.
Export a new OpenVPN client profile.
Import it into your OpenVPN client, and you're good. -
Yup. You should upgrade though!
-
Hi @Gertjan,
Finally. Yes. Thanks.
I will try to update today.Regards,
Mucip:) -
Dear @stephenw10 ,
Finally...Regards,
Mucip:) -
Dear @Gertjan ,
I updated to 2.7.2 finally. I have one pfsense box in outer office.
As you advice I will update it to 2.7.2 too.
But first of all I apply "certctl rehash" command in other pfsense. :)Thanks to all guys...
Regards,
Mucip:) -
Dear @stephenw10 ,
It happend again. It's like dejavu? :)
I used "run: certctl rehash" and now everything turned to normal. But why? What is the reason?
Should I add this command in the cron or what?Regards,
Mucip:) -
@mucip said in Internet lost in PfSense but VPN or everythingelse work well?:
But why? What is the reason?
Afaik : when upgrading from pfSense <2.7.0 to 2.7.0, this command should have been part of the steps to do after the upgrade finishes.
The thing is : it was forgotten.Don't worry, this situation only happened ones ^^ No need to thing about it anymore.
-
Dear @Gertjan,
I hope so. I already added this command to cron.
Well I will remove command from cron and check in the near future.Regards,
Mucip:) -
There should be no need to run that command manually in 2.7.2. The pkg scripts run it anyway when it's required.
How were you testing? If you simply ran
pkg update
from the CLI the client cert may have expired. Checking from the webgui should never hit that though. -
Dear @stephenw10,
I updated from WEB GUI not CLI.
In any case this morning the people said me that there is no internet out from Linux server.
I applied our famous command "certctl rehash" from webgui command execute menu and everything turn to normal again.
I will check. If I need to apply same command again than I add this command in the cron and run every midnight.Regards,
Mucip:) -
Hmm, that is odd. The only thing that should help with is local certs on pfSense itself. So access to the pkg repos which requires a client side cert.
It shouldn't make any difference to routing traffic. Unless maybe that is going via VPN that requires a cert.
-
Hi @stephenw10,
Well what should I do now?
And advice?
Adding in to cron?Regards,
Mucip:) -
It seems unlikely the issue is actually cert related. Somehow running that is re-loading something that allows traffic to restart. So I would be trying to determine exactly what fails when traffic stops.
-
Dear @stephenw10,
But how? What shoul I check if the internet stops again?Or I need to write script to check internet connetion in pfsense. When the internet lost than I need to run "certctl rehash" command again? I don't know?
Regards,
Mucip:) -
You are able to reach the pfSense gui from LAN when it fails yes?
So I would first test what pfSense itself can do in that situation. Can it ping 8.8.8.8? Can it ping google.com?
If it can then can LAN side clients do either of those?
-
Hi @stephenw10,
I made php scipt to check internet connection in LAN Debian server.
If not than it will send me an email. Than I will check what's going on in the PfSense.
I put this php code in the cron now.Let's see...
P.S: But I am wrong! If internet lost how can Debian send me an email?!
I need to create script in pfsense and check internet from LAN because I checked before
How can check internet connectivity in LAN with bash or php command in Pfsense?Regards,
Mucip:) -
Dear @stephenw10,
I may add this php file to cron but it must check internet connectivity from LAN not WAN.
Because normally there is internet on WAN but there isn't on LAN unfortunatelly.
Regards,
Mucip:)<?php $internetVar=false; switch (connection_status()){ case CONNECTION_NORMAL: $txt = 'Connection is in a normal state'; $internetVar=true; break; case CONNECTION_ABORTED: $txt = 'Connection aborted'; break; case CONNECTION_TIMEOUT: $txt = 'Connection timed out'; break; case (CONNECTION_ABORTED & CONNECTION_TIMEOUT): $txt = 'Connection aborted and timed out'; break; default: $txt = 'Unknown'; break; } echo "$txt\n"; ?>
-
You can source your test from the LAN IP and that will confirm NAT is working.
However reviewing the symptoms you have here I'd be willing to bet it's a gateway/routing issue.
What gateways do you have defined in System > Routing?
If you have more than one and the default gateway is still set to automatic try setting it to the WAN gateway specifically. It may be switching to one of the others if the WAN ever has an issue.
-
Dear @stephenw10,
Well, What is the CLI command equavelent of below screen?Our Geteway config is:
Regards,
Mucip:) -
The command would be:
[2.7.2-RELEASE][admin@t70.stevew.lan]/root: ping -c 3 -S 192.168.226.1 8.8.8.8 PING 8.8.8.8 (8.8.8.8) from 192.168.226.1: 56 data bytes 64 bytes from 8.8.8.8: icmp_seq=0 ttl=116 time=6.036 ms 64 bytes from 8.8.8.8: icmp_seq=1 ttl=116 time=12.178 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=116 time=6.225 ms --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 6.036/8.146/12.178/2.852 ms
Where 192.168.226.1 is the LAN IP address.
However what are you using that gateway on LAN for? You have other subnets behind a router at 192.168.0.1?
If that's the LAN IP address it should not be there.