ipv6 static routing

2013-12-08 Thread dikshie
Hi,
I have an openbsd box with two interface.

# cat /etc/hostname.vio0
inet 202.249.25.29 255.255.255.224

# cat /etc/mygate
202.249.25.1

# cat /etc/hostname.vio1
inet6 2001:d30:101:624::64 64
!route -n add -inet6 default FE80::21B:2AFF:FEE2:A4C0%vio1


my goal:
ipv4 routing should go via interface vio0 with default gateway 202.249.25.1
and ipv6 routing should go via interface vio1 with default gateway
FE80::21B:2AFF:FEE2:A4C0%vio1

while IPv4 is working fine, IPv6 does not work as expected.

here's the IPv6 routing table
Internet6:
DestinationGateway
Flags   Refs  Use   Mtu  Prio Iface
::/104 ::1UGRS
  00 - 8 lo0
::/96  ::1UGRS
  00 - 8 lo0
defaultfe80::21b:2aff:fee2:a4c0%vio1  US
  0   75 - 8 vio1


# ndp -a
Neighbor Linklayer Address  Netif ExpireS Flags
2001:d30:101:624::64 0:16:3e:e3:6:de vio1 permanent R
fe80::216:3eff:fe5d:cb31%vio00:16:3e:5d:cb:31vio0 permanent R
fe80::216:3eff:fee3:6de%vio1 0:16:3e:e3:6:de vio1 permanent R
fe80::21b:2aff:fee2:a4c0%vio10:1b:2a:e2:a4:c0vio1 2sD R
fe80::1%lo0  (incomplete) lo0 permanent R


do I miss something here?

thanks!
-- 
-dikshie-



www problem in undeadly.org

2013-12-08 Thread Fung
http://undeadly.org/
in section 
OpenBSD Errata

month is incorrect!

they said

2013-13-07  001 RELIABILITY A crash can happen on pflow(4) interface 
destruction.
2013-13-07  002 SECURITY A memory corruption vulnerability exists in the 
post-authentication sshd process when an AES-GCM cipher (aes128-...@openssh.com 
or aes256-...@openssh.com) is selected during kex exchange. Review the gcmrekey 
advisory for a mitigation.
2013-13-11  003 RELIABILITY An unprivileged user may hang the system.
2013-13-21  004 SECURITY A problem exists in nginx(8) which might allow an 
attacker to bypass security restrictions in certain configurations by using a 
specially crafted request. This issue was assigned CVE-2013-4547.



loongson:automatic loading of OpenBSD:YES to 8G ssd No for 500G disk

2013-12-08 Thread f5b
http://ftp.openbsd.org/pub/OpenBSD/5.4/loongson/INSTALL.loongson

---

To overcome this annoyance, simply change the `moresz' environment
variable to a large value (30 or larger will do):

PMON set moresz 30

The bootloader will attempt to load the kernel file set in the `bsd'
environment variable. Should this fail, it will wait for user
commands. The value of `bsd' should be a path within the OpenBSD
root filesystem on the disk, such as:

PMON set bsd /bsd

If you have removed the Linux installation or if you do not want to
use the boot menu, you may simply disable it in the environment, and
set the `al' variable to point to the bootloader path:

PMON set ShowBootMenu no
PMON set al /dev/fs/ext2@wd0/boot/boot
automatic loading of OpenBSD binaries is ok.

2. change the disk to Seagate 500g disk, install  5.4 release  with same 
settings.
1)when power up the notebook, system will hung in the splash screen (Press Tab 
to recover | Press Del to setup)
now hit Del, can not enter PMON prompt(nothing happend)

2)if power up the notebook and Press Del immediately, 
monitor will show
BEV in SR set to zero.
PMON

now boot /dev/fs/ext2@wd0/boot/boot  ok

