Hi!
I run FreeBSD 13.0-CURRENT #0 r363772 as router in small office with two
network interface: sk0 and sk1.
sk0 connected to 2 providers (main and backup) via VLAN and natd, sk1
connected to office network via VLAN.
I had to use VLAN due to cabling issues.
As soon as the user runs the speedtest.net in browser on any client computer
in network
FreeBSD router goes into panic mode and automatically reboot during multi
connection upload test.
In single connections mode of speedtest.net all is fine.
Error is : Fatal trap 12: page fault while in kernel mode.
In my opinion the error is caused by multiple openings of outgoing
connections on router in a short period of time.
This is not a hardware error. I tested it on three different motherboards
with different kernel versions and diffenent amount of RAM (8GB DDR2 and 16,
24, 32GB DDR3).
Maybe this is somehow due to the use of VLAN, or network card driver
problem...
I noticed this problem about six months ago when I switched from FreeBSD
12-Current to FreeBSD 13-Current.
Since then I have been updating the kernel about once a week, but the error
still present.
I read on the some artictes in Internet that this can happen when tcp
extensions are enabled. I disabled tcp_extensons in rc.conf, and
set some sysctls params as described in Internet-articles, but it didn't
affect anything.
The same error sometimes occurs when clients are talking on Skype.
Could you help me? Any idea is appreciated!
Thank you.
Sergei.
My network
cards:
skc0: port 0xc100-0xc1ff mem
0xf7b44000-0xf7b47fff irq 16 at device 1.0 on pci6
skc0: DGE-530T Gigabit Ethernet Adapter rev. (0x9)
sk0: on skc0
sk0: Ethernet address: 00:15:e9:b8:c3:53
miibus1: on sk0
e1000phy0: PHY 0 on miibus1
e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
skc1: port 0xc000-0xc0ff mem
0xf7b4-0xf7b43fff irq 17 at device 2.0 on pci6
skc1: DGE-530T Gigabit Ethernet Adapter rev. (0x9)
sk1: on skc1
sk1: Ethernet address: 00:19:5b:8a:97:a7
miibus2: on sk1
e1000phy1: PHY 0 on miibus2
e1000phy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto
My
natd.conf:
instance default
interface vlan2
port 8668
use_sockets yes
same_ports yes
#
instance vlan3
interface vlan3
port 8669
use_sockets yes
same_ports yes
#
globalport 8670
#
#
= My
rc.conf:=
defaultrouter="109.251.97.65"
tcp_extensions="NO"# Set to NO to turn off RFC1323 extensions.
#
ifconfig_sk0="up -rxcsum -txcsum"
ifconfig_sk1="up -rxcsum -txcsum"
ipv6_network_interfaces="none" # Default is auto
ipv6_activate_all_interfaces="NO" # this is the default
ip6addrctl_enable="NO" # New way to disable IPv6 support
ip6addrctl_policy="ipv4_prefer" # Use IPv4 instead of IPv6
cloned_interfaces="vlan2 vlan3 vlan5"
#
# vlan2 – provider 1 as main
# vlan3 -- provider 2 as backup
# vlan5 – office network
#
ifconfig_vlan2="inet 109.251.97.75 netmask 255.255.255.224 vlan 2 vlandev
sk0"
ifconfig_vlan3="inet 95.164.8.37 netmask 255.255.252.0 vlan 3 vlandev
sk0"
ifconfig_vlan5="inet 10.10.10.177 netmask 255.255.255.240 vlan 5 vlandev
sk1"
#
gateway_enable="YES"
#
zfs_enable="YES" # Set to YES to automatically mount ZFS file systems
natd_enable="YES"# enables NAT
natd_flags="-f /etc/natd.conf"
== My
sysctl.conf:===
debug.debugger_on_panic=0
kern.coredump=0
kern.corefile=/dev/null
net.inet.ip.fw.one_pass=1
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.inet.tcp.recvspace=1048576
net.inet.tcp.sendspace=524288
net.inet.tcp.recvbuf_max=4194304
net.inet.tcp.sendbuf_inc=65535
net.inet.tcp.msl=5000
net.inet.ip.fw.dyn_buckets=65536
net.inet.ip.fw.dyn_max=65536
net.inet.ip.fw.dyn_ack_lifetime=120
net.inet.ip.fw.dyn_syn_lifetime=10
net.inet.ip.fw.dyn_fin_lifetime=2
net.inet.ip.fw.dyn_short_lifetime=10
= My
loader.conf:==
zfs_load="YES"
vfs.root.mountfrom="zfs:zpoolasr"
vfs.zfs.prefetch_disable=0
accf_data_load="YES"# Wait for data accept filter
accf_dns_load="YES"# Wait for full DNS request accept filter
accf_http_load="YES"# Wait for full HTTP request accept filter
coretemp_load="YES"
hw.vga.textmode=0
= My kernel
config:==
include GENERIC
#
ident HOME64
#
nooptions KDB # Enable kernel debugger support.
nooptions KDB_TRACE # Print a stack trace for