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

#1
Quote from: franco on May 16, 2019, 06:44:57 PM
PS: für das Schreiben von Plugins braucht es keinen tools.git Workflow. Da reicht eine einfache Installation aus.

Aber dann habe ich das plugin doch nur local bei mir auf meiner Installation, wenn ich das richtig verstehe.


Quote from: franco on May 16, 2019, 06:43:26 PM
Die letzten 20-30 Zeilen des "make plugins" wären wirklich hilfreich, um zu sehen was nicht passt. :)

Na klar :)

https://www.directupload.net/file/d/5455/3ocqxnsp_jpg.htm
#2
Moin!

Ich habe ein Problem mit dem make * Befehl und ich hoffe, ihr könnt mir hier weiterhelfen.

Zum System: ich habe unter VirtualBox eine FreeBSD (64-bit) VM erstellt und darauf mit der iso OPNsense (Version 19.1.7) installiert.
Daran habe ich nicht großartig konfiguriert (nur LAN und WAN).

Mein Ziel: ich persönlich möchte OPNsense nicht direkt anwenden, sondern eine Erweiterung schreiben, so dass ich mit einer Dritt-Applikation die gateways auslesen und konfigurieren kann. Da die gateways (noch) nicht über API erreichbar sind, schreibe ich gerade an einer ganz simplen Abfrage, um diese auszulesen. Damit ich diese einspielen kann, habe ich folgendes gemacht:

- git install
- mit git in usr/ die tools geclont
- in url/tools den Befehl make update ausgeführt

Soweit, so gut. Alles läuft auch sauber durch, es werden core, plugins, src,... erstellt. Aber wenn ich jetzt make plugins ausführe, laufe ich auf einen Fehler. Wohlgemerkt: meine eigenen Anpassungen habe ich an dieser Stelle noch gar nicht eingespielt (wenn ich es mache, ändert es aber auch nichts am Fehler).
Ich erhalte Fehlercode 2 in usr/src.
Auch
make ports DEBUG=1
make plugins DEBUG=1
make core DEBUG=1 
helfen mir nicht weiter, da ich stets Fehler Code 1 oder 2 erhalte im jeweiligen Kontext (usr/ports etc).
Daher meine Frage: mache ich irgendwas falsch?

Ich habe auch im GUI ein Update gestartet, was mittlerweile seit über einer Stunde läuft.
Im Log sehe ich u.a. das hier:

!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!
! A critical upgrade is in progress. !
! Please do not turn off the system. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Installing base-19.1.7-i386.txz..../: Can't restore time
./bin/: Can't restore time
./lib/: Can't restore time
./libexec/: Can't restore time
./media/: Can't restore time
./mnt/: Can't restore time
./net/: Can't restore time
./rescue/: Can't restore time
./sbin/: Can't restore time
./sys: Could not remove symlink sys
./.profile: Can't unlink already-existing object
./.cshrc: Can't unlink already-existing object
./COPYRIGHT: Can't unlink already-existing object

Seitdem scheint das System daran zu arbeiten, dieses kritische Update zu machen...

Verzeiht diese Noob-Fragen, ich lerne gerade erst OPNsense kennen und mit Draufstarren löst sich mein Knoten im Hirn gerade nicht :)
Danke schon mal im Voraus!
#3
Ok. If I understand correctly: I start my VM and choose option "Shell" to clone the git repo of the plugin?
And then I'm able to do magical "make upgrade".
#4
So I have to rebuild my opnSense instance after making some changes?
I got a VM and installed opnSense with an iso image. When starting the VM, I directly start opnSense. That's why I'm so confused where to deploy the changes.
#5
Thank you for sharing the link to routerperformance. That's a really good source of information.
And I guess I understand how to deploy code: it's done by using
pkg install work/pkg/os-*.txz

The next step is to figure out where to install it. It's not really clear to me as I'm not able to do this in my VM (there is just the console of opnsense...).
But I think that I have to understand FreeBSD first.
#6
Hi, folks!

I'm a newbie in all related to opnSense and firewalls and I try to read up into development / consuming the api (as I like to read and provide some data so I can show or modify them in another application)
I've set up a VM (Virtualbox) with opnSense (19.1.4) and I try to dive in the development. I'm reading the documentation but I don't understand how changes I made affect my installed instance.
I cloned the git repo on my host machine (Windows) as I don't know how to clone it to the VM running my opnSense instance.
Is there any possibility for doing so?
Or how do I link my running instance to use the cloned repo?
Or do I have to make my changes, create an iso of it and use this for running the VM?

That are absolutely trivial questions for you but for me, not very experienced in firewalls, VMs, working with git, the documentation is not able to help me to figure this out.
Thank you in anticipation!