OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of darsen »
  • 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 - darsen

Pages: [1]
1
General Discussion / Re: LAN to LAN connection blocked - Default deny rule
« on: July 14, 2021, 09:11:11 am »
I agree that this is local traffic but then why it shows as blocked on the Live View ?

2
Development and Code Review / Re: Module does not appear in Menu
« on: July 14, 2021, 09:04:18 am »
This one: https://docs.opnsense.org/development/examples/helloworld.html

Best Regards

Aleks

3
Development and Code Review / Re: Module does not appear in Menu
« on: July 14, 2021, 08:51:26 am »
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
Development and Code Review / Re: Module does not appear in Menu
« on: July 14, 2021, 08:36:49 am »
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
General Discussion / LAN to LAN connection blocked - Default deny rule
« on: July 14, 2021, 08:30:58 am »
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
Development and Code Review / Module does not appear in Menu
« on: July 14, 2021, 08:19:34 am »
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
Development and Code Review / Data Grids in OPNSense - Where is data stored ?
« on: June 07, 2021, 08:53:03 am »
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

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