OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

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

Pages: [1] 2 3 ... 7
1
20.7 Legacy Series / Re: WLAN Card replacement for Compex WLE200NX miniPCI (guess Atheros AR9280)
« on: October 07, 2020, 08:57:15 am »
Understand, but this way I would use 2 devices instead of one... seems not the best ecologic trick. Got a feedback from the manufacturer meanwhile, and MIKROTIK cards semm to be a possible way, too. They deal with Atheros chip sets, too, but with a different series...

2
20.7 Legacy Series / WLAN Card replacement for Compex WLE200NX miniPCI (guess Atheros AR9280)
« on: October 06, 2020, 11:24:14 am »
Hi there,

I use a Varia Store APU2C4 Router with a Compex WLE200NX a/b/g/n miniPCI Wifi card (guess Atheros AR9280 Chipset). Since first installation the card produced so many problems, either because of slowness or crashes like

Code: [Select]
ath0: stuck beacon; resetting (bmiss count 8)or
Code: [Select]
ath0: device timeout
There was no way to set it up properly. So I'm considering to replace the card. Are there any recommendations, which alternativ Wifi Card would be easy to install without having to change anything regarding the OPNsense setup?

Best, hirschferkel

3
20.7 Legacy Series / Re: [Solved]Activate / deactivate WAN with timetable / Schedule
« on: September 19, 2020, 11:01:24 pm »
I think you got me wrong. The Wifi is down, everything o.k it is not visible for devices anymore.
But in the Web GUI of OPNsense under Interfaces, the SSID is still marked as being active (See the screenshot)
I would have expected that it should be marked inactive, as it was switched of by the cron-job, wasn't it?

Best

Quote from: marjohn56 on September 19, 2020, 02:06:13 pm
Hence I asked in an earlier message if it was an external IF. Not sure either, but if it's built in to the gateway maybe not, as the Kernel will enable it. So test it, take the interface down and see if the SSID is still visible.

4
20.7 Legacy Series / Re: [Solved]Activate / deactivate WAN with timetable / Schedule
« on: September 19, 2020, 01:35:59 pm »
:D
Quote from: marjohn56 on September 18, 2020, 11:17:17 pm
Just seeing if you were awake. :)

One more question: The whole procedure was to save energy by stopping the Wifi activity while it is not being used. So I'm little bit unsure if this works this way, as the interface is down, now, but the interface still shows as being "active" in the GUI?
Any idea why it is still marked active although it was shut down by the cron job?


5
20.7 Legacy Series / Re: Activate / deactivate WAN with timetable / Schedule
« on: September 18, 2020, 07:54:18 pm »
There was a wrong set up in the files...
You named it Interface_up_down.sh


An wrote
Code: [Select]
/usr/local/etc/rc.d/interface_up_down.sh up
Now it works! Thanks for your help.

6
20.7 Legacy Series / Re: Activate / deactivate WAN with timetable / Schedule
« on: September 18, 2020, 07:45:36 pm »
Quote from: marjohn56 on September 18, 2020, 05:09:22 pm
the error you are seeing would suggest you haven't set the executable flags on the sh file, so check that.

Do you mean the 755 rights? I've set the rc.d like
Code: [Select]
drwxr-xr-x   2 root     wheel   1024 Sep 18 10:42 rc.dand
Code: [Select]
-rwxr-xr-x  1 root  wheel    220 Sep 18 10:17 Interface_up_down.sh

Code: [Select]
# /usr/local/etc/rc.d/interface_up_down.sh down
-sh: /usr/local/etc/rc.d/interface_up_down.sh: not found
Even with the new file it does not work. I still get the 127 error?
Made a restart and
Code: [Select]
2020-09-18T19:45:00 configd.py[35743] [c0de5caa-ec09-4a6a-bc82-d7d9933daf0c] returned exit status 127
Code: [Select]
# configctl interface_up_down down
Error (127)

Code: [Select]
# /usr/local/etc/rc.d/interface_up_down.sh down
-sh: /usr/local/etc/rc.d/interface_up_down.sh: not found

7
20.7 Legacy Series / Re: Activate / deactivate WAN with timetable / Schedule
« on: September 18, 2020, 02:18:07 pm »
So the cron job is being executed, but aborted with returned exit status 127?

Quote from: marjohn56 on September 17, 2020, 10:06:59 am
That's it, it should all work. Try and understand what's happening rather than just copy and paste, it will prove beneficial down the line if  you understand what's going on.

So i found these log entries:
Code: [Select]
2020-09-18T11:50:00 configd.py[32149] [83286599-3f93-4a5c-895d-149fcb25ad83] returned exit status 127
2020-09-18T11:50:00 configd.py[32149] [83286599-3f93-4a5c-895d-149fcb25ad83] Disabling Interface

