Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
Adding custom script to OPNsense
« previous
next »
Print
Pages: [
1
]
Author
Topic: Adding custom script to OPNsense (Read 4622 times)
FingerlessGloves
Full Member
Posts: 114
Karma: 11
Adding custom script to OPNsense
«
on:
March 23, 2019, 12:39:24 am »
Hi Guys,
What's the best place to place a custom shell script in the OS?
I've create a script which gets me a port forwarded from PIA, but it has to run on OPNSense to do that.
I've currently got it placed in /conf/, but if there's a prefered location that would be great.
Also I've added a crontab record to /etc/crontab. Does that get reset by updates too?
Logged
Adventuring through internet pipes
My Blog
Northguy
Full Member
Posts: 118
Karma: 11
Re: Adding custom script to OPNsense
«
Reply #1 on:
March 23, 2019, 10:01:39 am »
Custom start-up script:
https://docs.opnsense.org/development/backend/autorun.html
CRON job to be scheduled from front-end:
https://docs.opnsense.org/development/backend/configd.html?highlight=scripts
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
Adding custom script to OPNsense