--dmesg-
[ using 476376 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.4 (GENERIC) #29: Tue Jul 30 22:12:34 MDT 2013
dera...@loongson.openbsd.org:/usr/src/sys/arch/loongson/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1058979840 (1009MB)
mainbus0 at root: Lemote Yeeloong
cpu0 at mainbus0: STC Loongson2F CPU 796 MHz, STC Loongson2F FPU
cpu0: cache L1-I 64KB D 64KB 4 way, L2 512KB 4 way
bonito0 at mainbus0: memory and PCI-X controller, rev 1
pci0 at bonito0 bus 0
rl0 at pci0 dev 7 function 0 Realtek 8139 rev 0x10: irq 5, address 
00:23:8b:b5:35:9e
rlphy0 at rl0 phy 0: RTL internal PHY
smfb0 at pci0 dev 8 function 0 Silicon Motion LynxEM+ rev 0xb0
wsdisplay0 at smfb0 mux 1: console (std, vt100 emulation)
ohci0 at pci0 dev 9 function 0 NEC USB rev 0x44: irq 7, version 1.0
ehci0 at pci0 dev 9 function 1 NEC USB rev 0x05: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NEC EHCI root hub rev 2.00/1.00 addr 1
glxpcib0 at pci0 dev 14 function 0 AMD CS5536 ISA rev 0x03: rev 3, 32-bit 
3579545Hz timer, watchdog, gpio, i2c
isa0 at glxpcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
mcclock0 at isa0 port 0x70/2: mc146818 or compatible
ykbec0 at isa0 port 0x381/3
gpio1 at glxpcib0: 32 pins
iic at glxpcib0 not configured
glxclk0 at glxpcib0: clock, prof
pciide0 at pci0 dev 14 function 2 AMD CS5536 IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: ST9500325AS
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
auglx0 at pci0 dev 14 function 3 AMD CS5536 Audio rev 0x01: isa irq 9, CS5536 
AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auglx0
ohci1 at pci0 dev 14 function 4 AMD CS5536 USB rev 0x02: isa irq 11, version 
1.0, legacy support
ehci1 at pci0 dev 14 function 5 AMD CS5536 USB rev 0x02: isa irq 11
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 AMD EHCI root hub rev 2.00/1.00 addr 1
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 NEC OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 AMD OHCI root hub rev 1.00/1.00 addr 1
apm0 at mainbus0
umass0 at uhub1 port 1 configuration 1 interface 0 Generic USB2.0-CRW rev 
2.00/58.87 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: Generic-, Multi-Card, 1.00 SCSI0 0/direct 
removable serial.0bda015811417340
urtw0 at uhub1 port 4 Realtek RTL8187B rev 2.00/2.00 addr 3
urtw0: RTL8187B rev E, address 00:17:c4:5a:19:d7
uhidev0 at uhub3 port 3 configuration 1 interface 0 Dell Dell USB Keyboard 
rev 1.10/3.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
pmon bootpath: /dev/disk/wd0
boot device: wd0
root on wd0a (12e4475847814fad.a) swap on wd0b dump on wd0b



Re: ipv6 static routing

2013-12-08 Thread Marios Makassikis
Your /etc/mygate file can look like this :

# cat /etc/mygate
202.249.25.1
FE80::21B:2AFF:FEE2:A4C0%vio1

Make sure you have net.inet6.ip6.forwarding=1 in /etc/sysctl.conf

On 8 December 2013 09:59, dikshie diks...@gmail.com wrote:
 Hi,
 I have an openbsd box with two interface.

 # cat /etc/hostname.vio0
 inet 202.249.25.29 255.255.255.224

 # cat /etc/mygate
 202.249.25.1

 # cat /etc/hostname.vio1
 inet6 2001:d30:101:624::64 64
 !route -n add -inet6 default FE80::21B:2AFF:FEE2:A4C0%vio1


 my goal:
 ipv4 routing should go via interface vio0 with default gateway 202.249.25.1
 and ipv6 routing should go via interface vio1 with default gateway
 FE80::21B:2AFF:FEE2:A4C0%vio1

 while IPv4 is working fine, IPv6 does not work as expected.

 here's the IPv6 routing table
 Internet6:
 DestinationGateway
 Flags   Refs  Use   Mtu  Prio Iface
 ::/104 ::1UGRS
   00 - 8 lo0
 ::/96  ::1UGRS
   00 - 8 lo0
 defaultfe80::21b:2aff:fee2:a4c0%vio1  US
   0   75 - 8 vio1


 # ndp -a
 Neighbor Linklayer Address  Netif ExpireS 
 Flags
 2001:d30:101:624::64 0:16:3e:e3:6:de vio1 permanent R
 fe80::216:3eff:fe5d:cb31%vio00:16:3e:5d:cb:31vio0 permanent R
 fe80::216:3eff:fee3:6de%vio1 0:16:3e:e3:6:de vio1 permanent R
 fe80::21b:2aff:fee2:a4c0%vio10:1b:2a:e2:a4:c0vio1 2sD R
 fe80::1%lo0  (incomplete) lo0 permanent R


 do I miss something here?

 thanks!
 --
 -dikshie-



Re: loongson:automatic loading of OpenBSD:YES to 8G ssd No for 500G disk

2013-12-08 Thread f5b
@163.com server eat some lines of my original email
full message should be--

http://ftp.openbsd.org/pub/OpenBSD/5.4/loongson/INSTALL.loongson

---

To overcome this annoyance, simply change the `moresz' environment
variable to a large value (30 or larger will do):

PMON set moresz 30

The bootloader will attempt to load the kernel file set in the `bsd'
environment variable. Should this fail, it will wait for user
commands. The value of `bsd' should be a path within the OpenBSD
root filesystem on the disk, such as:

PMON set bsd /bsd

If you have removed the Linux installation or if you do not want to
use the boot menu, you may simply disable it in the environment, and
set the `al' variable to point to the bootloader path:

PMON set ShowBootMenu no
PMON set al /dev/fs/ext2@wd0/boot/boot
automatic loading of OpenBSD binaries is ok.

2. change the disk to Seagate 500g disk, install  5.4 release  with same 
settings.
1)when power up the notebook, system will hung in the splash screen (Press Tab 
to recover | Press Del to setup)
now hit Del, can not enter PMON prompt(nothing happend)

2)if power up the notebook and Press Del immediately, 
monitor will show
BEV in SR set to zero.
PMON

now boot /dev/fs/ext2@wd0/boot/boot  ok

