OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of sandro87 »
  • Show Posts »
  • Topics
  • 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

Topics - sandro87

Pages: [1]
1
18.1 Legacy Series / How to add custom commands at boot via rc or crontab
« on: September 11, 2018, 12:30:50 pm »
Hello,
I'm trying to add custom commands at boot (this is not a service or daemon!) to run at every boot, it just needs to cd to a directory and rename a file. nothing else.
I tried to follow the freeBSD documentation which says to put the .sh file containing the command in /usr/local/etc/rc.d/ which is completey ignored it seems, even if I enable rc_debug it logs nothing.
If I change the crontab using @reboot it's deleted by opnsense at every boot.

What should I do?

2
Development and Code Review / How to keep captive portal open on mobile devices?
« on: November 03, 2017, 06:30:31 pm »
Hello,
I'm trying to find a definite way to show a landing page for various hotels after the customer logs in. On iOS the problem is not present, once you're connected the captive portal pop up opens up and after you login if you have a redirect page it will you show up until you manually close it, inside the popup.
On Android after you login the device checks immediately for internet connection at one of their domains and if that succedes the pop up will automatically close. To complicate things more it really depends on the ROM used, some keep it open some don't. Has anyone found a OS-wide way for this? I found this workaround https://stackoverflow.com/questions/34933146/prevent-captive-portal-auto-close-after-authentication-android# but I'm sure I get it and if that proxy thing can be done on OPNsense...

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