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

#1
20.7 Legacy Series / Re: make kernel error
November 02, 2020, 02:15:06 AM
I removed hardendedBSD options, and compiled successfully, Opnsense can run on it normally.
#2
20.7 Legacy Series / Re: Install GUI?
November 02, 2020, 02:12:28 AM
You are funny guys,hah hah,my intention is to debug locally, not remote debug, i want to install IDE for PHP and Python like Zendstudio,Pycharm, is that possible?
i will try xorg and xfce, so keep me updated...
#3
I implemented a shell command plugin named myshell, The whole procedure of a request from a button click to the python script:

1, fill the command into textfield in the form, and click send button, 'set' api called;
2,updated and reloaded the config file with form data;
3, then called 'execute' api, which routed to Service Action, in here , Backend()->configdRun('myshell execute'), which called python script;
4,in the python script, we can retreive the form data through the config file which template and jinja2 generated, and do something and return.

What i want to ask is that except for this way of parameter delivery, can i pass it through configdRun() or api restful like?

#4
20.7 Legacy Series / Re: Install GUI?
October 29, 2020, 10:37:08 AM
yeah, sure, but for develop and debug convenience, i try to figure out is there anyway to achieve this, or any pioneer have did this before successfully. Thanks.
#5
20.7 Legacy Series / Install GUI?
October 29, 2020, 08:26:22 AM
Hi, Can we install gnome3 on Opnsense for desktop user?
#6
/usr/local/opnsense/scripts/OPNsense/MyShell/executeshell.py:

   
import json                                                                     
result = {}                                                                     
result['message'] = 'this is moonmoonbird'                                     
print(json.dumps(result))


/usr/local/opnsense/service/conf/actions.d/actions_myshell.conf:

[test]                                                                         
command:/usr/local/opnsense/scripts/OPNsense/MyShell/executeshell.py           
parameters:                                                                     
type:script_output                                                             
message:myshell  module test



and then i restart configd and then  configctl myshell test, an error showed : Execute error.  No more message, anywhere i was doing wrong,



1、add header #!/usr/local/bin/python3 in py files.
2、chmod a+x  /usr/local/opnsense/scripts/OPNsense/MyShell/executeshell.py
3、 service configd restart
4、configctl myshell test
#7
accrording to the HelloWorld example fist step, just create controller, model, views, it is worked, when i change it to my custom name,  say MyWorld, page not found.


I missed the <?php closure in IndexController. sorry : (
#8
what is the relation between these two directory? I see codes in these two directories, some follow the mvc rules, some are not, anyone can describe more specific, i am newbie in develop in opnsense. and i have followed the helloworld example, but sometime still confuse me.. Thanks
#9
20.7 Legacy Series / Re: make kernel error
October 27, 2020, 02:23:40 AM
options      PAX
options      PAX_ASLR
options      PAX_HARDENING
options      PAX_SEGVGUARD
options      PAX_INSECURE_MODE
options      PAX_CONTROL_ACL
options      PAX_CONTROL_ACL_OVERRIDE_SUPPORT
options      PAX_CONTROL_EXTATTR
options      PAX_JAIL_SUPPORT


I removed these options in tools/config/20.7/SMP file, maybe it is the reason why program stopped. so we cant build opnsense without PAX, is that right?
#10
Quote from: franco on October 26, 2020, 02:06:32 PM
HardenedBSD does not support 32 bit or Linux emulation.


Cheers,
Franco

doesnt support linux emulation, is this emphrased in the HBSD official website? why GDB is supported not linux emulation, is there any alternative to enable gdb debug rather than compile it from source?
#11
Thanks for your reply, Pfsense is closed open source,  opensense is an email signature management, have you have used other firewalls based on linux, can you recommend some top 3. Thanks.
#12
Alright, its still running, should be a long time.
#13
make clean-kernel,obj,base,packages,base && make dvd
There are two base in the command , is that a typo or that is it? thanks.
#14
But, i need this HBSD feature shut off, something like this:

Dec 30 11:08:05 kernel: pid 53076 (haproxy), uid 80: exited on signal 11
Dec 30 11:08:05 kernel: [HBSD SEGVGUARD] [haproxy (53076)] Suspension expired.
Dec 30 11:08:05 kernel: -> pid: 53076 ppid: 1 p_pax: 0x850<SEGVGUARD,ASLR,NODISALLOWMAP32BIT>


maby segvguard prevent this, i see tools/config/20.7/SMP, in the last :
# HardenedBSD goodies
options      PAX
options      PAX_ASLR
options      PAX_HARDENING
options      PAX_SEGVGUARD
options      PAX_INSECURE_MODE
options      PAX_CONTROL_ACL
options      PAX_CONTROL_ACL_OVERRIDE_SUPPORT
options      PAX_CONTROL_EXTATTR
options      PAX_JAIL_SUPPORT

if i comment out all of it ,and rebuild it ,is segvguard switch off?
#15
20.7 Legacy Series / Re: make kernel error
October 26, 2020, 09:54:30 AM
i was originally doing `make prefetch-packages,base,kernel dvd VERSION=20.7`
to make build time shorter. after it successfully generated an iso image, i changed a little bit in config file under tools directory, so i thought make each stage rebuild, so i ran `make base-again`, but it took so long, i interrupt it and ran `make kernel-again`, so error just like that.