Menu

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.

Show posts Menu

Messages - darsen

#1
I agree that this is local traffic but then why it shows as blocked on the Live View ?
#3
Quote from: franco on July 14, 2021, 08:43:08 AM
As I said the appropriate hook is provided by https://github.com/opnsense/plugins/blob/master/Templates/configure unless you clobber +POST_INSTALL yourself. If that is the case you can always alter your approach and use +POST_INSTALL.pre or +POST_INSTALL.post file overrides.


Cheers,
Franco

Aha now I get it, so if I remove the +POST_INSTALL everything should work.
I created the +POST_INSTALL because the documentation said that it needs to be created:

Quote
Next add a +POST_INSTALL file in the plugin directory, to reload the configd process after installation. This is needed for the new "test" command to register.

Maybe we can update the documentation to make it more clear.

Thanks a lot Franco!
#4
Quote from: franco on July 14, 2021, 08:30:15 AM
If you have the latest plugin code it should work out of the box after install (and has been for a long time).

You can always run "opnsense-patch" to clear the menu cache. It's just a file on the disk:

https://github.com/opnsense/update/commit/ed95d5e3bb5


Cheers,
Franco

It works with opnsense-patch ! Thanks a lot!

Can I include opnsense-patch inside "+POST_INSTALL" ?

Thanks a lot

darsen
#5
Hi all,

I am struggling with a firewall problem. I am trying to make a connection from a client on the LAN to another client on the LAN on port 22 (SSH)

192.168.1.102 wants to connect to 192.168.1.97 port 22

For test purposes I crated an ANY to ANY rule on the firewall (see first image any_to_any.png)

But for some reasons the connection gets dropped. The live view shows "Default deny rule" (see second image live_view.png).

How is that possible ? It drives me crazy.

Thanks in advance!!!

darsen
#6
Hi everyone,

I developed a OPNSense module following this guide: https://docs.opnsense.org/development/examples/helloworld.html

I have also created Menu.xml to specify where exactly I want my module to appear in OPNSense Menu. After that, I packaged the module into a "txz".

After installing the module on a new OPNSense, by running "pkg install my-module.txz", I don't see it appearing in the Menu.

If I restart OPNSense, then I see it.

Do I need to restart something as part of POST_INSTALL ?

Thanks a lot,

darsen
#7
Hi Everyone,

I am developing a service plugin and I would like to integrate a Grid form in it.  :D

I am using the following documentation page as a reference (Using grids module & plugin): https://docs.opnsense.org/development/examples/using_grids.html

Everything is clear, but I don't understand two things.

# First Question
Where are the settings saved ? - When calling the API /api/gridexample/settings/searchItem from where are the items fetched ?
I was expecting a ".conf" ini file somewhere in the filesystem containing all the data but I cannot see it anywhere.

# Second Question
How do I retrieve the settings data from my backend application (eg python script) ?

Thanks a lot for clarification!

Aleksandar