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

Topics - Sensler3000

#1
Hi all,

i have a setup which uses IPv4 with static local IPs and IPv6 with Dynamic prefix. I run some Server services locally. For that i use Unbound to override some A records to point to the local IP of the Server (for clients in the local net to reach the server).

This works great however unbound also overrides the AAAA record when an A override is set (which i do not want). I also cannot set the AAAA Record in parallel to override manually since the IPv6 has an dynamic prefix and changes regularly. For the firewall rules i can use an IPv6 Alias which works but seems not to be possible for the Unbound override.

So how can i tell unbound to only override the A record and leave the original AAAA record in place ?

Regards
#2
Hardware and Performance / Poor routing speed on i5-7200U
December 25, 2021, 06:00:55 PM
Hi all,

i just started with OPNsense and bought an NRG Systems IPU672 with an i5-7200U, 8 GB of RAM and i211AT NICs.

i setup 2 VLANs 192.168.1.X and 10.0.2.X and tested routing speed between both. I used IPerf3 but i can only reach speeds up to ~800 Mbit/s. Connecting both devices to a switch i reach 950 Mbit/s.

Test on OPNsense:

\iperf-3.1.3-win32>iperf3 -c 10.0.2.200 -t -R 300
Connecting to host 10.0.2.200, port 5201
[  4] local 192.168.1.3 port 1053 connected to 10.0.2.200 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  91.0 MBytes   761 Mbits/sec
[  4]   1.00-2.00   sec  89.0 MBytes   748 Mbits/sec
[  4]   2.00-3.00   sec  88.9 MBytes   746 Mbits/sec
[  4]   3.00-4.00   sec  92.1 MBytes   772 Mbits/sec


When i test with the option to do multiple connection i can reach the ~940 Mbit/s:

iperf-3.1.3-win32>iperf3 -c 10.0.2.200 -t -R 300 -P 2
Connecting to host 10.0.2.200, port 5201
[  4] local 192.168.1.3 port 1052 connected to 10.0.2.200 port 5201
[  6] local 192.168.1.3 port 1053 connected to 10.0.2.200 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  55.6 MBytes   466 Mbits/sec
[  6]   0.00-1.00   sec  56.3 MBytes   472 Mbits/sec
[SUM]   0.00-1.00   sec   112 MBytes   938 Mbits/sec


this would indicate the single core performance of the CPU is to slow to handel 1 Gbit/s for a single connection however when i check top -a -H -S only one CPU is at 33%

last pid:  7932;  load averages:  0.34,  0.26,  0.12                                                                            up 0+00:06:09  18:23:45
404 threads:   6 running, 383 sleeping, 15 waiting
CPU:  0.0% user,  0.0% nice, 11.1% system,  0.0% interrupt, 88.9% idle
Mem: 126M Active, 80M Inact, 494M Wired, 7112M Free
ARC: 214M Total, 32M MFU, 176M MRU, 172K Anon, 993K Header, 4640K Other
     58M Compressed, 153M Uncompressed, 2.65:1 Ratio
Swap: 8192M Total, 8192M Free

  PID USERNAME    PRI NICE   SIZE    RES STATE    C   TIME    WCPU COMMAND
   11 root        155 ki31      0    64K CPU0     0   5:50  99.40% idle{idle: cpu0}
   11 root        155 ki31      0    64K RUN      1   6:00  99.38% idle{idle: cpu1}
   11 root        155 ki31      0    64K CPU3     3   6:00  98.63% idle{idle: cpu3}
   11 root        155 ki31      0    64K CPU2     2   5:32  67.85% idle{idle: cpu2}
    0 root        -76    -      0  4624K CPU2     2   0:29  32.08% kernel{if_io_tqg_2}
    0 root        -76    -      0  4624K -        3   0:01   0.92% kernel{if_io_tqg_3}
76044 unbound      20    0    73M    39M kqread   1   0:02   0.40% unbound{unbound}
76044 unbound      20    0    73M    39M kqread   0   0:02   0.38% unbound{unbound}
    0 root        -76    -      0  4624K -        0   0:02   0.27% kernel{if_config_tqg_0}
   12 root        -72    -      0   240K WAIT     0   0:00   0.21% intr{swi1: pfsync}
8706 root         20    0    18M  6740K select   1   0:02   0.19% ntpd{ntpd}
58282 root         20    0  1045M  4788K CPU1     1   0:00   0.07% top
   20 root        -16    -      0    16K pftm     2   0:00   0.04% pf purge
   22 root        -16    -      0    16K -        3   0:00   0.04% rand_harvestq
   12 root        -72    -      0   240K WAIT     2   0:00   0.03% intr{swi1: netisr 0}
69837 root         20    0    31M    11M kqread   3   0:00   0.02% syslog-ng{syslog-ng}
   12 root        -60    -      0   240K WAIT     0   0:00   0.02% intr{swi4: clock (0)}
20757 root         20    0    24M    14M select   3   0:01   0.01% python3.8
76550 root         20    0    21M    12M select   1   0:00   0.01% python3.8
24176 root         20    0    21M    12M select   1   0:00   0.01% python3.8
33797 root         16    -      0    16K syncer   3   0:00   0.01% syncer
99582 root         20    0    20M  6448K select   0   0:00   0.01% mpd5{mpd5}
    0 root        -76    -      0  4624K -        1   0:00   0.00% kernel{softirq_1}
    0 root        -76    -      0  4624K -        0   0:00   0.00% kernel{softirq_0}
    0 root        -76    -      0  4624K -        3   0:00   0.00% kernel{softirq_3}
43323 root        -16    -      0    48K psleep   1   0:00   0.00% pagedaemon{dom0}
75062 root         20    0    17M  7416K select   1   0:00   0.00% sshd
69837 root         20    0    31M    11M kqread   0   0:00   0.00% syslog-ng{syslog-ng}
    0 root        -76    -      0  4624K -        0   0:11   0.00% kernel{if_io_tqg_0}



i played around with HW Offload setting under "Interfaces > settings" and rebooted but i seem not to change anything. Is the CPU really to slow to reach 1 Gbit/s routing speed on a single connection or am i doing something wrong ?

Thanks for the Help!
#3
Hi all,

iam new to OPNSense and have a question if following setup is possible:

i have a virtual machine host connected with 1 Physical NIC to the firewall. The host automatically tags the traffic of the VMs with a specific VLAN tag, all fine. However the host itself does send untagged traffic. Since i dont want to have untagged traffic at all my idea was to assign 2 VLANs to the physical NIC.

igp 1 VLAN10 for the VMs
igp 1 VLAN9 for the host

Both on the same physical NIC. VLAN10 is clear and will be send tagged by the host no problem. However will OPNSense assign the untagged traffic from the host itself to VLAN9 than or what will happen with the untagged traffic ?

thanks for the help!