Hi,
short Version:
I think there might be a problem with the vte (nic) driver. I'm
searching for a way to gather all the Information to get this fixed.

long Version:
I've built a home router with following components.
 - Educake (very small X86 SBC around Arduino) [1]
 - USB Lan Card (axe0 nic to ISP)
 - USB Hard drive (nfs export)
 - SDHC Card (Openbsd)

After some thinking (and help from various openbsd users and this
list) i was able to
install OpenBSD 5.9 on this device. Things are working very well. For
my Connection
50mbit/down 4mbit/up this Hardware is more than enough.
running Services:
dhcpd
nfsd/portmap
ntpd
sshd
radicale (caldav server)
ddclient (dyndns updater)
unbound
pf

Here comes the problem. After some event i do not know vte0 is not
able to receive or
send any anything. Logs show nothing. Leds on the nic are still
showing that there is
traffic but i can't do anything on that nic. Established connections
on that nic all get broken. Other parts of the system work fine.
An easy way to fix this is

~ ifconfig vte0 down; ifconfig vte0 up

And things are working perfectly normal again....for some time.
Creating much traffic (about 40mb/s), this happens every few hours.
With low traffic,
it's about one or two times a week.
With my findings it's probably hard to investigate/fix that Problem.
I'm searching for ways to file a good bug report. Ideas ?


Jan

[1] http://www.86duino.com/index.php?p=95


dmesg