--dmesg-
[ using 476376 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.4 (GENERIC) #29: Tue Jul 30 22:12:34 MDT 2013
dera...@loongson.openbsd.org:/usr/src/sys/arch/loongson/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1058979840 (1009MB)
mainbus0 at root: Lemote Yeeloong
cpu0 at mainbus0: STC Loongson2F CPU 796 MHz, STC Loongson2F FPU
cpu0: cache L1-I 64KB D 64KB 4 way, L2 512KB 4 way
bonito0 at mainbus0: memory and PCI-X controller, rev 1
pci0 at bonito0 bus 0
rl0 at pci0 dev 7 function 0 Realtek 8139 rev 0x10: irq 5, address 
00:23:8b:b5:35:9e
rlphy0 at rl0 phy 0: RTL internal PHY
smfb0 at pci0 dev 8 function 0 Silicon Motion LynxEM+ rev 0xb0
wsdisplay0 at smfb0 mux 1: console (std, vt100 emulation)
ohci0 at pci0 dev 9 function 0 NEC USB rev 0x44: irq 7, version 1.0
ehci0 at pci0 dev 9 function 1 NEC USB rev 0x05: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NEC EHCI root hub rev 2.00/1.00 addr 1
glxpcib0 at pci0 dev 14 function 0 AMD CS5536 ISA rev 0x03: rev 3, 32-bit 
3579545Hz timer, watchdog, gpio, i2c
isa0 at glxpcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
mcclock0 at isa0 port 0x70/2: mc146818 or compatible
ykbec0 at isa0 port 0x381/3
gpio1 at glxpcib0: 32 pins
iic at glxpcib0 not configured
glxclk0 at glxpcib0: clock, prof
pciide0 at pci0 dev 14 function 2 AMD CS5536 IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: ST9500325AS
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
auglx0 at pci0 dev 14 function 3 AMD CS5536 Audio rev 0x01: isa irq 9, CS5536 
AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auglx0
ohci1 at pci0 dev 14 function 4 AMD CS5536 USB rev 0x02: isa irq 11, version 
1.0, legacy support
ehci1 at pci0 dev 14 function 5 AMD CS5536 USB rev 0x02: isa irq 11
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 AMD EHCI root hub rev 2.00/1.00 addr 1
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 NEC OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 AMD OHCI root hub rev 1.00/1.00 addr 1
apm0 at mainbus0
umass0 at uhub1 port 1 configuration 1 interface 0 Generic USB2.0-CRW rev 
2.00/58.87 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: Generic-, Multi-Card, 1.00 SCSI0 0/direct 
removable serial.0bda015811417340
urtw0 at uhub1 port 4 Realtek RTL8187B rev 2.00/2.00 addr 3
urtw0: RTL8187B rev E, address 00:17:c4:5a:19:d7
uhidev0 at uhub3 port 3 configuration 1 interface 0 Dell Dell USB Keyboard 
rev 1.10/3.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
pmon bootpath: /dev/disk/wd0
boot device: wd0
root on wd0a (12e4475847814fad.a) swap on wd0b dump on wd0b



Re: pf: bad icmp packet checksums on vlans when natted to own network address

2013-12-08 Thread Walter Haidinger
Am 2013-12-06 20:54, schrieb Lawrence Teo:
 
 On Sat, Nov 23, 2013 at 08:31:56PM +0100, Walter Haidinger wrote:
 Am 2013-11-23 17:41, schrieb mxb:

 http://marc.info/?l=openbsd-techm=138493672609487w=2

 This one might help?

 Thanks for the reference but no, unfortunately not.
 Applied the patch the issue remains.
 
 The above diff won't work on 5.4 because it depends on some significant
 post-5.4 changes in the way checksumming is done.

Ok, thanks. Should have anticipated that, though.

 Can you please try this one instead?
 
 http://marc.info/?l=openbsd-techm=137571298511653w=2

No, unfortunately no change. Still can't ping _from_ the machine
any machine on the same VLAN network with match out ... to any 

However, there seems to be a more severe problem with VLANs and NAT.
I'm going to add new thread because the topic is way more general.

Best Regards,
Walter



natting vlans broken? (was: pf: bad icmp packet checksums on vlans when natted to own network address)

2013-12-08 Thread Walter Haidinger
Am 2013-11-23 16:32, schrieb Walter Haidinger:
 Since moving to OpenBSD 5.4/i386, I noticed that I cannot ping
 some hosts on my vlan2. tcpdump on the receiving machines show
 icmp  echo-requests having a bad checksum.
 
 I've managed to trace down the problem to the following pf rule:
 match out quick on vlan2 from (vlan2:network) to any nat-to (vlan2)
 
 The checksum mangling only occurs to packets when the _own_ network
 is natted, i.e. no nat or the following rule makes everything work:
 match out quick on vlan2 from (vlan2:network) to ! (vlan2:network) nat-to 
 (vlan2)
 So far, I've only found icmp packets (tried only icmp echo-requests)
 to have bad checksums. No problems with tcp or udp traffic.

Unfortunately this isn't quite true. Well, only on the machine itself.

However, NAT on any vlan seems to be broken with OpenBSD 5.4.
Using the simple pf rules:
  match out on re0 from any to any nat-to (re0)
  pass in quick on vlan2 all

Should enable NAT on vlan2 (parent is re0, states floating), right?
Turns out it doesn't work at all (no outbound connection possible).
If I use a non-vlan IP, there is no problem.

Is this reproducible by someone?

Best Regards,
Walter



Keeping OpenBSD up2date

2013-12-08 Thread Lars Bonnesen
I like OpenBSD for it's easiness, straight forwardness and simpleness on
daily usage. Unfortunately with the last releases, I find keeping OpenBSD
up2date between releases to be confusing. Please help me on this one:

Well... I have been quite happy using cvsup to keep my src and ports
up2date, but it seems that this is getting quite impossible to use lately,
as the servers I normally use to pull from seem to block cvsup. )-:

Then I read that cvsync seem to be the way to go... although I can't get it
to work proberly.

I follow http://www.openbsd.org/cvsync.html and I am able to pull a
repository (size 5.2G)

Then I am going to pull the patch branch (well using cvsup, I normally go
for current), and I do:

# cd /usr
# cvs -d/cvs checkout -P src

It works... I am getting what looks to be update source files. I find the
changes of
http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/002_sshgcm.patch in
monitor_wrap.c

Then I going to compile from source (system is i386) by doing:

# cd /usr/src/sys/arch/i386/conf # config GENERIC # cd ../compile/GENERIC #
make clean  make # make install

Well... it looks to be going fine... not noticing any errors at least, and
I can find the new kernel /bsd. But...

Rebooting... and the system ends in limbo-mode.

I have to boot doing b /obsd

I can't figure out where the process goes wrong. Anyone?

Regards, Lars.



Re: samba and e2fsprogs packages -- 5.4

2013-12-08 Thread Stuart Henderson
On 2013-12-04, Brad Smith b...@comstyle.com wrote:
 On 04/12/13 4:44 PM, Vadim Zhukov wrote:
 2013/12/5 Peter Fraser p...@thinkage.ca:
 samba required the e2fsprogs package. The problem occurs when trying to use 
 samba's net command.
 The net command requires libuuid.
   It was not easy to find where libuuid was located.

 pkg_locate libuuid.so - no?

 Even if that tool was installed that would not locate anything
 if the package in question is not already installed, right?


pkglocate is just a simple shell script which uses locate(1) on a database
built with pkg_mklocatedb(1) as part of a ports build, which includes files
from every port, not just those which are installed, e.g.

$ pkglocate libuuid.so   
e2fsprogs-1.42.7p0:sysutils/e2fsprogs:/usr/local/lib/libuuid.so.14.0
fedora_base-10.0p1:emulators/fedora/base:/usr/local/emul/fedora/lib/libuuid.so.1
fedora_base-10.0p1:emulators/fedora/base:/usr/local/emul/fedora/lib/libuuid.so.1.2

$ ls -l /var/db/pkg/fedora*  
ls: /var/db/pkg/fedora*: No such file or directory



Re: Setting quotas on multiple users

