OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

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

Pages: [1] 2 3 4
1
23.7 Production Series / Re: DNS doesn't work
« on: September 22, 2023, 04:01:51 pm »
Then it would be a good idea to first check that Unbound is the only DNS server running on OPNsense.
If more than one DNS server is running, they all fight for port 53 and this usually does not end very well.

2
23.7 Production Series / Re: DNS doesn't work
« on: September 22, 2023, 02:38:58 pm »
Have you edited any configurations under "Services > Unbound DNS" or do you run another DNS service like "Dnsmasq DNS" by any chance?

3
23.7 Production Series / Re: Very high memory usage
« on: September 22, 2023, 02:32:10 pm »
If you have OPNsense installed on ZFS, this is probably the ARC cache, which uses all free/unused RAM for caching.

In your case, however, it seems that there are a lot of Python processes eating up your available RAM.
Have you tried rebooting your OPNsense firewall?

4
23.7 Production Series / Re: How to ignore or deny a client in dhcpv4/dhcpv6?
« on: September 22, 2023, 02:28:39 pm »
With DHCPv4, you can go to "Services > DHCP > LAN", create "DHCP Static Mappings" for all clients you want to get an IPv4 address from your DHCP server and then enable "Deny unknown clients".

There does not appear to be an equivalent option for DHCPv6.

5
23.1 Legacy Series / OPNsense matches wrong Firewall rule to State information
« on: August 02, 2023, 07:54:56 pm »
Hello everyone,

I was just looking through my OPNsense firewall rules and OpenVPN settings and noticed, that even though all my OpenVPN users connect to WAN2 and use WAN1 as a fallback, in "Firewall: Diagnostics: States", OPNsense shows that the states are being matched to the WAN1 rule:

https://imgur.com/a/CS07KQK

But that isn't true, as the addresses on the WAN interfaces show:

https://imgur.com/a/ZsbAIQZ

The firewall rules are named according to which interface they are on:

https://imgur.com/a/QpJuWfp
https://imgur.com/a/PSJGW0t

I even ran tcpdump and got this as a result:

WAN1

Code: [Select]
root@opnsense:~ % tcpdump -i pppoe0 port 1194 -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on pppoe0, link-type NULL (BSD loopback), capture size 262144 bytes
^C
0 packets captured
378145 packets received by filter
0 packets dropped by kernel

WAN2

Code: [Select]
root@opnsense:~ % tcpdump -i igb1 port 1194 -n
 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
 listening on igb1, link-type EN10MB (Ethernet), capture size 262144 bytes
 --- snip ---
 sudo tcpdump -i igb1 port 1194 -n
 19:10:03.658113 IP 217.225.###.###.63282 > 95.208.###.##.1194: UDP, length 64
 19:10:03.658116 IP 217.225.###.###.63282 > 95.208.###.##.1194: UDP, length 156
 19:10:03.658564 IP 95.208.###.##.1194 > 217.225.###.###.63282: UDP, length 192
 19:10:03.731677 IP 217.225.###.###.63282 > 95.208.###.##.1194: UDP, length 64
 19:10:05.631989 IP 217.225.###.###.51180 > 95.208.###.##.1194: UDP, length 117
 19:10:05.632005 IP 217.225.###.###.51180 > 95.208.###.##.1194: UDP, length 117
 19:10:05.632008 IP 217.225.###.###.51180 > 95.208.###.##.1194: UDP, length 117
 19:10:11.542748 IP 217.225.###.###.59780 > 95.208.###.##.1194: UDP, length 40
 19:10:11.542840 IP 95.208.###.##.1194 > 217.225.###.###.59780: UDP, length 40
 19:10:11.798099 IP 95.208.###.##.1194 > 217.225.###.###.51180: UDP, length 40
 19:10:11.803840 IP 217.225.###.###.63282 > 95.208.###.##.1194: UDP, length 156
 19:10:11.804513 IP 95.208.###.##.1194 > 217.225.###.###.63282: UDP, length 192
 19:10:11.826767 IP 217.225.###.###.63282 > 95.208.###.##.1194: UDP, length 136
 19:10:11.827436 IP 95.208.###.##.1194 > 217.225.###.###.63282: UDP, length 136
 19:10:11.905935 IP 217.225.###.###.63282 > 95.208.###.##.1194: UDP, length 64
 19:10:15.637783 IP 217.225.###.###.51180 > 95.208.###.##.1194: UDP, length 40
 19:10:17.181198 IP 217.225.###.###.63282 > 95.208.###.##.1194: UDP, length 156
 19:10:17.181655 IP 95.208.###.##.1194 > 217.225.###.###.63282: UDP, length 192
 19:10:17.256555 IP 217.225.###.###.63282 > 95.208.###.##.1194: UDP, length 64
 --- snip ---
 ^C
 4481 packets captured
 4881 packets received by filter
 0 packets dropped by kernel

