Just bumping this in the hope someone can help here please? I'm essentially trying to forward traffic from one host to another, while preserving the source IP.
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 MenuQuoteThis distinction is important: when the packet arrives at the mitmproxy machine, it must still be addressed to the target server. This means that Network Address Translation should not be applied before the traffic reaches mitmproxy, since this would remove the target information, leaving mitmproxy unable to determine the real destination.
mitm_if = "re2"
pass in quick proto tcp from $mitm_if to port { 80, 443 } divert-to 127.0.0.1 port 8080
[ 5] 166.00-167.00 sec 112 MBytes 941 Mbits/sec
[ 5] 167.00-168.00 sec 112 MBytes 941 Mbits/sec
[ 5] 168.00-169.00 sec 112 MBytes 941 Mbits/sec
[ 5] 169.00-170.00 sec 112 MBytes 941 Mbits/sec
[\code]
And NIC processing load dropped to just 25% or so:
[code]
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND
11 root 155 ki31 0B 32K RUN 1 3:14 77.39% [idle{idle: cpu1}]
11 root 155 ki31 0B 32K RUN 0 3:06 71.26% [idle{idle: cpu0}]
12 root -92 - 0B 400K WAIT 0 0:55 28.35% [intr{irq29: virtio_pci1}]
91430 root 4 0 17M 6008K RUN 0 0:43 21.94% iperf3 -s
Quote from: iamperson347 on December 05, 2021, 07:48:25 PM
I'm chiming in to say I have seen similar issues. Running on proxmox, I can only route about 600 mbps in opnsense using virtio/vtnet. A related kernel process in opnsense shows 100% cpu usage and the underlying vhost process on the proxmox host is pegged as well.
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 97.0 MBytes 814 Mbits/sec
[ 5] 1.00-2.00 sec 109 MBytes 911 Mbits/sec
[ 5] 2.00-3.00 sec 111 MBytes 934 Mbits/sec
[ 5] 3.00-4.00 sec 103 MBytes 867 Mbits/sec
[ 5] 4.00-5.00 sec 100 MBytes 843 Mbits/sec
[ 5] 5.00-6.00 sec 112 MBytes 937 Mbits/sec
[ 5] 6.00-7.00 sec 109 MBytes 911 Mbits/sec
[ 5] 7.00-8.00 sec 75.7 MBytes 635 Mbits/sec
[ 5] 8.00-9.00 sec 68.9 MBytes 578 Mbits/sec
[ 5] 9.00-10.00 sec 96.6 MBytes 810 Mbits/sec
[ 5] 10.00-11.00 sec 112 MBytes 936 Mbits/sec
PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND
12 root -92 - 0B 400K CPU0 0 21:42 94.37% [intr{irq29: virtio_pci1}]
51666 root 4 0 17M 6600K RUN 1 0:18 68.65% iperf3 -s
11 root 155 ki31 0B 32K RUN 1 20.4H 13.40% [idle{idle: cpu1}]
11 root 155 ki31 0B 32K RUN 0 20.5H 3.61% [idle{idle: cpu0}]