2013-12-08 Thread Stuart Henderson
On 2013-12-04, Cyrus cyrus_the_gr...@riseup.net wrote:
 On 05/12/13 00:38, Otto Moerbeek wrote:
 On Wed, Dec 04, 2013 at 11:56:31PM +1100, Cyrus wrote:
 
 I have enabled quotas on my system a bit late. I am hoping someone could
 provide me with a script that could set the quotas for multiple users. I
 really don't want to have to go through users one by one and enable
 quotas it will take forever.
 
 I guess the answer is in the man page of edquota.
 
 edquota -p user user1 user2 user3...
 
  -Otto

 That is equally as painful as what I didn't want to do. I still have to
 edit each quota manually. Surely this can be scripted?

I think you're missing the -p flag.



Re: DNS problem

2013-12-08 Thread Chris Smith
Turns out the problem was with the Internet Guide service. If the IP
address from which the query was sent was on the subscriber list then
the incorrect info was sent. That's why it worked from one of my
networks but not the others.

Thanks to all.

Chris



Re: ipv6 static routing

2013-12-08 Thread dikshie
On Sun, Dec 8, 2013 at 10:14 PM, Marios Makassikis
mmakassi...@gmail.com wrote:
 Your /etc/mygate file can look like this :

 # cat /etc/mygate
 202.249.25.1
 FE80::21B:2AFF:FEE2:A4C0%vio1
 Make sure you have net.inet6.ip6.forwarding=1 in /etc/sysctl.conf

same result with previous one.

# ndp -a
Neighbor Linklayer Address  Netif ExpireS Flags
2001:d30:101:624::64 0:16:3e:65:2b:b vio1 permanent R
fe80::216:3eff:fe1b:ac9c%vio00:16:3e:1b:ac:9cvio0 permanent R
fe80::216:3eff:fe65:2b0b%vio10:16:3e:65:2b:b vio1 permanent R
fe80::21b:2aff:fee2:a4c0%vio10:1b:2a:e2:a4:c0vio1 23h58m10s S R
fe80::1%lo0  (incomplete) lo0 permanent R

# sysctl -a |grep forward
net.inet.ip.forwarding=1
net.inet.ip.mforwarding=0
net.inet6.ip6.forwarding=1
net.inet6.ip6.mforwarding=0

# route -n show -inet6
Routing tables
Internet6:
DestinationGateway
Flags   Refs  Use   Mtu  Prio Iface
::/104 ::1UGRS
  00 - 8 lo0
::/96  ::1UGRS
  00 - 8 lo0
defaultfe80::21b:2aff:fee2:a4c0%vio1  UGS
  02 - 8 vio1
::1::1UH
 140 33144 4 lo0
::127.0.0.0/104::1UGRS
  00 - 8 lo0
::224.0.0.0/100::1UGRS
  00 - 8 lo0
::255.0.0.0/104::1UGRS
  00 - 8 lo0
:::0.0.0.0/96  ::1UGRS
  00 - 8 lo0
2001:d30:101:624::/64  link#2 UC
  00 - 4 vio1

# ifconfig vio0
vio0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:16:3e:1b:ac:9c
priority: 0
groups: egress
media: Ethernet autoselect
status: active
inet 202.249.25.29 netmask 0xffe0 broadcast 202.249.25.31
inet6 fe80::216:3eff:fe1b:ac9c%vio0 prefixlen 64 scopeid 0x1

# ifconfig vio1
vio1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:16:3e:65:2b:0b
priority: 0
groups: egress
media: Ethernet autoselect
status: active
inet6 2001:d30:101:624::64 prefixlen 64
inet6 fe80::216:3eff:fe65:2b0b%vio1 prefixlen 64 scopeid 0x2

# traceroute6 -n www.google.com
traceroute6 to www.google.com (2404:6800:4001:c01::6a) from
2001:d30:101:624::64, 64 hops max, 12 byte packets
 1  * * *
 2  * * *
^C
#

thanks!



Re: ipv6 static routing

2013-12-08 Thread Marios Makassikis
Is PF enabled ? If so, perhaps your current rules are IPv4 only.
Can you ping6 from this host ?

On 8 December 2013 17:00, dikshie diks...@gmail.com wrote:
 On Sun, Dec 8, 2013 at 10:14 PM, Marios Makassikis
 mmakassi...@gmail.com wrote:
 Your /etc/mygate file can look like this :

 # cat /etc/mygate
 202.249.25.1
 FE80::21B:2AFF:FEE2:A4C0%vio1
 Make sure you have net.inet6.ip6.forwarding=1 in /etc/sysctl.conf

 same result with previous one.

 # ndp -a
 Neighbor Linklayer Address  Netif ExpireS 
 Flags
 2001:d30:101:624::64 0:16:3e:65:2b:b vio1 permanent R
 fe80::216:3eff:fe1b:ac9c%vio00:16:3e:1b:ac:9cvio0 permanent R
 fe80::216:3eff:fe65:2b0b%vio10:16:3e:65:2b:b vio1 permanent R
 fe80::21b:2aff:fee2:a4c0%vio10:1b:2a:e2:a4:c0vio1 23h58m10s S R
 fe80::1%lo0  (incomplete) lo0 permanent R

 # sysctl -a |grep forward
 net.inet.ip.forwarding=1
 net.inet.ip.mforwarding=0
 net.inet6.ip6.forwarding=1
 net.inet6.ip6.mforwarding=0

 # route -n show -inet6
 Routing tables
 Internet6:
 DestinationGateway
 Flags   Refs  Use   Mtu  Prio Iface
 ::/104 ::1UGRS
   00 - 8 lo0
 ::/96  ::1UGRS
   00 - 8 lo0
 defaultfe80::21b:2aff:fee2:a4c0%vio1  UGS
   02 - 8 vio1
 ::1::1UH
  140 33144 4 lo0
 ::127.0.0.0/104::1UGRS
   00 - 8 lo0
 ::224.0.0.0/100::1UGRS
   00 - 8 lo0
 ::255.0.0.0/104::1UGRS
   00 - 8 lo0
 :::0.0.0.0/96  ::1UGRS
   00 - 8 lo0
 2001:d30:101:624::/64  link#2 UC
   00 - 4 vio1

 # ifconfig vio0
 vio0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:16:3e:1b:ac:9c
 priority: 0
 groups: egress
 media: Ethernet autoselect
 status: active
 inet 202.249.25.29 netmask 0xffe0 broadcast 202.249.25.31
 inet6 fe80::216:3eff:fe1b:ac9c%vio0 prefixlen 64 scopeid 0x1

 # ifconfig vio1
 vio1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:16:3e:65:2b:0b
 priority: 0
 groups: egress
 media: Ethernet autoselect
 status: active
 inet6 2001:d30:101:624::64 prefixlen 64
 inet6 fe80::216:3eff:fe65:2b0b%vio1 prefixlen 64 scopeid 0x2

 # traceroute6 -n www.google.com
 traceroute6 to www.google.com (2404:6800:4001:c01::6a) from
 2001:d30:101:624::64, 64 hops max, 12 byte packets
  1  * * *
  2  * * *
 ^C
 #

 thanks!



