[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pf rdr problem with port ranges in -current (and ahc success report)

It seems -current built last night no longer accepts port ranges with
rdr rules. Here's the error message:

# pfctl -f /etc/pf.conf
/etc/pf.conf:11: unknown protocol 50500:50600

and the offending pf rule:
rdr on tun0 inet proto tcp from any to (tun0) port 50500:50600 -> port 50500:*

rdr rules with just one port are fine, the following rule loads without
a hitch:
rdr on tun0 inet proto tcp from any to (tun0) port 21 ->

tun0 is the external interface here.

I checked the manpage but the syntax should be correct. System is i386
-current with sources from less then 20hours ago. The previous build was
more than a month ago. Any further info can be provided as well.

Perhaps this is a valid target for a regress test (rdr is tested, but
not with port ranges)?

And as a side note, the new ahc driver works like a charm on this box,
with the previous "new" ahc driver it used to crash during boot. dmesg

OpenBSD 3.1-current (GENERIC) #0: Fri Aug  2 10:49:58 CEST 2002
cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class, 128KB L2
cache) 808 MHz
real mem  = 266883072 (260628K)
avail mem = 241537024 (235876K)
using 3283 buffers containing 13447168 bytes (13132K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(83) BIOS, date 08/03/01, BIOS32 rev. 0 @
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x1422
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf1360/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB PCI-ISA" rev
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xc000 0xcc000/0x5800 0xd4000/0x2000
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82815 Hub" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82815 Graphics" rev 0x02: aperture
at 0xf8000000, size 0x4000000
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb0 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0x02
pci1 at ppb0 bus 1
ahc1 at pci1 dev 9 function 0 "Adaptec AHA-2940U2 U2" rev 0x00: irq 3
ahc1: aic7890/91: Ultra2 Wide Channel A, SCSI Id=7, 32/255 SCBs
scsibus0 at ahc1: 16 targets
ahc1: target 0 synchronous at 40.0MHz, offset = 0x1f
ahc1: target 0 using tagged queuing
sd0 at scsibus0 targ 0 lun 0: <WDIGTL, WDE9150 ULTRA2, 1.20> SCSI2
0/direct fixed
sd0: 8727MB, 13614 cyl, 4 head, 328 sec, 512 bytes/sec, 17873040 sec
ahc1: target 4 synchronous at 40.0MHz, offset = 0x1f
ahc1: target 4 using tagged queuing
sd1 at scsibus0 targ 4 lun 0: <IBM, DNES-309170W, SA30> SCSI3 0/direct
sd1: 8748MB, 11474 cyl, 5 head, 312 sec, 512 bytes/sec, 17916240 sec
ahc1: target 6 synchronous at 40.0MHz, offset = 0x3f
ahc1: target 6 using tagged queuing
sd2 at scsibus0 targ 6 lun 0: <QUANTUM, ATLAS_V__9_WLS, 0230> SCSI3
0/direct fixed
sd2: 8755MB, 20907 cyl, 2 head, 428 sec, 512 bytes/sec, 17930694 sec
ahc1: target 8 synchronous at 40.0MHz, offset = 0x1f
ahc1: target 8 using tagged queuing
sd3 at scsibus0 targ 8 lun 0: <WDIGTL, WDE18300 ULTRA2, 1.30> SCSI2
0/direct fixed
sd3: 17461MB, 9942 cyl, 12 head, 299 sec, 512 bytes/sec, 35761710 sec
pciide0 at pci1 dev 10 function 0 "Promise PDC20262" rev 0x01: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using irq 7 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <WDC AC418000D>
wd0: 16-sector PIO, LBA, 17206MB, 16383 cyl, 16 head, 63 sec, 35239680
wd1 at pciide0 channel 0 drive 1: <ST328040A>
wd1: 16-sector PIO, LBA, 27199MB, 16383 cyl, 16 head, 63 sec, 55704096
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
wd2 at pciide0 channel 1 drive 0: <WDC AC420400D>
wd2: 16-sector PIO, LBA, 19470MB, 16383 cyl, 16 head, 63 sec, 39876480
wd3 at pciide0 channel 1 drive 1: <ST328040A>
wd3: 16-sector PIO, LBA, 27199MB, 16383 cyl, 16 head, 63 sec, 55704096
wd2(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
wd3(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 4
rl0 at pci1 dev 11 function 0 "Realtek 8139" rev 0x10: irq 5 address
rlphy0 at rl0 phy 0: RTL internal phy
ne3 at pci1 dev 12 function 0 "Realtek 8029" rev 0x00: irq 4
ne3: address 52:54:05:c0:4c:2f
pcib0 at pci0 dev 31 function 0 "Intel 82801BA LPC" rev 0x02
pciide1 at pci0 dev 31 function 1 "Intel 82801BA IDE" rev 0x02: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
"Intel 82801BA SMBus" rev 0x02 at pci0 dev 31 function 3 not configured
isa0 at pcib0
isadma0 at isa0
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
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask c8 netmask f8 ttymask fa
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: sd0 matched BIOS disk 80
dkcsum: sd1 matched BIOS disk 81
dkcsum: sd2 matched BIOS disk 82
dkcsum: sd3 matched BIOS disk 83
dkcsum: wd0 matched BIOS disk 84
dkcsum: wd1 matched BIOS disk 85
dkcsum: wd2 matched BIOS disk 86
dkcsum: wd3 matched BIOS disk 87
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02

// nick

Visit your host, monkey.org