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 - reply2MK

#1
Hi,

I found COM app remserial which can be used to send serial data over TCP/IP. I found it in the /ports/comms/remserial and installed it. It works flawlessly  (https://github.com/hunterli/remserial). Now I want to make a plugin to configure it using the opnsense GUI.

I tried to work around https://docs.opnsense.org/development/examples/helloworld.html but was not able to.

Please advise how can I go about it. Or if someone had already worked on it.

Thanks
#2
Hi,

In that case, can you please advise how can I do so.

Thanks
MK
#3
Hi,

This is what I did

1. New install of Freebsd 13.1
2. Used git clone tools and make update to get the OPNsense sources
3. cd /usr/core
4. vi Makefile
5. change core name CORE_NAME?=mk save and close
6. make package CORE_NAME=mk

Please tell me if you need any more information.

Thanks
MK
#4
Hi,

When I installed FREEBSD 13.1 the default pkg was 1.18.3, I was getting the same error so I downgraded it to pkg-1.17.5 as I read in one of the post. Yet this still didnt resolve the issue.

Thanks
MK
#5
Dear All,

I am struggling to build the custom core package on 22.7, I tried using "make package CORE_NAME-mk" but it gave me an error. I tried to build as below but the same result.

root@:/usr/core # make package
make: "/usr/core/Mk/defaults.mk" line 49: warning: "Detected 'Base' flavour is not currently supported"
pkg: No packages installed
make: "/usr/core/Makefile" line 39: warning: Cannot build without CORE_PHP set
make: "/usr/core/Makefile" line 39: warning: Cannot build without CORE_PYTHON set
make[1]: "/usr/core/Mk/defaults.mk" line 49: warning: "Detected 'Base' flavour is not currently supported"
pkg: No packages installed
make[1]: "/usr/core/Makefile" line 39: warning: Cannot build without CORE_PHP set
make[1]: "/usr/core/Makefile" line 39: warning: Cannot build without CORE_PYTHON set
make[2]: "/usr/core/Mk/defaults.mk" line 49: warning: "Detected 'Base' flavour is not currently supported"
pkg: No packages installed
make[2]: "/usr/core/Mk/defaults.mk" line 49: warning: "Detected 'Base' flavour is not currently supported"
pkg: No packages installed
pkg: No packages installed
Updating FreeBSD repository catalogue...
Fetching meta.conf: 100%    163 B   0.2kB/s    00:01
Fetching packagesite.pkg: 100%    6 MiB  73.3kB/s    01:30
Processing entries: 100%
FreeBSD repository update completed. 31623 packages processed.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        ca_root_nss: 3.78

Number of packages to be installed: 1
[1/1] Installing ca_root_nss-3.78...
[1/1] Extracting ca_root_nss-3.78: 100%
=====
Message from ca_root_nss-3.78:

--
FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.


This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem
pkg: No package(s) matching choparp
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        choparp: 20150613

Number of packages to be installed: 1

7 KiB to be downloaded.
[1/1] Fetching choparp-20150613.pkg: 100%    7 KiB   7.6kB/s    00:01
Checking integrity... done (0 conflicting)
[1/1] Installing choparp-20150613...
[1/1] Extracting choparp-20150613: 100%
pkg: No package(s) matching cpustats
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'cpustats' have been found in the repositories
*** Error code 1

Stop.
make: stopped in /usr/core

Is there something I am doing wrong? Please advise..

Thanks a lot
MK
#6
Hardware and Performance / LAN7430 drivers
June 06, 2022, 06:55:05 AM
Hi,

I have recently installed a microchip lan7430 PCIe card on one of my machines. The card is not detected by opnsense. I realized that the drivers are missing. Can anyone please help me with the drivers?

I tried to compile them using the following link but was unable to do use "make"

https://reviews.freebsd.org/rS354410

Thanks
MK



#7
22.1 Legacy Series / Re: 22.1 Compiling Error
March 15, 2022, 05:56:03 AM
Hi,

Thank you for your reply.

The current package is pkg-1.16.3_1.txz.

I tried to build in several other VMs but I am getting the same error every time.

Thanks
MK
#8
22.1 Legacy Series / 22.1 Compiling Error
March 09, 2022, 06:32:06 AM
Dear All,

I am struggling to compile the latest 22.1 opnsense on FREEBSD 13

I am able to create base and kernel but once I try to build the packages I get the following error.

[20220308140224] => port manually into /usr/ports/distfiles/ and try again.
*** Error code 1
Stop.
make: stopped in /usr/ports/x11-fonts/urufonts
[20220308140224] ===> Cleaning for urufonts-1.0_8
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages:
Installed packages to be REMOVED :
pkg: 1.16.3_1
Number of packages to be removed: 1
The operation will free 15 MiB.
[1/1] Deinstalling pkg-1.16.3_1...
[1/1] Deleting files for pkg-1.16.3_1: 100%
pkg: No package files have been found
Cannot create repository catalogue
*** Error code 1
Stop.
make: stopped in /usr/tools
root@FREEBSD:/usr/tools #


Please advise how can I fix this problem.

Thanks in advance.
MK
#9
Development and Code Review / Re: Creating New plugin
January 19, 2022, 08:21:18 AM
Hi,

Thanks for your reply.

I have created a new page (plugin) in the Menu on which I would like the status to be shown. The point is to show all relevant information on one page only.

Thanks
MK
#10
Development and Code Review / Creating New plugin
January 19, 2022, 06:27:08 AM
Hi,

I am trying to make a new plugin for opnsense where I want to check the status of files in a specific folder. If the files exist in the folder the status should show green if the files do not exist the status should be red. It should also keep on checking the status every 5 seconds.

Please advise how can I do so, or if there is any plugin that does the same.

Thanks in advance
MK
#11
Hi,

Thanks for the update, will test and revert.

Thanks
MK
#12
Hi,

I am new to the OPNsense form. I want to configure my firewall and completely close / disable the web access through LAN and WAN both using the console. If I want to make changes I should be able to enable this through the console.

Please advise how can I do this.

Thanks in advance.
MK