Re: ipv6 static routing

2013-12-08 Thread dikshie
On Mon, Dec 9, 2013 at 1:38 AM, Marios Makassikis mmakassi...@gmail.com wrote:
 Is PF enabled ? If so, perhaps your current rules are IPv4 only.
 Can you ping6 from this host ?

pf is disable.


# ndp -a
Neighbor Linklayer Address  Netif ExpireS Flags
2001:d30:101:624::64 0:16:3e:65:2b:b vio1 permanent R
fe80::216:3eff:fe1b:ac9c%vio00:16:3e:1b:ac:9cvio0 permanent R
fe80::216:3eff:fe65:2b0b%vio10:16:3e:65:2b:b vio1 permanent R
fe80::21b:2aff:fee2:a4c0%vio1(incomplete)vio1 expired   N
fe80::1%lo0  (incomplete) lo0 permanent R
#


# route -n show -inet6 |grep vio1
defaultfe80::21b:2aff:fee2:a4c0%vio1  UGS
  00 - 8 vio1
2001:d30:101:624::/64  link#2 UC
  10 - 4 vio1
2001:d30:101:624::100:1b:2a:e2:a4:c0  UHLc
  04 - 4 vio1
fe80::%vio1/64 link#2 UC
  10 - 4 vio1
fe80::216:3eff:fe65:2b0b%vio1  00:16:3e:65:2b:0b  UHL
  00 - 4 lo0
fe80::21b:2aff:fee2:a4c0%vio1  00:1b:2a:e2:a4:c0  UHLc
  19 - 4 vio1
ff01::%vio1/32 link#2 UC
  00 - 4 vio1
ff02::%vio1/32 link#2 UC
  10 - 4 vio1
ff02::1:ffe2:a4c0%vio1 link#2 UHLc
  00 - 4 vio1

ping6 to gateway's link local is fine.
# ping6 fe80::21b:2aff:fee2:a4c0%vio1
PING6(56=40+8+8 bytes) fe80::216:3eff:fe65:2b0b%vio1 --
fe80::21b:2aff:fee2:a4c0%vio1
16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=0 hlim=64 time=1.811 ms
16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=1 hlim=64 time=0.912 ms
16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=2 hlim=64 time=0.948 ms
16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=3 hlim=64 time=0.883 ms
16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=4 hlim=64 time=0.938 ms
^C
--- fe80::21b:2aff:fee2:a4c0%vio1 ping6 statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.883/1.098/1.811/0.357 ms

# ping6 2001:D30:101:624::1
PING6(56=40+8+8 bytes) 2001:d30:101:624::64 -- 2001:d30:101:624::1
^C
--- 2001:D30:101:624::1 ping6 statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss



Re: ipv6 static routing

2013-12-08 Thread Marios Makassikis
On 8 December 2013 17:54, dikshie diks...@gmail.com wrote:
 On Mon, Dec 9, 2013 at 1:38 AM, Marios Makassikis mmakassi...@gmail.com 
 wrote:
 Is PF enabled ? If so, perhaps your current rules are IPv4 only.
 Can you ping6 from this host ?

 pf is disable.


 # ndp -a
 Neighbor Linklayer Address  Netif ExpireS 
 Flags
 2001:d30:101:624::64 0:16:3e:65:2b:b vio1 permanent R
 fe80::216:3eff:fe1b:ac9c%vio00:16:3e:1b:ac:9cvio0 permanent R
 fe80::216:3eff:fe65:2b0b%vio10:16:3e:65:2b:b vio1 permanent R
 fe80::21b:2aff:fee2:a4c0%vio1(incomplete)vio1 expired   N
 fe80::1%lo0  (incomplete) lo0 permanent R
 #


 # route -n show -inet6 |grep vio1
 defaultfe80::21b:2aff:fee2:a4c0%vio1  UGS
   00 - 8 vio1
 2001:d30:101:624::/64  link#2 UC
   10 - 4 vio1
 2001:d30:101:624::100:1b:2a:e2:a4:c0  UHLc
   04 - 4 vio1
 fe80::%vio1/64 link#2 UC
   10 - 4 vio1
 fe80::216:3eff:fe65:2b0b%vio1  00:16:3e:65:2b:0b  UHL
   00 - 4 lo0
 fe80::21b:2aff:fee2:a4c0%vio1  00:1b:2a:e2:a4:c0  UHLc
   19 - 4 vio1
 ff01::%vio1/32 link#2 UC
   00 - 4 vio1
 ff02::%vio1/32 link#2 UC
   10 - 4 vio1
 ff02::1:ffe2:a4c0%vio1 link#2 UHLc
   00 - 4 vio1

 ping6 to gateway's link local is fine.
 # ping6 fe80::21b:2aff:fee2:a4c0%vio1
 PING6(56=40+8+8 bytes) fe80::216:3eff:fe65:2b0b%vio1 --
 fe80::21b:2aff:fee2:a4c0%vio1
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=0 hlim=64 time=1.811 ms
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=1 hlim=64 time=0.912 ms
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=2 hlim=64 time=0.948 ms
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=3 hlim=64 time=0.883 ms
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=4 hlim=64 time=0.938 ms
 ^C
 --- fe80::21b:2aff:fee2:a4c0%vio1 ping6 statistics ---
 5 packets transmitted, 5 packets received, 0.0% packet loss
 round-trip min/avg/max/std-dev = 0.883/1.098/1.811/0.357 ms

 # ping6 2001:D30:101:624::1
 PING6(56=40+8+8 bytes) 2001:d30:101:624::64 -- 2001:d30:101:624::1
 ^C
 --- 2001:D30:101:624::1 ping6 statistics ---
 4 packets transmitted, 0 packets received, 100.0% packet loss