tried to execute another test:
Code: [Select]
2020-09-18T14:14:32 configd.py[32149] [37f6a30b-8b51-41f0-8de3-fd7f528db74f] restarting cron
2020-09-18T14:14:32 configd.py[32149] OPNsense/Cron generated //var/cron/tabs/nobody
2020-09-18T14:14:32 configd.py[32149] generate template container OPNsense/Cron

same again:
Code: [Select]
2020-09-18T14:16:00 configd.py[32149] [9945d40d-1b08-47c1-b793-200f0cac8655] returned exit status 127
2020-09-18T14:16:00 configd.py[32149] [9945d40d-1b08-47c1-b793-200f0cac8655] Disabling Interface

8
20.7 Legacy Series / Re: Activate / deactivate WAN with timetable / Schedule
« on: September 18, 2020, 11:04:47 am »
@marjohn56
I replaced the interface
Code: [Select]
igb0 in the script with
Code: [Select]
ath0_wlan2e.g.
Code: [Select]
ifconfig ath0_wlan2 down
Than I tried to set it up and it took me a while, as I had to enable ssh. (Did not recognize that it was not activated a while, as I was able to login ...but as I saw later connection was closed immediately afterwards)
I had to enable root, too, with ssh (Copying files did not work with admin users, which I would not have expected to fail)
I had to move the files from my home to the ssh server... was tricky to find the right way to copy from home to ssh server.
Finally I finalized all steps and created a test cron job to see if it works

   0   11   18   09   5   Test Disable   Disable Interface   
   5   11   18   09   5   Test Enable   Enable Interface

and --- it did not...
So time is 11.03 Friday 18th of September and Interface is up...

I tried a different setting:

   14   11   *   *   *   Test Disable   Disable Interface   
   15   11   *   *   *   Test Enable   Enable Interface

...11:14:30... ath0_wlan2 Interface is still up.
Doesn't work so far, too.

Rebootet.
Applied the "button"... no result. Any idea?

9
20.7 Legacy Series / Re: Activate / deactivate WAN with timetable / Schedule
« on: September 17, 2020, 07:14:00 pm »
Oh great, I'll try to set it up next days and give a feedback on it!
Thanks a lot in advance.

Best, hirschferkel

10
20.7 Legacy Series / Re: Activate / deactivate WAN with timetable / Schedule
« on: September 17, 2020, 08:53:42 am »
No it's an OPNsense Access Point so basically the idea is right, to switch on/off a ath0 interface temporarily.

11
20.7 Legacy Series / Re: Activate / deactivate WAN with timetable / Schedule
« on: September 16, 2020, 11:08:42 pm »
Seems practicable, but where do I need to arrange the "when". Within the scripts or do I have to schedule the cron-jobs? Actually I found the reference, but it's one of those no one will ever understand. It's written for those who know how it works and don't need a description... those who need one, won't understand it.

12
20.7 Legacy Series / Re: Activate / deactivate WAN with timetable / Schedule
« on: September 16, 2020, 08:46:19 am »
Hmm I would... if I could...
Absolutely no idea how to write such a script and how to apply it. Anny help would be really appreciated. Sounds like it would work, but as I mentioned, I have no idea how to create it...

Quote from: littlepepper on September 15, 2020, 01:41:52 pm
have you thought about writing a simple script with ifconfig <WAN interface name> down and another one for up and add it to your CRON jobs?

13
20.7 Legacy Series / [Solved]Activate / deactivate WAN with timetable / Schedule
« on: September 14, 2020, 05:06:51 pm »
Is there any way to activate a WAN (Wifi) and to switch it of e.g. during weekends to save energie? I was able to create a schedule, but I can only find ways to administrate services with the firewall but no way to ton on / turn of a Wifi?

Best, hirschferkel

14
20.7 Legacy Series / Re: PCEngines APU2/APU3/APU4 running on 20.7
« on: September 04, 2020, 12:11:40 pm »
Actually all problems with

https://forum.opnsense.org/index.php?topic=7645.msg34941#msg34941
Code: [Select]
kernel       ath0: stuck beacon; resetting (bmiss count 4)
Are gone, now. So it was actually a software problem of OPNsense.

https://forum.opnsense.org/index.php?topic=13792.msg64395#msg64395
Code: [Select]
Aug 26 00:33:29 kernel: pflog0: promiscuous mode enabled
Aug 26 00:33:29 kernel: pflog0: promiscuous mode disabled
Aug 26 00:32:32 kernel: pflog0: promiscuous mode enabled

These problems are history, too... without changing anything in settings.

15
20.7 Legacy Series / Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
« on: September 01, 2020, 03:02:34 pm »
It was a little bit laborious and time consuming, but after some failures, the bios of the APU2 was updated and OPNsense is running smooth again.

First of all you can't use the windows installer of PC Engines for APU2 which does not run TinyCore 6.4. So after running the installer you have to replace several files on the USB-stick and finally add a different bios version. If you do these steps, it should work.

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