OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

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

Pages: [1] 2
1
20.7 Legacy Series / Re: make kernel error
« on: 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?
« on: 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
Development and Code Review / how many ways to pass parameter to python script
« on: October 30, 2020, 05:29:49 am »
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?
« on: 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?
« on: October 29, 2020, 08:26:22 am »
Hi, Can we install gnome3 on Opnsense for desktop user?

6
Development and Code Review / 【closed】configctl myshell test show execute error.
« on: October 29, 2020, 04:10:50 am »
/usr/local/opnsense/scripts/OPNsense/MyShell/executeshell.py:

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

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

Code: [Select]
[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
Development and Code Review / 【closed】why my cutsom name not work?
« on: October 28, 2020, 12:14:17 pm »
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
Development and Code Review / what is relation between /usr/local/opnsense and /usr/local/www.
« on: October 28, 2020, 10:49:24 am »
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
« on: 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
20.7 Legacy Series / Re: Segmentation fault (core dumped)
« on: October 27, 2020, 02:16:24 am »
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
20.7 Legacy Series / Re: Segmentation fault (core dumped)
« on: October 27, 2020, 02:11:00 am »
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
20.7 Legacy Series / Re: how to rebuild dvd image after change config file?
« on: October 26, 2020, 11:31:41 am »
Alright, its still running, should be a long time.

13
20.7 Legacy Series / Re: how to rebuild dvd image after change config file?
« on: October 26, 2020, 10:12:12 am »
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
20.7 Legacy Series / Re: Segmentation fault (core dumped)
« on: October 26, 2020, 09:58:36 am »
But, i need this HBSD feature shut off, something like this:

Code: [Select]
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
« on: 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.

Pages: [1] 2
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