^^^
You can ping6 the gateway, but not a global IPv6 address. It looks
like you have IPv6
connectivity problem, and not routing/forwarding (i.e.: your gateway
or some other router
further upstream is misconfigured).



Re: Keeping OpenBSD up2date

2013-12-08 Thread Nick Holland
Short version: you are doing it wrong.

On 12/08/13 09:49, Lars Bonnesen wrote:
 I like OpenBSD for it's easiness, straight forwardness and simpleness on
 daily usage. Unfortunately with the last releases, I find keeping OpenBSD
 up2date between releases to be confusing. Please help me on this one:
 
 Well... I have been quite happy using cvsup to keep my src and ports
 up2date, but it seems that this is getting quite impossible to use lately,
 as the servers I normally use to pull from seem to block cvsup. )-:
 
 Then I read that cvsync seem to be the way to go... although I can't get it
 to work proberly.

why are you using cvsync?  Why do you want to maintain your own repository?

ok, I'm deleting the rest of this out of fear that someone else might
think this is the process.

Go read http://www.openbsd.org/faq/faq5.html
Start at the very first line, and go at least to 5.4.  Pay very very
close attention to sections 5.1, 5.2, 5.3 and 5.4.  (yes, I repeat
myself -- there's nothing in this first part you get to skip reading)

Be very careful to read (and follow) what it tells you to do, NOT what
you think it is telling you to do.  Your use of non-words like up2date
is telling me you are trying to use some other model on OpenBSD.

Nick.



Re: Keeping OpenBSD up2date

2013-12-08 Thread Alexander Hall
Lars Bonnesen lars.bonne...@gmail.com wrote:
I like OpenBSD for it's easiness, straight forwardness and simpleness
on
daily usage. Unfortunately with the last releases, I find keeping
OpenBSD
up2date between releases to be confusing. Please help me on this one:

Well... I have been quite happy using cvsup to keep my src and ports
up2date, but it seems that this is getting quite impossible to use
lately,
as the servers I normally use to pull from seem to block cvsup. )-:

Then I read that cvsync seem to be the way to go... although I can't
get it
to work proberly.

I follow http://www.openbsd.org/cvsync.html and I am able to pull a
repository (size 5.2G)

Then I am going to pull the patch branch (well using cvsup, I normally
go
for current), and I do:

# cd /usr
# cvs -d/cvs checkout -P src

Yes that gives you -current. Did you install a snapshot first? Did you read 
current.html?


It works... I am getting what looks to be update source files. I find
the
changes of
http://ftp.openbsd.org/pub/OpenBSD/patches/5.4/common/002_sshgcm.patch
in
monitor_wrap.c

Then I going to compile from source (system is i386) by doing:

# cd /usr/src/sys/arch/i386/conf # config GENERIC # cd
../compile/GENERIC #
make clean  make # make install

Well... it looks to be going fine... not noticing any errors at least,
and
I can find the new kernel /bsd. But...

Rebooting... and the system ends in limbo-mode.

Thanks for the detailed explanation.


I have to boot doing b /obsd

I can't figure out where the process goes wrong. Anyone?

Your kernel was compiled with option LIMBO set, maybe?

Provide more details.

/Alexander


Regards, Lars.



Re: Keeping OpenBSD up2date

2013-12-08 Thread Zoran Kolic
If it doesn't matter how you update the system,
much easier would be to go binary.
I pretty regurarly follow snapshots and update
from bsd.rd. Just read faqs about the subject.
Packages are also easy to update, with pkg_add.

  Zoran



spamd in blacklist only mode

2013-12-08 Thread Maurice Janssen

Hi,

If I understand the man pages correctly, you should start both spamd and 
spamd-setup with the -b option when you want to use spamd in blacklist 
only mode.
In /etc/rc.d/spamd, the -b option is set when you have spamd_black=yes 
in your rc.conf.local.
However, spamd-setup is always started with -D only from /etc/rc. It 
doesn't check for the spamd_black environment variable and therefore set -b.


So it seems that you have to adapt /etc/rc when you want to run spamd in 
blacklist only mode.


This seems a bit odd, doesn't it?  Am I missing something, or is this 
intended?


Thanks,
Maurice



Re: ipv6 static routing

2013-12-08 Thread Claudio Jeker
On Mon, Dec 09, 2013 at 01:54:56AM +0900, dikshie wrote:
 On Mon, Dec 9, 2013 at 1:38 AM, Marios Makassikis mmakassi...@gmail.com 
 wrote:
  Is PF enabled ? If so, perhaps your current rules are IPv4 only.
  Can you ping6 from this host ?
 
 pf is disable.
 
 
 # ndp -a
 Neighbor Linklayer Address  Netif ExpireS 
 Flags
 2001:d30:101:624::64 0:16:3e:65:2b:b vio1 permanent R
 fe80::216:3eff:fe1b:ac9c%vio00:16:3e:1b:ac:9cvio0 permanent R
 fe80::216:3eff:fe65:2b0b%vio10:16:3e:65:2b:b vio1 permanent R
 fe80::21b:2aff:fee2:a4c0%vio1(incomplete)vio1 expired   N
 fe80::1%lo0  (incomplete) lo0 permanent R
 #
 
 
 # route -n show -inet6 |grep vio1
 defaultfe80::21b:2aff:fee2:a4c0%vio1  UGS
   00 - 8 vio1
 2001:d30:101:624::/64  link#2 UC
   10 - 4 vio1
 2001:d30:101:624::100:1b:2a:e2:a4:c0  UHLc
   04 - 4 vio1
 fe80::%vio1/64 link#2 UC
   10 - 4 vio1
 fe80::216:3eff:fe65:2b0b%vio1  00:16:3e:65:2b:0b  UHL
   00 - 4 lo0
 fe80::21b:2aff:fee2:a4c0%vio1  00:1b:2a:e2:a4:c0  UHLc
   19 - 4 vio1
 ff01::%vio1/32 link#2 UC
   00 - 4 vio1
 ff02::%vio1/32 link#2 UC
   10 - 4 vio1
 ff02::1:ffe2:a4c0%vio1 link#2 UHLc
   00 - 4 vio1
 
 ping6 to gateway's link local is fine.
 # ping6 fe80::21b:2aff:fee2:a4c0%vio1
 PING6(56=40+8+8 bytes) fe80::216:3eff:fe65:2b0b%vio1 --
 fe80::21b:2aff:fee2:a4c0%vio1
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=0 hlim=64 time=1.811 ms
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=1 hlim=64 time=0.912 ms
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=2 hlim=64 time=0.948 ms
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=3 hlim=64 time=0.883 ms
 16 bytes from fe80::21b:2aff:fee2:a4c0%vio1, icmp_seq=4 hlim=64 time=0.938 ms
 ^C
 --- fe80::21b:2aff:fee2:a4c0%vio1 ping6 statistics ---
 5 packets transmitted, 5 packets received, 0.0% packet loss
 round-trip min/avg/max/std-dev = 0.883/1.098/1.811/0.357 ms
 
 # ping6 2001:D30:101:624::1
 PING6(56=40+8+8 bytes) 2001:d30:101:624::64 -- 2001:d30:101:624::1
 ^C
 --- 2001:D30:101:624::1 ping6 statistics ---
 4 packets transmitted, 0 packets received, 100.0% packet loss

