List of hooks?
-
@jazzl0ver
It's great that you discovered the script. However , could you describe according to your previous post what specific actions ( (for common use cases of multi-wan setups ) are needed after the hook, when a gateway is down and another one is selected from the group as default? Would you like to see specific dns servers declared (on general setup) to use a specific gateway change automatically to the new selected gateway? Update local dns service pointing to services to a dmz ? Also, according to your post, please state why a change is needed for dns in relation with the setup, configuration and limitations of dns service you have setup locally.Thanks.
-
@cosmor, we host public DNS zones on a separate server (bind9), so when the ISP channel gets switched to another one on pfSense, we need something to reach that server out and somehow update the zones (by nsupdate if the zones are dynamic or a custom script otherwise).
In our case we use a custom script, which is triggered by ssh login called from rc.gateway_alarm_custom. The script discovers the current channel, substitutes predefined zone template for a zone, increases the zone serial and reloads the zone.
Let me know if you need more details on that.
-
This post is deleted! -
@jazzl0ver thanks for sharing this !
We are going to use SIP to target and kill state for specific devices that don't like public IP changes (SIP Phones). -
@Moderador-PfSense what are the steps to include my package to the "Available packages" list in the GUI?
-
@jazzl0ver You mean : what to so the package that you build yourself shows up in that list ?
First step : before writing a package, you should be able to read a package => packages code written by others.
This will learn you everything.
Install 'simple' packages like "Notes", "Cron", "Patches", etc.
Now, check here /usr/local/pkg/, read ALL the files. You will get the idea.You also need to know how the FreeBSD program pkg works. Where it gets it 'packages from', how a package is assembled.
Btw : If you want to make a (your) package is part of the official pfSense package list, you should hos it on github. And wait before the Netgate pfSense team contact you when they decide to do so. This can take a very long time. Ask @BBcan177 - he knows what it takes ;)
-
@gertjan said in List of hooks?:
If you want to make a (your) package is part of the official pfSense package list,
Yeah, that's what I meant. My package is hosted on github (https://github.com/jazzl0ver/pfSense-pkg-gatewayhook).
This can take a very long time
Alright.. :( Thanks for the reply!
-
@jazzl0ver said in List of hooks?:
@Moderador-PfSense what are the steps to include my package to the "Available packages" list in the GUI?
Just to follow up (no Netgate staff myself!), this user is NO Moderator of pfSense or related to Netgate at all. You should rather include @jimp or other Netgate folks in your shoutout :)
-
@jimp could you please advise?
-
Yeah, let that be clear : I'm just a pfSense consumer.
@jazzl0ver said in List of hooks?:
@jimp could you please advise?
As @JeGr said : forum user taht work for Netgate, click on this @jimp and you'll see
so you know he's from Netgate.
He is also the author of many Netgate / pfSense videos.
https://www.youtube.com/c/NetgateOfficial/videos -
As a general rule do not tag specific people unless they asked to be notified. No matter their role.
-
@jimp said in List of hooks?:
As a general rule do not tag specific people unless they asked to be notified. No matter their role.
My bad, sorry.
-
Same here.