OpenBSD 5.9-current (GENERIC) #1584: Thu Mar 10 21:02:23 MST 2016
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error b<fixed_disk>
cpu0: Vortex86 SoC  (686-class) 301 MHz
cpu0: FPU,TSC,CX8,SEP,CMOV,MMX,PERF
real mem  = 133246976 (127MB)
avail mem = 118288384 (112MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 06/23/99, BIOS32 rev. 0 @ 0xff046, SMBIOS rev.
2.7 @ 0x7fe1420 (6 entries)
bios0: vendor coreboot version "4.0-4750-g745041e-dirty" date 03/12/2015
bios0: DMP Vortex86EX
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4ce0/224 (12 entries)
pcibios0: no compatible PCI ICU found: ICU vendor 0x17f3 product 0x6011
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xef000/0x1000!
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "RDC R6025 Host" rev 0x01
ppb0 at pci0 dev 1 function 0 "RDC R1031 PCIe" rev 0x02: irq 15
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 "RDC R6011 SB" rev 0x01
pcib1 at pci0 dev 7 function 1 "RDC R6011 SB" rev 0x01
vte0 at pci0 dev 8 function 0 "RDC R6040 Ethernet" rev 0x00: irq 9,
address 00:1b:eb:64:ae:d4
ukphy0 at vte0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI
0x000bb4, model 0x0005
ohci0 at pci0 dev 10 function 0 "RDC R6060 USB" rev 0x13: irq 14,
version 1.0, legacy support
ehci0 at pci0 dev 10 function 1 "RDC R6061 USB2" rev 0x07: irq 10
ehci0: halt timeout
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "RDC EHCI root hub" rev 2.00/1.00 addr 1
pciide0 at pci0 dev 12 function 0 "RDC R1012 IDE" rev 0x03: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using irq 11 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: < D0 RDC SD-IDE HOST CONTROLLER>
wd0: 1-sector PIO, LBA, 14719MB, 30144512 sectors
pciide0: channel 1 ignored (disabled)
azalia0 at pci0 dev 14 function 0 "RDC R3010 HDA" rev 0x02: irq 7
azalia0: codecs: Realtek ALC262
audio0 at azalia0
"RDC R1060 USB Device" rev 0x03 at pci0 dev 15 function 0 not configured
"RDC R1331 MC" rev 0x00 at pci0 dev 16 function 0 not configured
"RDC R1710 SPI" rev 0x01 at pci0 dev 16 function 1 not configured
"RDC R1070 CAN" rev 0x00 at pci0 dev 17 function 0 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
com3 at isa0 port 0x2e8/8 irq 12: ns16550a, 16 byte fifo
com3: console
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
isa at pcib1 not configured
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "RDC OHCI root hub" rev 1.00/1.00 addr 1
nvram: invalid checksum
axe0 at uhub0 port 1 configuration 1 interface 0 "ASIX Electronics
AX88178" rev 2.00/0.01 addr 2
axe0: AX88178, address 00:11:6b:73:cb:43
rgephy0 at axe0 phy 1: RTL8169S/8110S/8211 PHY, rev. 2
umass0 at uhub0 port 2 configuration 1 interface 0 "Western Digital My
Book" rev 2.00/1.65 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <WD, 10EAVS External, 1.65> SCSI2
0/direct fixed serial.10581100343030323339
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (45ae0537d8a8ec98.a) swap on wd0b dump on wd0b
clock: unknown CMOS layout

ps
USER       PID %CPU %MEM   VSZ   RSS TT  STAT  STARTED       TIME COMMAND
root         1  0.0  0.4   452   496 ??  Is    Sat11AM    0:02.28 /sbin/init
root     98729  0.0  0.4   632   484 ??  Is    Sat11AM    0:00.06
dhclient: axe0 [
_dhcp    25786  0.0  0.5   744   608 ??  Isp   Sat11AM    0:00.90
dhclient: axe0 (
root      2384  0.0  0.9   984  1112 ??  Isp   Sat11AM    0:00.04
syslogd: [priv]
_syslogd 57923  0.0  1.0   984  1328 ??  Ip    Sat11AM    0:28.20
/usr/sbin/syslog
root     31301  0.0  0.4   628   556 ??  Is    Sat11AM    0:00.02
pflogd: [priv] (
_pflogd  84314  0.0  0.3   692   352 ??  Sp    Sat11AM    0:26.97
pflogd: [running
_unbound 79858  0.0 10.6 15428 13828 ??  Is    Sat11AM    0:59.10
unbound -c /var/
_ntp     38248  0.0  1.1   840  1400 ??  S<sp  Sat11AM    0:31.92
ntpd: ntp engine
_ntp     81224  0.0  1.0   656  1300 ??  Isp   Sat11AM    0:00.02
ntpd: dns engine
root     36832  0.0  1.0   704  1264 ??  I<sp  Sat11AM    0:01.32
/usr/sbin/ntpd -
_portmap 80071  0.0  0.6   364   836 ??  Isp   Sat11AM    0:00.02
/usr/sbin/portma
root     44949  0.0  0.5   664   632 ??  Isp   Sat11AM    0:00.04
mountd: parent (
root     95682  0.0  0.4   556   492 ??  I     Sat11AM    0:00.02
mountd: [priv] (
root     14596  0.0  0.2   220   272 ??  Is    Sat11AM    0:00.01
nfsd: master (nf
root     18207  0.0  0.1   144   144 ??  I     Sat11AM    0:00.00
nfsd: server (nf
root     63785  0.0  0.1   144   140 ??  I     Sat11AM    0:00.05
nfsd: server (nf
root     45456  0.0  0.1   144   140 ??  I     Sat11AM    0:01.46
nfsd: server (nf
root     20356  0.0  0.1   144   144 ??  I     Sat11AM    0:00.00
nfsd: server (nf
root     90411  0.0  0.9   908  1176 ??  Is    Sat11AM    0:55.43 /usr/sbin/sshd
_dhcp    47720  0.0  1.0   692  1328 ??  Isp   Sat11AM    0:00.79
/usr/sbin/dhcpd
root      9617  0.0  1.4  1484  1884 ??  Isp   Sat11AM    0:00.09
/usr/sbin/smtpd
_smtpq   72382  0.0  1.6  1580  2144 ??  Ip    Sat11AM    0:00.23
smtpd: queue (sm
_smtpd    9520  0.0  1.6  1440  2092 ??  Ip    Sat11AM    0:00.08
smtpd: lookup (s
_smtpd   35034  0.0  1.6  1556  2068 ??  Ip    Sat11AM    0:00.07
smtpd: control (
_smtpd   98820  0.0  1.4  1216  1804 ??  Ip    Sat11AM    0:00.03
smtpd: scheduler
_smtpd   98249  0.0  2.0  1612  2552 ??  Ip    Sat11AM    0:00.13
smtpd: pony expr
_smtpd   77827  0.0  1.3  1284  1704 ??  Ip    Sat11AM    0:00.01
smtpd: klondike
root     98352  0.0  0.8   656  1040 ??  Isp   Sat11AM    0:01.76 /usr/sbin/cron
jan      90676  0.0  2.4  2520  3168 ??  Ssp   Sat08PM    5:02.54
tmux: server (/t
_radical 77097  0.0 12.3 11584 15960 ??  Ss    Sun07PM   20:53.66
/usr/local/bin/p
root     21655  0.0  2.2  3540  2808 ??  Is     8:28AM    0:00.27
sshd: jan [priv]
jan      80720  0.0  1.7  3512  2196 ??  S      8:28AM    0:00.05
sshd: jan@ttyp0
jan       4720  0.0  0.5   644   636 p0  Rsp    8:28AM    0:00.03 -ksh (ksh)
jan      66726  0.0  0.3   396   360 p0  R+p    8:29AM    0:00.00 ps -aux
jan      40700  0.0  0.5   656   668 p2  Is+p  Sat08PM    0:00.16 -ksh (ksh)
_ddclien 55638  0.0  2.8  4152  3636 03- S     Sat11AM    1:39.15
perl: ddclient -

sysctl.conf
net.inet.ip.forwarding=1

fstab
45ae0537d8a8ec98.b none swap sw
45ae0537d8a8ec98.a / ffs rw,softdep 1 1
45ae0537d8a8ec98.k /home ffs rw,nodev,nosuid,softdep 1 2
45ae0537d8a8ec98.d /tmp ffs rw,nodev,softdep,nosuid 1 2
45ae0537d8a8ec98.f /usr ffs rw,nodev,softdep 1 2
45ae0537d8a8ec98.e /var ffs rw,nodev,nosuid,softdep 1 2
/dev/sd0a /mnt/sd0 ffs rw,nodev,softdep 1 2

ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 32768
 priority: 0
 groups: lo
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
 inet 127.0.0.1 netmask 0xff000000
vte0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 lladdr 00:1b:eb:64:ae:d4
 priority: 0
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
enc0: flags=0<>
 priority: 0
 groups: enc
 status: active
axe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
 lladdr 00:11:6b:73:cb:43
 priority: 0
 groups: egress
 media: Ethernet 100baseTX full-duplex
 status: active
 inet xxx.xxx.xxx.xxx netmask 0xffffff00 broadcast xxx.xxx.xxx.xxx
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33192
 priority: 0
 groups: pflog


pfctl -s rules
anchor "ftp-proxy/*" all
pass in quick on vte0 inet proto tcp from any to any port = 21 flags
S/SA divert-to 127.0.0.1 port 8021
match in all scrub (no-df random-id max-mss 1440)
match out on egress inet from ! (egress:network) to any nat-to
(egress:0) round-robin
block drop in quick on axe0 inet from 127.0.0.0/8 to any
block drop in quick on axe0 inet from 192.168.0.0/16 to any
block drop in quick on axe0 inet from 172.16.0.0/12 to any
block drop in quick on axe0 inet from 10.0.0.0/8 to any
block drop out quick on axe0 inet from any to 127.0.0.0/8
block drop out quick on axe0 inet from any to 192.168.0.0/16
block drop out quick on axe0 inet from any to 172.16.0.0/12
block drop out quick on axe0 inet from any to 10.0.0.0/8
block drop all
block drop in quick on ! lo inet6 from ::1 to any
block drop in quick on ! lo inet from 127.0.0.0/8 to any
block drop in quick inet from 127.0.0.1 to any
block drop in quick on ! vte0 inet from 192.168.1.0/24 to any
block drop in quick inet from 192.168.1.1 to any
block drop in quick on ! axe0 inet from 178.26.196.0/24 to any
block drop in quick inet from 178.26.196.17 to any
block drop in quick inet6 from ::1 to any
block drop in quick on lo0 inet6 from fe80::1 to any
pass out quick inet all flags S/SA
pass in on egress inet proto tcp from any to (egress) port = 113 flags S/SA
pass in on egress inet proto tcp from any to (egress) port = 22 flags S/SA
pass in on egress inet proto tcp from any to (egress) port = 5232 flags S/SA
pass in inet proto icmp all icmp-type echoreq
pass in on vte0 all flags S/SA

Reply via email to