OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of senses118 »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Messages - senses118

Pages: [1]
1
24.7 Production Series / Re: DNS Call to upgrade repositories every 30 seconds
« on: November 21, 2024, 08:04:22 pm »
Another relative newb here... I'm sorry I don't have an answer for you but I saw your post while also investigating the huge number of queries in my Unbound for:

opn-repo.routerperformance.net  (32% of total queries)
pkg.opensense.org (32% of total queries)

They each have 25 or so A and AAAA cache lookups every 30 seconds. Like you I would love to understand why this is necessary?

2
General Discussion / Re: Scheduled OpenVPN client reconnect
« on: August 27, 2024, 05:57:03 pm »
Good to know it was useful!

3
General Discussion / Re: Scheduled OpenVPN client reconnect
« on: August 08, 2024, 07:28:24 pm »
Got what I needed working. Instead of leaving this as a worthless empty post for someone to trip over while searching for a solution (be handy if we could delete posts?), here's what I did in summary:

1. SSH into OPNsense as root or a user with su
2. Go to: /usr/local/opnsense/service/conf/actions.d/
3. Create a new file called something like: actions_custom.conf
4. File should contain:

Code: [Select]
[stop]
command:/usr/local/sbin/pluginctl -s openvpn stop
parameters:
type:script_output
message:stop openvpn service
description:Stop OpenVPN Service

[start]
command:/usr/local/sbin/pluginctl -s openvpn start
parameters:
type:script_output
message:start openvpn service
description:Start OpenVPN Service

[restart]
command:/usr/local/sbin/pluginctl -s openvpn restart
parameters:
type:script_output
message:restart openvpn service
description:Restart OpenVPN Service

5. Once saved, load the new template using: # service configd restart
6. In OPNsense GUI go to: System > Settings > Cron
7. Click + to add a new job and under the 'Command' lookup you should see the new Stop, Start and Restart OpenVPN options listed.


4
General Discussion / Scheduled OpenVPN client reconnect
« on: August 07, 2024, 01:57:19 pm »
I'm running an OpenVPN client on opnsense to a VPN provider for all my network devices to share. I would like to reconnect daily to refresh the IP. Looking at the standard Cron options there is 'Periodic interface reset' which doesn't seem to create a new IP when used on the VPN interface. I see there is also 'Restart Wireguard'. But nothing for OpenVPN by default.

Can anyone offer a suitable command and parameters to cron an OpenVPN disconnect / reconnect? Any help greatly appreciated.

Pages: [1]
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