OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 20.7 Legacy Series »
  • Call for testing: netmap on 20.7
« previous next »
  • Print
Pages: 1 ... 4 5 [6] 7 8 ... 14

Author Topic: Call for testing: netmap on 20.7  (Read 49938 times)

mb

  • Hero Member
  • *****
  • Posts: 912
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: Call for testing: netmap on 20.7
« Reply #75 on: August 06, 2020, 04:25:14 pm »
@sorano, it does not seem to be related.

Please follow below steps and see if this kernel is of help:

Code: [Select]
[root@20gw /root]# cd /boot/
[root@20gw:/boot # fetch https://updates.sunnyvalley.io/opnsense/updates/netmap-kernel/kernel-12.1-0805-2.tar.gz
kernel-12.1-0805-2.tar.gz                           45 MB 4980 kBps    10s
[root@20gw /boot]# mv kernel kernel.stock.save
[root@20gw /boot]# tar zxf kernel-12.1-0805-2.tar.gz 
[root@20gw /boot]# reboot

After the reboot, you should be able to see this kernel information:

Code: [Select]
root@20gw:~ # uname -a
FreeBSD 20gw.local 12.1-RELEASE-p7-HBSD FreeBSD 12.1-RELEASE-p7-HBSD #2  5742b25c4(master)-dirty: Wed Aug  5 22:20:24 PDT 2020     root@sunnyvalley12.localdomain:/usr/obj/usr/src/amd64.amd64/sys/SMP  amd64
root@20gw:~ #

To restore stock OPNsense kernel:

Code: [Select]
# cd /boot
# rm -rf kernel
# mv kernel.stock.save kernel
# reboot
Logged

Voodoo

  • Newbie
  • *
  • Posts: 44
  • Karma: 4
    • View Profile
Re: Call for testing: netmap on 20.7
« Reply #76 on: August 06, 2020, 07:52:26 pm »
@mb before 20.7 enabling ips mode with suricata/sensei crashed the kvm virtio opnsense with a kernel panic within 5 seconds, now i can enable it without any issues everything is working, also disabling/enabling.
Logged

mb

  • Hero Member
  • *****
  • Posts: 912
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: Call for testing: netmap on 20.7
« Reply #77 on: August 06, 2020, 08:14:49 pm »
@Voodoo, that's great to hear, thanks for sharing.
Logged

madj42

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
    • View Profile
Re: Call for testing: netmap on 20.7
« Reply #78 on: August 07, 2020, 09:40:21 pm »
Is the kernel above the test kernel that includes the PPPoE fixes, or should we still PM?
Logged

mb

  • Hero Member
  • *****
  • Posts: 912
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: Call for testing: netmap on 20.7
« Reply #79 on: August 07, 2020, 10:56:22 pm »
Hi @madj42, yes. Can you test and provide feedback?

You can also use a newer kernel: https://updates.sunnyvalley.io/opnsense/updates/netmap-kernel/kernel-12.1-0806-1.tar.gz
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 171
  • Karma: 10
    • View Profile
Re: Call for testing: netmap on 20.7
« Reply #80 on: August 07, 2020, 11:37:53 pm »
I have run up the latest two kernels offered here but cannot enable either IPS or Sensei on my LAN vtnet0 interface.

Setup is Proxmox
PPPoE on vtnet1 for WAN (VLAN 10 on Host Proxmox interface)
vtnet0 for LAN

I reset the logs from System>Settings>Logging to reset Intrusion Detection logs as the button within that view does not work for the 'stats' logs that are displayed.

When I enable IPS on LAN I get cycling of the log within Services>Intrusion Detection>Log File. Cycles every few seconds so am assuming it is the application of IPS failing? This is the' stats' log, not the older detailed log.

I cannot enable Sensei as the LAN interface is not available for selection. Only the underlying vtnet1 of the WAN PPPoE is available.


« Last Edit: August 08, 2020, 12:26:54 am by bunchofreeds »
Logged

mb

  • Hero Member
  • *****
  • Posts: 912
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: Call for testing: netmap on 20.7
« Reply #81 on: August 07, 2020, 11:49:20 pm »
Quote from: bunchofreeds on August 07, 2020, 11:37:53 pm
I cannot enable Sensei as the LAN interface is not available for selection. Only the underlying vtnet1 of the WAN PPPoE is available.

@buchoffreeds, you can use this hack to have Sensei on vtnet1:

https://forum.opnsense.org/index.php?topic=9521.msg84199#msg84199

Your feedback is much appreciated.

NOTE: We'll remove this check once we have the test kernel in production.

« Last Edit: August 07, 2020, 11:50:59 pm by mb »
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 171
  • Karma: 10
    • View Profile
Re: Call for testing: netmap on 20.7
« Reply #82 on: August 08, 2020, 12:20:17 am »
Thanks @mb

That allowed me to select my LAN interface within Sensei.
Sensei is now running successfully on my Proxmox vtnet0 LAN Interface!

It first alerted that Suricata was in use on the LAN Interface, so I moved Suricata to WAN Interface to resolve this.
Just Disabling Intrusion Detection was not enough.


Logged

FullyBorked

  • Sr. Member
  • ****
  • Posts: 258
  • Karma: 22
    • View Profile
Re: Call for testing: netmap on 20.7
« Reply #83 on: August 08, 2020, 01:05:15 am »
I'm on chip=0x150e8086 and my graphs don't work with IPS enabled.  Also having some very poor throughput with or without IPS.  If this helps at all.

Edit: intel nic using the igb (i think that designates the drivers being used?)
« Last Edit: August 08, 2020, 01:07:15 am by FullyBorked »
Logged

mb

  • Hero Member
  • *****
  • Posts: 912
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: Call for testing: netmap on 20.7
« Reply #84 on: August 08, 2020, 02:29:48 am »
Hi @bunchofreeds, thanks for the feedback. Glad to hear that vtnet is now fine.

Quote
It first alerted that Suricata was in use on the LAN Interface, so I moved Suricata to WAN Interface to resolve this.
Just Disabling Intrusion Detection was not enough.

Yes, this is done on purpose, since people might enable Suricata on LAN in a future time forgetting that Sensei is running there.
Logged

mb

  • Hero Member
  • *****
  • Posts: 912
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: Call for testing: netmap on 20.7
« Reply #85 on: August 08, 2020, 02:33:16 am »
Hi @FullyBorked, yours might be related to a different issue. Generally netmap problems generally appear in cases where you have total packet flow problems.
Logged

bunchofreeds

  • Full Member
  • ***
  • Posts: 171
  • Karma: 10
    • View Profile
Re: Call for testing: netmap on 20.7
« Reply #86 on: August 09, 2020, 08:10:46 am »
I see there is progress on PPPoE when looking at the google drive sheet.

Let me know if you want this tested.

I am running Proxmox and vtnet drivers.
Have Sensei successfully running on the LAN interface currently.
Logged

binaryanomaly

  • Full Member
  • ***
  • Posts: 139
  • Karma: 9
    • View Profile
Re: Call for testing: netmap on 20.7
« Reply #87 on: August 09, 2020, 11:42:49 am »
Quote from: mb on August 06, 2020, 03:37:43 am
Quote from: binaryanomaly on August 05, 2020, 12:40:58 pm
Quote from: Voodoo on August 03, 2020, 12:34:13 pm
netmap with 20.7 release for vnet driver (virtio) is working, the kernel panic is gone.

I still do observe pagefaults with virtio vtnet interfaces...

Yes, this is expected as of now. Fix is on upstream.

That seems to have massively improved or even be fixed completely with the new test kernel. 👍🏻
Logged

lewald

  • Full Member
  • ***
  • Posts: 197
  • Karma: 13
    • View Profile
Re: Call for testing: netmap on 20.7
« Reply #88 on: August 09, 2020, 12:39:11 pm »
Thanks to the new test kernel, I now have almost the max. over OpenVPN what I can transmit with my line. Instead of 25 Mbit it is now 45 MBit. :) I run the opnsense on both sides as VM within Proxmox. Network in Proxmox virtio with 8 queues.

PS: Sensei and Suricata enabled. And Suricata works now in VM :)
« Last Edit: August 09, 2020, 12:41:44 pm by lewald »
Logged

mb

  • Hero Member
  • *****
  • Posts: 912
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: Call for testing: netmap on 20.7
« Reply #89 on: August 10, 2020, 06:25:02 pm »
@bunchofreeds, yes that'd be perfect if you can have Suricata on WAN (pppoe) and see how it goes. Our early tests showed good results with our test tools.

@binaryanomaly, thanks for the feedback. vtnet seems to be doing even better than 20.1.

@lewald, that's great to hear, though I wouldn't expect netmap work might have contributed to the vpn speed. It could be virtio that you can use it with 8 queues.
Logged

  • Print
Pages: 1 ... 4 5 [6] 7 8 ... 14
« previous next »
  • OPNsense Forum »
  • Archive »
  • 20.7 Legacy Series »
  • Call for testing: netmap on 20.7
 

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