Check with tcpdump if the packets go out and to the right place. 
Maybe try to figure out if they arrive at the destination to figure out
where they get lost.

-- 
:wq Claudio



Re: ipv6 static routing

2013-12-08 Thread dikshie
On Mon, Dec 9, 2013 at 2:01 AM, Marios Makassikis mmakassi...@gmail.com wrote:
 You can ping6 the gateway, but not a global IPv6 address. It looks
 like you have IPv6
 connectivity problem, and not routing/forwarding (i.e.: your gateway
 or some other router
 further upstream is misconfigured).

i checked several times on switch and router. everything looks fine.
i used linux before and everything works well :D


# ip route
202.249.25.208/28 dev eth0  proto kernel  scope link  src 202.249.25.209
202.249.25.0/27 dev eth0  proto kernel  scope link  src 202.249.25.29
169.254.0.0/16 dev eth0  scope link
default via 202.249.25.1 dev eth0

# ip -6 route
2001:d30:101:624::/64 dev eth1  metric 256  expires 21305003sec mtu
1500 advmss 1440 hoplimit 4294967295
fe80::/64 dev eth0  metric 256  expires 21304998sec mtu 1500 advmss
1440 hoplimit 4294967295
fe80::/64 dev eth1  metric 256  expires 21305003sec mtu 1500 advmss
1440 hoplimit 4294967295
default via fe80::21b:2aff:fee2:a4c0 dev eth1  metric 1  expires
21305003sec mtu 1500 advmss 1440 hoplimit 4294967295

# ping6 fe80::21b:2aff:fee2:a4c0%eth1
PING fe80::21b:2aff:fee2:a4c0%eth1(fe80::21b:2aff:fee2:a4c0) 56 data bytes
64 bytes from fe80::21b:2aff:fee2:a4c0: icmp_seq=1 ttl=64 time=2.12 ms
64 bytes from fe80::21b:2aff:fee2:a4c0: icmp_seq=2 ttl=64 time=0.877 ms
--- fe80::21b:2aff:fee2:a4c0%eth1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.877/1.503/2.129/0.626 ms

# ping6 2001:d30:101:624::1
PING 2001:d30:101:624::1(2001:d30:101:624::1) 56 data bytes
64 bytes from 2001:d30:101:624::1: icmp_seq=1 ttl=64 time=2.79 ms
64 bytes from 2001:d30:101:624::1: icmp_seq=2 ttl=64 time=0.920 ms
--- 2001:d30:101:624::1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.920/1.857/2.795/0.938 ms
--

-- 
-dikshie-



Re: ipv6 static routing

2013-12-08 Thread dikshie
On Mon, Dec 9, 2013 at 7:00 AM, Claudio Jeker cje...@diehard.n-r-g.com wrote:
 Check with tcpdump if the packets go out and to the right place.
 Maybe try to figure out if they arrive at the destination to figure out
 where they get lost.

sure, i'll check with tcpdump after working/business hour.

-dikshie-



Re: loongson:automatic loading of OpenBSD:YES to 8G ssd No for 500G disk

2013-12-08 Thread Fung
Sorry, 163.com mail server always eat some lines , so resend email from qq.com 
and add # disklabel wd0

Few people using loongson notebook?
Recently one Chinese organization sale this notebook about 45 $, they dump 
about 1,000 notebooks in 2 months.
http://www.loongsonclub.cn/tg/


Original email   # disklabel wd0

http://ftp.openbsd.org/pub/OpenBSD/5.4/loongson/INSTALL.loongson

---

To overcome this annoyance, simply change the `moresz' environment
variable to a large value (30 or larger will do):

PMON set moresz 30

The bootloader will attempt to load the kernel file set in the `bsd'
environment variable. Should this fail, it will wait for user
commands. The value of `bsd' should be a path within the OpenBSD
root filesystem on the disk, such as:

PMON set bsd /bsd

If you have removed the Linux installation or if you do not want to
use the boot menu, you may simply disable it in the environment, and
set the `al' variable to point to the bootloader path:

PMON set ShowBootMenu no
PMON set al /dev/fs/ext2@wd0/boot/boot
automatic loading of OpenBSD binaries is ok.

2. change the disk to Seagate 500g disk, install  5.4 release  with same 
settings.
1)when power up the notebook, system will hung in the splash screen (Press Tab 
to recover | Press Del to setup)
now hit Del, can not enter PMON prompt(nothing happend)

2)if power up the notebook and Press Del immediately, 
monitor will show
BEV in SR set to zero.
PMON

now boot /dev/fs/ext2@wd0/boot/boot  ok

