Pfsense Ipsec not auto connecting when cron job added.
-
in my cron job

1.)Following is not working in 2.8.0, and above version is it true. can u give explanation?
2) Also, ipsec tunnel gets auto connected somehow even without cron job how that possible?Please give proper answer for this when version upgraded , how it will work and also php upgradation has impact on this?
-
what are you trying to do with those cronjobs? just trying to blindly start those 3 tunnels every 5 minutes seems silly. Combine it into 1 script and check each connection first, only try start if the tunnel is down. Also
ipsecis not the command anymore, pfSense uses strongswan, so tryswanctleg/usr/local/sbin/swanctl --initiate --timeout 5 --child con1You could check out another post I made a little while ago as a starting point…
-
IPSec has built in features to auto-connect anyway. Which both explains why you're seeing it connect and should render those cronjobs pointless.
But, yes, why are doing that?
-
@stephenw10 In my case not working 2.8 version
-
@abarna it would be more helpful if you posted some logs and described exactly what was "not working". Are these tunnels not coming up at all? or coming up and then failing at some point? Post your System log, Gateway log and IPsec logs...
-
What version was it working in?
What did it do when it was workng?
What is it doing (or not doing) in 2.8.0?
-
@stephenw10
in cron job it is added2.8.0-RELEASE (amd64) -version
Ipsec command is depreciated when
Hope php upgrade has no impact on this? -
But why have you added those?
And, like @luckman212 said above, ipsec is deprecated. Use swanctl instead if you really need to manipulate the tunnels manually.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đŸ’—
Register LoginPrivacy Policy · Cookie Policy