> On 29/03/2015 13:56, Holger Glaess wrote: >> Am 24.03.2015 um 05:41 schrieb Holger Glaess: >>> hi >>> >>> i play a little bit with rdomain >>> >>> if add my pppoe device to rdomain 1 >>> >>> # cat /etc/hostname.pppoe0 >>> rdomain 1 >>> rtlabel netcologne >>> inet6 autoconf >>> inet 0.0.0.0 255.255.255.255 NONE \ >>> pppoedev msk0 authproto pap \ >>> authname 'foo@bar' authkey 'xyz' up >>> dest 0.0.0.1 >>> !/sbin/route -T 1 add default -ifp pppoe0 0.0.0.1 >>> !/sbin/route -T 1 add -inet6 default -ifp pppoe0 ::0.0.0.1 >>> >>> >>> >>> the pf lines >>> >>> pass in on $lan_if from any to $myserver rtable 1 >>> pass in on rdomain 1 proto tcp from <allow_ssh> to ($nc_pppoe:0) >>> port 22 rdr-to 192.168.131.250 port 22 rtable 0 >>> match out on $nc_pppoe nat-to ($nc_pppoe:0) >>> >>> >>> >>> so , all works fine but if i connect to the system by ssh and do , >>> for example , an tcpdump -n- r /var/log/pflog >>> the whole machine crash to an kernel panik. >>> >>> this is reproducable and , looks like , just when you have an inbound >>> connection ( rdr ) . >>> >>> >>> the kernel-pppoe works well inside the rdomain he discover properly >>> the ip4 and the ip6 address. >>> >>> Holger >>> >>> >>> >>> >>> # dmesg | more >>> OpenBSD 5.6-stable (GENERIC.MP) #5: Thu Jan 8 16:16:33 CET 2015 >>> root@DAF.rocki.intern:/usr/src/sys/arch/i386/compile/GENERIC.MP >>> cpu0: Intel(R) Atom(TM) CPU D525 @ 1.80GHz ("GenuineIntel" 686-class) >>> 1.80 GHz >>> cpu0: >>> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF >>> real mem = 3208736768 (3060MB) >>> avail mem = 3143852032 (2998MB) >>> mpath0 at root >>> scsibus0 at mpath0: 256 targets >>> mainbus0 at root >>> bios0 at mainbus0: AT/286+ BIOS, date 12/22/10, BIOS32 rev. 0 @ >>> 0xf0010, SMBIOS rev. 2.6 @ 0xfbe90 (22 entries) >>> bios0: vendor American Megatrends Inc. version "080016" date >>> 12/22/2010 >>> bios0: ZOTAC ATOM D525 >>> acpi0 at bios0: rev 2 >>> acpi0: sleep states S0 S3 S4 S5 >>> acpi0: tables DSDT FACP APIC MCFG SLIC OEMB HPET GSCI >>> acpi0: wakeup devices P0P1(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) >>> P0P8(S4) P0P9(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) EUSB(S3) >>> SLPB(S4) >>> acpitimer0 at acpi0: 3579545 Hz, 24 bits >>> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat >>> cpu0 at mainbus0: apid 0 (boot processor) >>> mtrr: Pentium Pro MTRR support, 7 var ranges, 88 fixed ranges >>> cpu0: apic clock running at 199MHz >>> cpu0: mwait min=22785, max=32960 >>> cpu1 at mainbus0: apid 2 (application processor) >>> cpu1: Intel(R) Atom(TM) CPU D525 @ 1.80GHz ("GenuineIntel" 686-class) >>> 1.80 GHz >>> cpu1: >>> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF >>> cpu2 at mainbus0: apid 1 (application processor) >>> cpu2: Intel(R) Atom(TM) CPU D525 @ 1.80GHz ("GenuineIntel" 686-class) >>> 1.80 GHz >>> cpu2: >>> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF >>> cpu3 at mainbus0: apid 3 (application processor) >>> cpu3: Intel(R) Atom(TM) CPU D525 @ 1.80GHz ("GenuineIntel" 686-class) >>> 1.80 GHz >>> cpu3: >>> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,LAHF,PERF >>> ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins >>> ioapic0: misconfigured as apic 1, remapped to apid 4 >>> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255 >>> acpihpet0 at acpi0: 14318179 Hz >>> acpiprt0 at acpi0: bus 0 (PCI0) >>> acpiprt1 at acpi0: bus 5 (P0P1) >>> acpiprt2 at acpi0: bus 1 (P0P4) >>> acpiprt3 at acpi0: bus 2 (P0P5) >>> acpiprt4 at acpi0: bus 3 (P0P6) >>> acpiprt5 at acpi0: bus 4 (P0P7) >>> acpiprt6 at acpi0: bus -1 (P0P8) >>> acpiprt7 at acpi0: bus -1 (P0P9) >>> acpicpu0 at acpi0 >>> acpicpu1 at acpi0 >>> acpicpu2 at acpi0 >>> acpicpu3 at acpi0 >>> acpibtn0 at acpi0: SLPB >>> acpibtn1 at acpi0: PWRB >>> bios0: ROM list: 0xc0000/0xda00! 0xce000/0x3000! >>> pci0 at mainbus0 bus 0: configuration mode 1 (bios) >>> pchb0 at pci0 dev 0 function 0 "Intel Pineview DMI" rev 0x02 >>> vga1 at pci0 dev 2 function 0 "Intel Pineview Video" rev 0x02 >>> intagp0 at vga1 >>> agp0 at intagp0: aperture at 0xd0000000, size 0x10000000 >>> inteldrm0 at vga1 >>> drm0 at inteldrm0 >>> inteldrm0: 1280x720 >>> wsdisplay0 at vga1 mux 1: console (std, vt100 emulation) >>> wsdisplay0: screen 1-5 added (std, vt100 emulation) >>> "Intel Pineview Video" rev 0x02 at pci0 dev 2 function 1 not >>> configured >>> azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: >>> msi >>> azalia0: codecs: Realtek ALC662 >>> audio0 at azalia0 >>> ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 4 >>> int 16 >>> pci1 at ppb0 bus 1 >>> jmb0 at pci1 dev 0 function 0 "JMicron JMB363 IDE/SATA" rev 0x03 >>> ahci0 at jmb0: apic 4 int 16, AHCI 1.0 >>> scsibus1 at ahci0: 32 targets >>> pciide0 at jmb0: DMA, channel 0 wired to native-PCI, channel 1 wired >>> to native-PCI >>> pciide0: using apic 4 int 16 for native-PCI interrupt >>> pciide0: channel 0 disabled (no drives) >>> pciide0: channel 1 disabled (no drives) >>> ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 4 >>> int 17 >>> pci2 at ppb1 bus 2 >>> mskc0 at pci2 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x20, >>> Yukon-2 EC rev. A3 (0x2): apic 4 int 17 >>> msk0 at mskc0 port A: address 00:50:43:00:45:3e >>> eephy0 at msk0 phy 0: 88E1111 Gigabit PHY, rev. 2 >>> ppb2 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 4 >>> int 18 >>> pci3 at ppb2 bus 3 >>> mskc1 at pci3 dev 0 function 0 "Marvell Yukon 88E8053" rev 0x20, >>> Yukon-2 EC rev. A3 (0x2): apic 4 int 18 >>> msk1 at mskc1 port A: address 00:50:43:00:45:3e >>> eephy1 at msk1 phy 0: 88E1111 Gigabit PHY, rev. 2 >>> ppb3 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x02: apic 4 >>> int 19 >>> pci4 at ppb3 bus 4 >>> athn0 at pci4 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 4 int >>> 19 >>> athn0: AR9285 rev 2 (1T1R), ROM rev 13, address 48:5d:60:7c:e4:10 >>> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 4 >>> int 23 >>> uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 4 >>> int 19 >>> uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 4 >>> int 18 >>> uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 4 >>> int 16 >>> ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 4 >>> int 23 >>> usb0 at ehci0: USB revision 2.0 >>> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 >>> ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2 >>> pci5 at ppb4 bus 5 >>> re0 at pci5 dev 11 function 0 "Realtek 8169SC" rev 0x10: >>> RTL8169/8110SCd (0x1800), apic 4 int 16, address 00:01:2e:33:59:80 >>> rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 >>> pcib0 at pci0 dev 31 function 0 "Intel NM10 LPC" rev 0x02 >>> ahci1 at pci0 dev 31 function 2 "Intel 82801GR AHCI" rev 0x02: msi, >>> AHCI 1.1 >>> scsibus2 at ahci1: 32 targets >>> cd0 at scsibus2 targ 1 lun 0: <PIONEER, DVD RW DVR-106D, 1.07> ATAPI >>> 5/cdrom removable >>> ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: >>> apic 4 int 19 >>> iic0 at ichiic0 >>> iic0: addr 0x4e 00=12 03=48 04=48 12=ff 13=0f 26=03 28=83 29=12 2a=12 >>> 2b=28 words 00=1200 01=0000 02=0048 03=4848 04=4800 05=0000 06=0000 >>> 07=0000 >>> spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5 >>> spdmem1 at iic0 addr 0x51: 2GB DDR2 SDRAM non-parity PC2-6400CL5 >>> usb1 at uhci0: USB revision 1.0 >>> uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 >>> usb2 at uhci1: USB revision 1.0 >>> uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 >>> usb3 at uhci2: USB revision 1.0 >>> uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 >>> usb4 at uhci3: USB revision 1.0 >>> uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1 >>> isa0 at pcib0 >>> isadma0 at isa0 >>> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo >>> pckbc0 at isa0 port 0x60/5 >>> pckbd0 at pckbc0 (kbd slot) >>> pckbc0: using irq 1 for kbd slot >>> wskbd0 at pckbd0: console keyboard, using wsdisplay0 >>> pcppi0 at isa0 port 0x61 >>> spkr0 at pcppi0 >>> lpt0 at isa0 port 0x378/4 irq 7 >>> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 >>> fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 >>> uhub5 at uhub0 port 6 "Genesys Logic USB2.0 Hub" rev 2.00/77.32 addr >>> 2 >>> umass0 at uhub3 port 1 configuration 1 interface 0 "MEDION Medion >>> Flash XL V3.1A" rev 1.10/3.1a addr 2 >>> umass0: using SCSI over Bulk-Only >>> scsibus3 at umass0: 2 targets, initiator 0 >>> sd0 at scsibus3 targ 1 lun 0: <Medion, Flash XL CF, 3.1A> SCSI0 >>> 0/direct removable >>> sd0: 15296MB, 512 bytes/sector, 31326208 sectors >>> sd1 at scsibus3 targ 1 lun 1: <Medion, Flash XL MS, 3.1A> SCSI0 >>> 0/direct removable >>> sd2 at scsibus3 targ 1 lun 2: <Medion, Flash XL MMC/SD, 3.1A> SCSI0 >>> 0/direct removable >>> sd3 at scsibus3 targ 1 lun 3: <Medion, Flash XL SM, 3.1A> SCSI0 >>> 0/direct removable >>> vscsi0 at root >>> scsibus4 at vscsi0: 256 targets >>> softraid0 at root >>> scsibus5 at softraid0: 256 targets >>> root on sd0a (711c9109d47c2152.a) swap on sd0b dump on sd0b >>> WARNING: / was not properly unmounted >>> >> >> >> hi >> >> some news for me ? >> >> >> holger > > > Hi, > > some questions regarding your setup (might help in diagnosing) > * do you have a default gateway on rdomain 0 ? > * where is the IP you're redirecting to attached (interface vether, lo > etc)? > > As a side-note we seem to have experienced a similar behavior. In our > case the final destination was a loopback interface (lo1 with mtu > 32768). Lowering this value worked for us. > > I hope this helps, > > Pantelis > >
hi question a: yes there is. coming from my second line ( cable provider set by dhclient ) see below my routing table. question b: end is vether0 , this is member of bridge0 see below config bridge0 an vether0 ( i remove from vether0 just the lines for the ipv6 addr. ) i try clue in the afternoon. holger ~ >route -n -T 0 show | more Routing tables Internet: Destination Gateway Flags Refs Use Mtu Prio Iface default 84.118.152.1 UGS 76 1754186 - 8 vlan5 84.118.152/21 link#10 UC 1 0 - 4 vlan5 84.118.152.1 c4:64:13:f9:cc:d9 UHLc 1 0 - 4 vlan5 84.118.156.226 00:50:43:00:45:3e UHLl 0 0 - 1 lo0 84.118.159.255 link#10 UHLb 0 0 - 1 vlan5 127/8 127.0.0.1 UGRS 0 0 32768 8 lo0 127.0.0.1 127.0.0.1 UHl 2 144505 32768 1 lo0 192.168.0.0/30 link#1 UC 0 0 - 4 msk0 192.168.0.2 00:50:43:00:45:3e HLl 0 0 - 1 lo0 192.168.0.3 link#1 UHLb 0 0 - 1 msk0 192.168.131/24 link#9 UC 5 0 - 4 vether0 192.168.131.101 e8:03:9a:b4:f6:48 UHLc 0 340663 - 4 vether0 192.168.131.103 link#9 UHLc 1 9855 - 4 vether0 192.168.131.104 f4:6d:04:73:bd:dd UHLc 1 49189 - 4 vether0 192.168.131.151 60:45:bd:c8:f3:7f UHLc 0 71500 - 4 vether0 192.168.131.248 f0:9e:63:93:1d:ef UHLc 1 329 - 4 vether0 192.168.131.250 fe:e1:ba:d0:68:cc UHLl 0 0 - 1 lo0 192.168.131.255 link#9 UHLb 0 0 - 1 vether0 192.168.132/24 link#3 UC 2 0 - 4 athn0 192.168.132.2 link#3 UHLc 1 4334 - 4 athn0 192.168.132.4 30:a8:db:63:55:a5 UHLc 1 3518 - 4 athn0 192.168.132.253 48:5d:60:7c:e4:10 UHLl 0 0 - 1 lo0 192.168.132.255 link#3 UHLb 0 0 - 1 athn0 # cat /etc/hostname.vether0 inet 192.168.131.250 255.255.255.0 NONE inet6 autoconf # cat /etc/hostname.bridge0 add vether0 add re0 add vlan55 spanpriority 20480 up