This is kind of annoying because it makes it really hard to analyze and troubleshoot my firewall rules in the OPNsense GUI because I can't trust what's being displayed. Everything else is working as it should though, so this doesn't affect anything else.

Some additional information:
- Both WAN interfaces have IPv4 outbound NAT rules.
- Both firewall rules use the Gateway "default".
- I am currently using OPNsense 23.1.11-amd64.

Now to my question: Is this a known problem and is there a fix?

6
Hardware and Performance / Re: Packet retransmission
« on: May 28, 2022, 09:20:05 pm »
Quote from: luiz.souza on March 28, 2022, 09:04:51 pm
I would like to know what are the TCP and UDP connections limit values.

Hello luiz.souza,

are you referring to the OPNsense traffic shaping options?
Or do you mean the maximum amount of states?

Regards

7
Hardware and Performance / Re: Can ZFS mirror install boot with 1 failed drive?
« on: May 28, 2022, 09:13:56 pm »
Quote from: ender526 on April 27, 2022, 12:48:29 am
My question is, are both drives bootable when using the installer mirror option by default, Or do I need to mess with the partition tables?

Hello ender526,

I just installed OPNsense 22.1.2 on a spare PC (Biostar J3160NH) with two Seagate 2TB SATA HDDs (zfs mirror) and tried booting with both, only the first and only the second HDD.

This were my results:
  • Both HDDs: Boots just fine, as expected
  • Only the first HDD (ada0): Boots just fine
  • Only the second HDD (ada1): Boots just fine, but the CLI is broken (the screen hangs at the Kernel loading messages)

The Web GUI could be reached in all three cases.

Some more System information (the system time can be ignored):

Both HDDs
Code: [Select]
root@OPNsense:~ # zpool status
  pool: zroot
 state: ONLINE
  scan: resilvered 4.80M in 00:00:01 with 0 errors on Wed Jul 29 00:52:21 2015
config:

NAME          STATE     READ WRITE CKSUM
zroot         ONLINE       0     0     0
  mirror-0    ONLINE       0     0     0
    ada0p4    ONLINE       0     0     0
    gpt/zfs1  ONLINE       0     0     0

errors: No known data errors
root@OPNsense:~ # camcontrol devlist
<SEAGATE ST2000NM0033 NS01>        at scbus0 target 0 lun 0 (pass0,ada0)
<SEAGATE ST2000NM0033 NS01>        at scbus1 target 0 lun 0 (pass1,ada1)
root@OPNsense:~ # opnsense-version
OPNsense 22.1.2_2 (amd64/OpenSSL)

First HDD only
Code: [Select]
root@OPNsense:~ # zpool status
  pool: zroot
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
  scan: resilvered 5.70M in 00:00:01 with 0 errors on Wed Jul 29 00:43:16 2015
config:

NAME          STATE     READ WRITE CKSUM
zroot         DEGRADED     0     0     0
  mirror-0    DEGRADED     0     0     0
    ada0p4    ONLINE       0     0     0
    gpt/zfs1  UNAVAIL      0     0     0  cannot open

errors: No known data errors
root@OPNsense:~ # camcontrol devlist
<SEAGATE ST2000NM0033 NS01>        at scbus0 target 0 lun 0 (pass0,ada0)
root@OPNsense:~ # opnsense-version
OPNsense 22.1.2_2 (amd64/OpenSSL)

Second HDD only
Code: [Select]
root@OPNsense:~ # zpool status
  pool: zroot
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
  scan: resilvered 4.80M in 00:00:01 with 0 errors on Wed Jul 29 00:52:21 2015
config:

NAME          STATE     READ WRITE CKSUM
zroot         DEGRADED     0     0     0
  mirror-0    DEGRADED     0     0     0
    ada0p4    UNAVAIL      0     0     0  cannot open
    gpt/zfs1  ONLINE       0     0     0

errors: No known data errors
root@OPNsense:~ # camcontrol devlist
<SEAGATE ST2000NM0033 NS01>        at scbus1 target 0 lun 0 (pass0,ada0)
root@OPNsense:~ # opnsense-version
OPNsense 22.1.2_2 (amd64/OpenSSL)

I hope this answered your question. :)

8
Hardware and Performance / Re: hardware calculation
« on: May 28, 2022, 07:44:48 pm »
Quote from: sergggggg on May 12, 2022, 02:24:21 pm

Hello, if the calculator for calculating the equipment
from the included services and modules and the maximum traffic in the network?
Thank you!

Hello sergggggg,

looking at your other post ,it seems like you want to know if there is a formula to calculate how much system resources (CPU, RAM, Disk, ...) is needed with IPS, depending on the traffic.
As far as I know, there aren't really any formulas, since the type of traffic and the number of active rules (e.g. with Suricada) can heavily influence how much performance is needed.
Using a CPU with lots of cores and high clock speed will always help though.

9
Hardware and Performance / Re: larger downloads fails
« on: May 28, 2022, 07:32:20 pm »
Hello arnoldg,

it seems that your post has way too few information for us to be able help you with your problem.

Please provide some further information, for example:
  • What Operating System are you using (Windows, MacOS, Linux, etc.)?
  • What Device are you using to download files (PC, Laptop, Smartphone, etc.)?
  • Are you using a Web Browser (Google Chrome, Mozilla Firefox, etc.) or some other software?
  • What kind of device are you using to run OPNsense on?
  • Are you shure that your Internet connection (ISP Modem / Router, etc.) is working correctly?
  • What is the speed (in Megabit per second) and type of your Internet connection (DSL, Cable, Fibre) you use?
  • ...

10
Hardware and Performance / Re: Poor routing performance on DEC3840
« on: May 28, 2022, 07:22:58 pm »
If you run iperf3 from a OPNsense interface to a client, your only limiting factor is the single core performance of your CPU(s).

If you run iperf3 from client 1 to client 2 and have OPNsense in the middle, it has to do a lot of work routing the Packets with pf(4), which uses lots of CPU time.

Afaik iperf3 usually only creates one tcp stream, which isn't really a real world load on a firewall.
You could try to run multiple parallel streams with the -P flag:
Quote
-P, --parallel n
              number of parallel client streams to run. Note that iperf3 is single threaded, so if you are CPU bound, this will not yield higher throughput.

11
Hardware and Performance / Re: Individual sshd processes run with 100% CPU after a while
« on: May 28, 2022, 07:05:12 pm »
Quote from: lucky4ever2 on May 24, 2022, 04:31:20 pm
We use SSH tunnels at this point.

What are the SSH tunnels used for?
And how did you configure them (manually/GUI)?

12
Hardware and Performance / Re: OPNsense vs. Proxmox Bridge with LAGG
« on: May 28, 2022, 06:53:52 pm »
Depending on the NIC, passing it through to the OPNsense VM (less overhead from Proxmox VE) and using Hardware offloading might be faster.

13
22.1 Legacy Series / Re: wrong negociation on Network speed on vmware
« on: May 26, 2022, 12:26:50 pm »
What exactly does OPNsense show you as the interface speed?

I have OPNsense running on Proxmox VE and it shows "10Gbase-T <full duplex>" on all interfaces.
I also have one OPNsense VM running on ESXi 6.7 U3d, but can't access it right now (it also uses VMXNET3 NICs).

If you use the Intel E1000e NICs for your OPNsense VM, they will be limited to 1Gbit/s btw - make shure to use vmxnet3.

14
22.1 Legacy Series / Re: Since 22.1.6< zerotier eats one cpu fully
« on: May 26, 2022, 12:19:03 pm »
Have you tried uninstalling and reinstalling the os-zerotier Plugin?

15
22.1 Legacy Series / Re: OS-ddclient Plugin Question
« on: May 26, 2022, 12:13:24 pm »
AFAIK these are just package messages and can be ignores, since you configure ddclient from the GUI in OPNsense. :)

Other than that, have you got the plugin to work?

Pages: [1] 2 3 4
OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2