--dmesg-
[ using 476376 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2013 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.4 (GENERIC) #29: Tue Jul 30 22:12:34 MDT 2013
dera...@loongson.openbsd.org:/usr/src/sys/arch/loongson/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1058979840 (1009MB)
mainbus0 at root: Lemote Yeeloong
cpu0 at mainbus0: STC Loongson2F CPU 796 MHz, STC Loongson2F FPU
cpu0: cache L1-I 64KB D 64KB 4 way, L2 512KB 4 way
bonito0 at mainbus0: memory and PCI-X controller, rev 1
pci0 at bonito0 bus 0
rl0 at pci0 dev 7 function 0 Realtek 8139 rev 0x10: irq 5, address 
00:23:8b:b5:35:9e
rlphy0 at rl0 phy 0: RTL internal PHY
smfb0 at pci0 dev 8 function 0 Silicon Motion LynxEM+ rev 0xb0
wsdisplay0 at smfb0 mux 1: console (std, vt100 emulation)
ohci0 at pci0 dev 9 function 0 NEC USB rev 0x44: irq 7, version 1.0
ehci0 at pci0 dev 9 function 1 NEC USB rev 0x05: irq 7
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NEC EHCI root hub rev 2.00/1.00 addr 1
glxpcib0 at pci0 dev 14 function 0 AMD CS5536 ISA rev 0x03: rev 3, 32-bit 
3579545Hz timer, watchdog, gpio, i2c
isa0 at glxpcib0
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
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
mcclock0 at isa0 port 0x70/2: mc146818 or compatible
ykbec0 at isa0 port 0x381/3
gpio1 at glxpcib0: 32 pins
iic at glxpcib0 not configured
glxclk0 at glxpcib0: clock, prof
pciide0 at pci0 dev 14 function 2 AMD CS5536 IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: ST9500325AS
wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
auglx0 at pci0 dev 14 function 3 AMD CS5536 Audio rev 0x01: isa irq 9, CS5536 
AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auglx0
ohci1 at pci0 dev 14 function 4 AMD CS5536 USB rev 0x02: isa irq 11, version 
1.0, legacy support
ehci1 at pci0 dev 14 function 5 AMD CS5536 USB rev 0x02: isa irq 11
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 AMD EHCI root hub rev 2.00/1.00 addr 1
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 NEC OHCI root hub rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 AMD OHCI root hub rev 1.00/1.00 addr 1
apm0 at mainbus0
umass0 at uhub1 port 1 configuration 1 interface 0 Generic USB2.0-CRW rev 
2.00/58.87 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: Generic-, Multi-Card, 1.00 SCSI0 0/direct 
removable serial.0bda015811417340
urtw0 at uhub1 port 4 Realtek RTL8187B rev 2.00/2.00 addr 3
urtw0: RTL8187B rev E, address 00:17:c4:5a:19:d7
uhidev0 at uhub3 port 3 configuration 1 interface 0 Dell Dell USB Keyboard 
rev 1.10/3.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
pmon bootpath: /dev/disk/wd0
boot device: wd0
root on wd0a (12e4475847814fad.a) swap on wd0b 

Re: loongson:automatic loading of OpenBSD:YES to 8G ssd No for 500G disk

2013-12-08 Thread Miod Vallat
 2. change the disk to Seagate 500g disk, install  5.4 release  with same 
 settings.
 1)when power up the notebook, system will hung in the splash screen (Press 
 Tab to recover | Press Del to setup)
 now hit Del, can not enter PMON prompt(nothing happend)
 
 2)if power up the notebook and Press Del immediately, 
 monitor will show
 BEV in SR set to zero.
 PMON
 
 now boot /dev/fs/ext2@wd0/boot/boot  ok

What is the PMON version reported by ``vers'' at the PMON prompt?

Does the system boot if you press `enter' when the system is apparently
hung with the splash screen still displayed?

Miod



NPPPD

2013-12-08 Thread Or Elimelech
Hi, 

I've configured nppd server and clients for Linux, Android, iOS, OSX and 
Windows. 
This works on all platforms when routing all traffic through VPN except for 
Windows clients. 

I can connect to the vpn and I get a route for 0.0.0.0 mask 0.0.0.0 vpn 
interface 

but ipconfig shows me 10.0.0.50 with 255.255.255.255 and 0.0.0.0 GW 

After that I cannot get any traffic out. 

Best regards 

-- 


Or Elimelech 


System Administrator 


Mail: o...@xwise.com 


Tel. +97237553300 ext. 2212 
M. +972543266051 

___
The sender of this email is not authorized to bind XWise Marketing or any of 
its affiliate companies (hereby: the Companies)
or to make any representations, contracts, or commitments on behalf of the 
Companies.

The information contained in this communication is intended solely for the use 
of the individual or entity to whom it is addressed and others 
authorized to receive it.   
It may contain confidential or legally privileged information. If you are not 
the intended recipient you are hereby notified that any disclosure, 
copying, distribution or taking any action in reliance on the contents of this 
information is strictly prohibited and may be unlawful. 
If you have received this communication in error, please notify us immediately 
by forwarding this email to le...@xwise.com and then delete 
it from your system.

The Companies are neither liable for the proper and complete transmission of 
the information contained in this communication nor for any delay in its 
receipt. 



Re: spamd in blacklist only mode

2013-12-08 Thread Jason McIntyre
On Sun, Dec 08, 2013 at 07:59:48PM +0100, Maurice Janssen wrote:
 Hi,
 
 If I understand the man pages correctly, you should start both spamd and
 spamd-setup with the -b option when you want to use spamd in blacklist only
 mode.
 In /etc/rc.d/spamd, the -b option is set when you have spamd_black=yes in
 your rc.conf.local.
 However, spamd-setup is always started with -D only from /etc/rc. It doesn't
 check for the spamd_black environment variable and therefore set -b.
 
 So it seems that you have to adapt /etc/rc when you want to run spamd in
 blacklist only mode.
 
 This seems a bit odd, doesn't it?  Am I missing something, or is this
 intended?
 
 Thanks,
 Maurice
 

you shouldn;t have to mess about with the rc.d stuff at all.

you run spamd with the -b flag on the command line, or set spamd_black
in rc.conf.local.

then, following through the man page:

spamd-setup(8) should be run periodically by cron(8).  When
run in blacklist-only mode, the -b flag should be specified.
Use crontab(1) to uncomment the entry in root's crontab.

hope that's clear.

jmc