pfsync(4) typo (sychronisation)

2015-02-01 Thread Steven McDonald
Spotted a missing n in pfsync(4):

Index: share/man/man4/pfsync.4
===
RCS file: /cvs/src/share/man/man4/pfsync.4,v
retrieving revision 1.31
diff -u -p -r1.31 pfsync.4
--- share/man/man4/pfsync.4 29 Apr 2010 08:45:44 -
1.31 +++ share/man/man4/pfsync.41 Feb 2015 07:07:49 -
@@ -29,7 +29,7 @@
 .Os
 .Sh NAME
 .Nm pfsync
-.Nd packet filter state table sychronisation interface
+.Nd packet filter state table synchronisation interface
 .Sh SYNOPSIS
 .Cd pseudo-device pfsync
 .Sh DESCRIPTION



routing help

2015-02-01 Thread Edgar Pettijohn
I am trying to add a second ip to my openbsd5.6 vultr.com server.  I 
thought it would be as simple as:


/etc/hostname.vio1
104.238.145.48 255.255.254.0
!route add 104.238.145/23 104.238.144.1

They claim to be assigning me ip 104.238.145.48 netmask 255.255.254.0 
with a gateway of 104.238.144.1.
However, I am unable to ping 104.238.145.48.  Any help is appreciated.  
I've read the following manuals hostname.if(5), route(8), and 
ifconfig(8) and tried several different approaches. I'm still learning 
so be gentle :).


# ifconfig
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 32768
priority: 0
groups: lo
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet 127.0.0.1 netmask 0xff00
vio0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500
lladdr 56:00:00:03:ef:10
priority: 0
groups: egress
media: Ethernet autoselect
status: active
inet 108.61.222.55 netmask 0xff00 broadcast 108.61.222.255
vio1: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500
lladdr 52:54:00:86:36:94
priority: 0
media: Ethernet autoselect
status: active
inet 104.238.145.48 netmask 0xfe00 broadcast 104.238.145.255
enc0: flags=2NOINET6
priority: 0
groups: enc
status: active
pflog0: flags=20141UP,RUNNING,PROMISC,NOINET6 mtu 33144
priority: 0
groups: pflog

# route show
Routing tables

Internet:
Destination  GatewayFlags   Refs  Use Mtu  
Prio  Iface
default 108.61.222.1 UGS  3 214 - 
8  vio0
104.238.144/23 link#2UC   1  0   
- 4  vio1
104.238.144/23 104.238.144.1  UGS  0  0 - 
8  vio1
104.238.144.1  link#2UHLc 1 0
- 4  vio1
vpn.pettijohn-web. 52:54:00:86:36:94  UHLl0 0 -  1   
   lo0
108.61.222/24  link#1   UC   2 0   
- 4 vio0
108.61.222.1   74:8e:f8:48:67:80  UHLc   10 -
4  vio0
pettijohn-web.com  56:00:00:03:ef:10  UHLl   00 - 
1lo0
108.61.222.170.vul 52:54:00:cb:e8:f1  UHLc   00 - 
4  vio0
loopback   localhost  UGRS   00 32768 8 
  lo0
localhost  localhost  UH 10 32768 4 
lo0
BASE-ADDRESS.MCAST localhost  URS00 32768 8 
  lo0


# dmesg (is full of the following)
arp: attempt to add entry for 104.238.144.1 on vio1 by 74:8e:f8:48:67:80 
on vio0




Re: routing help

2015-02-01 Thread Edgar Pettijohn

On 02/01/15 10:13, Rosen Iliev wrote:

Hi Edgar,

Ignore my previous email.

You don't need the route
it should bu just:
inet 104.238.145.48 255.255.254.0 NONE

Rosen
I thought it should be that easy, but I get the same results. No ping 
:(  I'm wondering if its a virtual machine issue.


# ifconfig

vio1: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500
lladdr 52:54:00:86:36:94
priority: 0
media: Ethernet autoselect
status: active
inet 104.238.145.48 netmask 0xfe00 broadcast 104.238.145.255

# route show

Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu Prio Iface
default108.61.222.1   UGS3  310 - 8 vio0
104.238.144/23 link#2 UC 00 - 4 vio1
vpn.pettijohn-web. 52:54:00:86:36:94  UHLl   00 - 1 lo0
108.61.222/24  link#1 UC 20 - 4 vio0
108.61.222.1   74:8e:f8:48:67:80  UHLc   10 - 4 vio0
pettijohn-web.com  56:00:00:03:ef:10  UHLl   00 - 1 lo0
108.61.222.170.vul 52:54:00:cb:e8:f1  UHLc   00 - 4 vio0
loopback   localhost  UGRS   00 32768 8 lo0
localhost  localhost  UH 5  120 32768 4 lo0
BASE-ADDRESS.MCAST localhost  URS00 32768 8 lo0



Re: routing help

2015-02-01 Thread Otto Moerbeek
On Sun, Feb 01, 2015 at 10:26:35AM -0600, Edgar Pettijohn wrote:

 On 02/01/15 10:13, Rosen Iliev wrote:
 Hi Edgar,
 
 Ignore my previous email.
 
 You don't need the route
 it should bu just:
 inet 104.238.145.48 255.255.254.0 NONE
 
 Rosen
 I thought it should be that easy, but I get the same results. No ping :(
 I'm wondering if its a virtual machine issue.

Are you sure you need a second interface? It might very well be your
vm hoss has the second address set up on the the same interface as the
first. 

-Otto

 
 # ifconfig
 
 vio1: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500
 lladdr 52:54:00:86:36:94
 priority: 0
 media: Ethernet autoselect
 status: active
 inet 104.238.145.48 netmask 0xfe00 broadcast 104.238.145.255
 
 # route show
 
 Routing tables
 
 Internet:
 DestinationGatewayFlags   Refs  Use   Mtu Prio Iface
 default108.61.222.1   UGS3  310 - 8 vio0
 104.238.144/23 link#2 UC 00 - 4 vio1
 vpn.pettijohn-web. 52:54:00:86:36:94  UHLl   00 - 1 lo0
 108.61.222/24  link#1 UC 20 - 4 vio0
 108.61.222.1   74:8e:f8:48:67:80  UHLc   10 - 4 vio0
 pettijohn-web.com  56:00:00:03:ef:10  UHLl   00 - 1 lo0
 108.61.222.170.vul 52:54:00:cb:e8:f1  UHLc   00 - 4 vio0
 loopback   localhost  UGRS   00 32768 8 lo0
 localhost  localhost  UH 5  120 32768 4 lo0
 BASE-ADDRESS.MCAST localhost  URS00 32768 8 lo0



Re: routing help

2015-02-01 Thread Bradain Foley
# ifconfig

vio1: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500
 lladdr 52:54:00:86:36:94
 priority: 0
 media: Ethernet autoselect
 status: active
 inet 104.238.145.48 netmask 0xfe00 broadcast 104.238.145.255

Edgar,
Your netmask looks unusual (typo?). Normally it would be 0xff00. 



gdm error on 5.6-RELEASE inside VMware

2015-02-01 Thread Calvin
I installed gnome and added the items to /etc/rc.conf.local as needed. When
I get to GDM, it says :

Oh no! Something has gone wrong.

A problem has occurred and the system can't recover.
Please log out and try again.

Log Out

And then it stays on a blank X screen. I seem to remember it working on 5.5.

# dmesg
[truncated duplicate pre-reboot]
OpenBSD 5.6 (GENERIC) #310: Fri Aug  8 00:14:24 MDT 2014
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1056899072 (1007MB)
avail mem = 1020080128 (972MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (364 entries)
bios0: vendor Phoenix Technologies LTD version 6.00 date 07/31/2013
bios0: VMware, Inc. VMware Virtual Platform
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP BOOT APIC MCFG SRAT HPET WAET
acpi0: wakeup devices PCI0(S3) USB_(S1) P2P0(S3) S1F0(S3) S2F0(S3) S3F0(S3) 
S4F0(S3) S5F0(S3) S6F0(S3) S7F0(S3) S8F0(S3) S9F0(S3) S10F(S3) S11F(S3) 
S12F(S3) S13F(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz, 2660.63 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,SSSE3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 65MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 11, 24 pins
acpimcfg0 at acpi0 addr 0xf000, bus 0-127
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibat0 at acpi0: BAT1 not present
acpibat1 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: LID_
vmt0 at mainbus0
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x01
ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 Intel 82371AB PIIX4 ISA rev 0x08
pciide0 at pci0 dev 7 function 1 Intel 82371AB IDE rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: VMware Virtual IDE Hard Drive
wd0: 64-sector PIO, LBA, 8192MB, 16777216 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: NECVMWar, VMware IDE CDR10, 1.00 ATAPI 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
piixpm0 at pci0 dev 7 function 3 Intel 82371AB Power rev 0x08: SMBus disabled
VMware VMCI rev 0x10 at pci0 dev 7 function 7 not configured
vga1 at pci0 dev 15 function 0 VMware SVGA II rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
mpi0 at pci0 dev 16 function 0 Symbios Logic 53c1030 rev 0x01: apic 1 int 17
mpi0: 0, firmware 1.3.41.32
scsibus2 at mpi0: 16 targets, initiator 7
ppb1 at pci0 dev 17 function 0 VMware PCI rev 0x02
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 Intel 82545EM rev 0x01: apic 1 int 18, address 
00:0c:29:d0:e3:3f
eap0 at pci2 dev 1 function 0 Ensoniq AudioPCI97 rev 0x02: apic 1 int 19
ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
audio0 at eap0
midi0 at eap0: AudioPCI MIDI UART
ppb2 at pci0 dev 21 function 0 VMware PCIE rev 0x01
pci3 at ppb2 bus 3
ppb3 at pci0 dev 21 function 1 VMware PCIE rev 0x01
pci4 at ppb3 bus 4
ppb4 at pci0 dev 21 function 2 VMware PCIE rev 0x01
pci5 at ppb4 bus 5
ppb5 at pci0 dev 21 function 3 VMware PCIE rev 0x01
pci6 at ppb5 bus 6
ppb6 at pci0 dev 21 function 4 VMware PCIE rev 0x01
pci7 at ppb6 bus 7
ppb7 at pci0 dev 21 function 5 VMware PCIE rev 0x01
pci8 at ppb7 bus 8
ppb8 at pci0 dev 21 function 6 VMware PCIE rev 0x01
pci9 at ppb8 bus 9
ppb9 at pci0 dev 21 function 7 VMware PCIE rev 0x01
pci10 at ppb9 bus 10
ppb10 at pci0 dev 22 function 0 VMware PCIE rev 0x01
pci11 at ppb10 bus 11
ppb11 at pci0 dev 22 function 1 VMware PCIE rev 0x01
pci12 at ppb11 bus 12
ppb12 at pci0 dev 22 function 2 VMware PCIE rev 0x01
pci13 at ppb12 bus 13
ppb13 at pci0 dev 22 function 3 VMware PCIE rev 0x01
pci14 at ppb13 bus 14
ppb14 at pci0 dev 22 function 4 VMware PCIE rev 0x01
pci15 at ppb14 bus 15
ppb15 at pci0 dev 22 function 5 VMware PCIE rev 0x01
pci16 at ppb15 bus 16
ppb16 at pci0 dev 22 function 6 VMware PCIE rev 0x01
pci17 at ppb16 bus 17
ppb17 at pci0 dev 22 function 7 VMware PCIE rev 0x01
pci18 at ppb17 bus 18
ppb18 at pci0 dev 23 function 0 VMware PCIE rev 0x01
pci19 at ppb18 bus 19
ppb19 at pci0 dev 23 function 1 VMware PCIE rev 0x01
pci20 at ppb19 bus 20
ppb20 at pci0 dev 23 function 2 VMware PCIE rev 0x01
pci21 at ppb20 bus 21
ppb21 at pci0 dev 23 function 3 VMware PCIE rev 0x01
pci22 at ppb21 bus 22
ppb22 at pci0 dev 23 

Re: gdm error on 5.6-RELEASE inside VMware

2015-02-01 Thread Antoine Jacoutot
On Sun, Feb 01, 2015 at 05:07:41PM +, Calvin wrote:
 I installed gnome and added the items to /etc/rc.conf.local as needed. When
 I get to GDM, it says :

GDM (and GNOME 3 for that matter) requires an OpenGL accelerated display.

 
 Oh no! Something has gone wrong.
 
 A problem has occurred and the system can't recover.
 Please log out and try again.
 
 Log Out
 
 And then it stays on a blank X screen. I seem to remember it working on 5.5.
 
 # dmesg
 [truncated duplicate pre-reboot]
 OpenBSD 5.6 (GENERIC) #310: Fri Aug  8 00:14:24 MDT 2014
 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
 real mem = 1056899072 (1007MB)
 avail mem = 1020080128 (972MB)
 mpath0 at root
 scsibus0 at mpath0: 256 targets
 mainbus0 at root
 bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (364 entries)
 bios0: vendor Phoenix Technologies LTD version 6.00 date 07/31/2013
 bios0: VMware, Inc. VMware Virtual Platform
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S1 S4 S5
 acpi0: tables DSDT FACP BOOT APIC MCFG SRAT HPET WAET
 acpi0: wakeup devices PCI0(S3) USB_(S1) P2P0(S3) S1F0(S3) S2F0(S3) S3F0(S3) 
 S4F0(S3) S5F0(S3) S6F0(S3) S7F0(S3) S8F0(S3) S9F0(S3) S10F(S3) S11F(S3) 
 S12F(S3) S13F(S3) [...]
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz, 2660.63 MHz
 cpu0: 
 FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,SSSE3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,NXE,LONG,LAHF,PERF,ITSC
 cpu0: 256KB 64b/line 8-way L2 cache
 cpu0: smt 0, core 0, package 0
 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
 cpu0: apic clock running at 65MHz
 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 11, 24 pins
 acpimcfg0 at acpi0 addr 0xf000, bus 0-127
 acpihpet0 at acpi0: 14318179 Hz
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpicpu0 at acpi0
 acpibat0 at acpi0: BAT1 not present
 acpibat1 at acpi0: BAT2 not present
 acpiac0 at acpi0: AC unit online
 acpibtn0 at acpi0: SLPB
 acpibtn1 at acpi0: LID_
 vmt0 at mainbus0
 pci0 at mainbus0 bus 0
 pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x01
 ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x01
 pci1 at ppb0 bus 1
 pcib0 at pci0 dev 7 function 0 Intel 82371AB PIIX4 ISA rev 0x08
 pciide0 at pci0 dev 7 function 1 Intel 82371AB IDE rev 0x01: DMA, channel 0 
 configured to compatibility, channel 1 configured to compatibility
 wd0 at pciide0 channel 0 drive 0: VMware Virtual IDE Hard Drive
 wd0: 64-sector PIO, LBA, 8192MB, 16777216 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
 atapiscsi0 at pciide0 channel 1 drive 0
 scsibus1 at atapiscsi0: 2 targets
 cd0 at scsibus1 targ 0 lun 0: NECVMWar, VMware IDE CDR10, 1.00 ATAPI 
 5/cdrom removable
 cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
 piixpm0 at pci0 dev 7 function 3 Intel 82371AB Power rev 0x08: SMBus 
 disabled
 VMware VMCI rev 0x10 at pci0 dev 7 function 7 not configured
 vga1 at pci0 dev 15 function 0 VMware SVGA II rev 0x00
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 mpi0 at pci0 dev 16 function 0 Symbios Logic 53c1030 rev 0x01: apic 1 int 17
 mpi0: 0, firmware 1.3.41.32
 scsibus2 at mpi0: 16 targets, initiator 7
 ppb1 at pci0 dev 17 function 0 VMware PCI rev 0x02
 pci2 at ppb1 bus 2
 em0 at pci2 dev 0 function 0 Intel 82545EM rev 0x01: apic 1 int 18, address 
 00:0c:29:d0:e3:3f
 eap0 at pci2 dev 1 function 0 Ensoniq AudioPCI97 rev 0x02: apic 1 int 19
 ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
 audio0 at eap0
 midi0 at eap0: AudioPCI MIDI UART
 ppb2 at pci0 dev 21 function 0 VMware PCIE rev 0x01
 pci3 at ppb2 bus 3
 ppb3 at pci0 dev 21 function 1 VMware PCIE rev 0x01
 pci4 at ppb3 bus 4
 ppb4 at pci0 dev 21 function 2 VMware PCIE rev 0x01
 pci5 at ppb4 bus 5
 ppb5 at pci0 dev 21 function 3 VMware PCIE rev 0x01
 pci6 at ppb5 bus 6
 ppb6 at pci0 dev 21 function 4 VMware PCIE rev 0x01
 pci7 at ppb6 bus 7
 ppb7 at pci0 dev 21 function 5 VMware PCIE rev 0x01
 pci8 at ppb7 bus 8
 ppb8 at pci0 dev 21 function 6 VMware PCIE rev 0x01
 pci9 at ppb8 bus 9
 ppb9 at pci0 dev 21 function 7 VMware PCIE rev 0x01
 pci10 at ppb9 bus 10
 ppb10 at pci0 dev 22 function 0 VMware PCIE rev 0x01
 pci11 at ppb10 bus 11
 ppb11 at pci0 dev 22 function 1 VMware PCIE rev 0x01
 pci12 at ppb11 bus 12
 ppb12 at pci0 dev 22 function 2 VMware PCIE rev 0x01
 pci13 at ppb12 bus 13
 ppb13 at pci0 dev 22 function 3 VMware PCIE rev 0x01
 pci14 at ppb13 bus 14
 ppb14 at pci0 dev 22 function 4 VMware PCIE rev 0x01
 pci15 at ppb14 bus 15
 ppb15 at pci0 dev 22 function 5 VMware PCIE rev 0x01
 pci16 at ppb15 bus 16
 ppb16 at pci0 dev 22 function 6 VMware PCIE rev 0x01
 pci17 at ppb16 bus 17
 ppb17 at pci0 dev 22 function 7 VMware PCIE rev 0x01
 pci18 at ppb17 bus 18
 ppb18 at pci0 dev 23 function 0 VMware PCIE rev 0x01
 pci19 at ppb18 bus 19
 

Re: routing help

2015-02-01 Thread Edgar Pettijohn

On 02/01/15 10:37, Otto Moerbeek wrote:

On Sun, Feb 01, 2015 at 10:26:35AM -0600, Edgar Pettijohn wrote:


On 02/01/15 10:13, Rosen Iliev wrote:

Hi Edgar,

Ignore my previous email.

You don't need the route
it should bu just:
inet 104.238.145.48 255.255.254.0 NONE

Rosen

I thought it should be that easy, but I get the same results. No ping :(
I'm wondering if its a virtual machine issue.

Are you sure you need a second interface? It might very well be your
vm hoss has the second address set up on the the same interface as the
first.

-Otto

Possibly.  I could have sworn I got it working last night by adding an 
alias for the new ip to the vio0 interface, but then it wasn't working 
this morning.  Maybe I'll revisit that tactic.



# ifconfig

vio1: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500
 lladdr 52:54:00:86:36:94
 priority: 0
 media: Ethernet autoselect
 status: active
 inet 104.238.145.48 netmask 0xfe00 broadcast 104.238.145.255

# route show

Routing tables

Internet:
DestinationGatewayFlags   Refs  Use   Mtu Prio Iface
default108.61.222.1   UGS3  310 - 8 vio0
104.238.144/23 link#2 UC 00 - 4 vio1
vpn.pettijohn-web. 52:54:00:86:36:94  UHLl   00 - 1 lo0
108.61.222/24  link#1 UC 20 - 4 vio0
108.61.222.1   74:8e:f8:48:67:80  UHLc   10 - 4 vio0
pettijohn-web.com  56:00:00:03:ef:10  UHLl   00 - 1 lo0
108.61.222.170.vul 52:54:00:cb:e8:f1  UHLc   00 - 4 vio0
loopback   localhost  UGRS   00 32768 8 lo0
localhost  localhost  UH 5  120 32768 4 lo0
BASE-ADDRESS.MCAST localhost  URS00 32768 8 lo0
I appreciate the assistance thus far.  Should have mentioned I disabled 
pf during my testing.  Have to take the kids to the park. I'll keep 
trying later.




Re: routing help

2015-02-01 Thread Martin Pieuchot
Hello Edgar,

On 01/02/15(Sun) 10:01, Edgar Pettijohn wrote:
 I am trying to add a second ip to my openbsd5.6 vultr.com server.  I thought
 it would be as simple as:
 
 /etc/hostname.vio1
 104.238.145.48 255.255.254.0
 !route add 104.238.145/23 104.238.144.1
 
 They claim to be assigning me ip 104.238.145.48 netmask 255.255.254.0 with a
 gateway of 104.238.144.1.
 However, I am unable to ping 104.238.145.48.  Any help is appreciated.  I've
 read the following manuals hostname.if(5), route(8), and ifconfig(8) and
 tried several different approaches. I'm still learning so be gentle :).
 
 vio0: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500
 lladdr 56:00:00:03:ef:10
 priority: 0
 groups: egress
 media: Ethernet autoselect
 status: active
 inet 108.61.222.55 netmask 0xff00 broadcast 108.61.222.255
 vio1: flags=28843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6 mtu 1500
 lladdr 52:54:00:86:36:94
 priority: 0
 media: Ethernet autoselect
 status: active
 inet 104.238.145.48 netmask 0xfe00 broadcast 104.238.145.255
 
 # route show
 Routing tables
 
 Internet:
 Destination  GatewayFlags   Refs  Use Mtu  Prio
 Iface
 default 108.61.222.1 UGS  3 214 - 8
 vio0
 104.238.144/23 link#2UC   1  0   -
 4  vio1
 104.238.144/23 104.238.144.1  UGS  0  0 - 8
 vio1
 104.238.144.1  link#2UHLc 1 0-
 4  vio1
 vpn.pettijohn-web. 52:54:00:86:36:94  UHLl0 0 -  1
 lo0
 108.61.222/24  link#1   UC   2 0   -
 4 vio0
 108.61.222.1   74:8e:f8:48:67:80  UHLc   10 -4
 vio0
 pettijohn-web.com  56:00:00:03:ef:10  UHLl   00 - 1
 lo0
 108.61.222.170.vul 52:54:00:cb:e8:f1  UHLc   00 - 4
 vio0
 loopback   localhost  UGRS   00 32768 8
 lo0
 localhost  localhost  UH 10 32768 4
 lo0
 BASE-ADDRESS.MCAST localhost  URS00 32768 8
 lo0
 
 # dmesg (is full of the following)
 arp: attempt to add entry for 104.238.144.1 on vio1 by 74:8e:f8:48:67:80 on
 vio0

It seems that your two gateways (108.61.222.1 and 104.238.144.1) correspond
to the same Ethernet address.

You're seeing this message because you configured your addresses on two
different interfaces.  Configuring both of them on vio0 should solve
your problem.



Re: routing help solved

2015-02-01 Thread Edgar Pettijohn

Thanks to everyone who took a stab at it.  This is what I had to do:

/etc/hostname.vio0
inet 108.61.222.55 255.255.255.0
inet alias 104.238.145.48 255.255.254.0
!route add default 108.61.222.1

previously vio0 was using dhcp



Re: routing help solved

2015-02-01 Thread Alexander Hall

On 02/01/15 21:53, Edgar Pettijohn wrote:

Thanks to everyone who took a stab at it.  This is what I had to do:

/etc/hostname.vio0
inet 108.61.222.55 255.255.255.0
inet alias 104.238.145.48 255.255.254.0
!route add default 108.61.222.1

previously vio0 was using dhcp



$ man mygate

/Alexander



Re: Sparc t5120 firmware problem

2015-02-01 Thread Eric S Pulley
On Sun, 1 Feb 2015 23:21:25 +0100
Stefan Johansson texas.johans...@gmail.com wrote:

 Hello!
 
 I have a Sun Sparc t5120 that cannot start ldomd after a firmware
 upgrade. It’s possible to start ldomd before I have divided the
 machine into several guest domains. Afterwards it just hangs when
 trying to start ldomd and the machine is unresponsive (answers on
 ping though). Ldomd does not give any error messages.


I've got almost the same hardware as you but I show a slightly
newer version of the sysfw:

Properties:
...
hypervisor_version = Hypervisor 1.10.7.g 2014/07/10 11:46
macaddress = 00:21:28:16:2d:a8
maxbootfail = 3
obp_version = OpenBoot 4.33.6.f 2014/07/10 10:23
post_version = POST 4.33.6.f 2014/07/10 10:32
send_break_action = (Cannot show property)
status = Solaris running
sysfw_version = Sun System Firmware 7.4.8.a 2014/10/12 09:18

Getting older versions of the firmware without a support contract is a
pain... But I'll try tomorrow for you. Do you know what version you
where at before you upgraded? How old you want to try? 

Don't read too much into the fact that mine is working fine since I'm
running slowaris on the cdom with OpenBSD-stable in ldoms so it's
probably apples and oranges. The three OpenBSD ldoms I run are all
working fabulously though (Thanks everyone that worked on the sun4v
stuff).

Up until now how has OpenBSD been doing for the primary? I'd love to
ditch Solaris there too but I've got a large NAS hanging off this
box and I rather like managing it with zfs.



Re: index.php not loading on obsd 5.6

2015-02-01 Thread Carlin Bingham
On Mon, 2 Feb 2015, at 10:41 AM, Joel Carnat wrote:
 Hi,
 
 I just installed 5.6 amd64 on a virtual machine.
 I installed php-fpm-5.5.14 and launched the daemon.
 I configured httpd as such :
  # egrep -v '^$|^#' /etc/httpd.conf   
  ext_addr=egress
  server default {
  listen on $ext_addr port 80
  directory { no index, index index.html, index index.php }
  
  location *.php {
  fastcgi socket /run/php-fpm.sock
  }
  }
 Then I started httpd.
 
 When I browse to http://host/index.php, the file is interpreted and
 displayed.
 When I browse to http://host/, the file is downloaded.
 
 What am I missing to display php files automatically ?
 
 TIA,
   Jo
 

This problem is fixed in the httpd errata jumbo patch.

http://ftp.openbsd.org/pub/OpenBSD/patches/5.6/common/009_httpd.patch.sig


--
Carlin



index.php not loading on obsd 5.6

2015-02-01 Thread Joel Carnat
Hi,

I just installed 5.6 amd64 on a virtual machine.
I installed php-fpm-5.5.14 and launched the daemon.
I configured httpd as such :
 # egrep -v '^$|^#' /etc/httpd.conf 
 
 ext_addr=egress
 server default {
 listen on $ext_addr port 80
 directory { no index, index index.html, index index.php }
 
 location *.php {
 fastcgi socket /run/php-fpm.sock
 }
 }
Then I started httpd.

When I browse to http://host/index.php, the file is interpreted and displayed.
When I browse to http://host/, the file is downloaded.

What am I missing to display php files automatically ?

TIA,
  Jo



Re: routing help solved

2015-02-01 Thread Edgar Pettijohn

On 02/01/15 15:51, Alexander Hall wrote:

On 02/01/15 21:53, Edgar Pettijohn wrote:

Thanks to everyone who took a stab at it. This is what I had to do:

/etc/hostname.vio0
inet 108.61.222.55 255.255.255.0
inet alias 104.238.145.48 255.255.254.0
!route add default 108.61.222.1

previously vio0 was using dhcp



$ man mygate

/Alexander

That is one of the numerous man pages I read, and I had it set at one 
time in my adventure.  The above is working so I'm satisfied.




Sparc t5120 firmware problem

2015-02-01 Thread Stefan Johansson
Hello!

I have a Sun Sparc t5120 that cannot start ldomd after a firmware upgrade.
It’s possible to start ldomd before I have divided the machine into several 
guest domains.
Afterwards it just hangs when trying to start ldomd and the machine is 
unresponsive (answers on ping though).
Ldomd does not give any error messages.

Does anyone have any idea why?
Right now my plan is to downgrade the firmware. Does anyone have a known 
working version to provide me?
I only have version 7.4.8 and nothing older.

Output from showhost in ALOM:
Sun System Firmware 7.4.8 2014/07/10 13:15

Host flash versions:
 Hypervisor 1.10.7.g 2014/07/10 11:46
 OpenBoot 4.33.6.f 2014/07/10 10:23
 POST 4.33.6.f 2014/07/10 10:32

My ldom.conf:
domain primary {
  vcpu 16
  memory 8064M
}

domain ldom1 {
  vcpu 16
  memory 8G
  vdisk /dev/sd0c
  vdisk /home/ldom/ldom1/miniroot.fs
  vnet
  vnet
}

domain ldom2 {
  vcpu 16
  memory 8G
  vdisk /dev/sd2c
  vdisk /home/ldom/ldom2/miniroot.fs
  vnet
  vnet
}

domain ldom3 {
  vcpu 16
  memory 8G
  vdisk /dev/sd3c
  vdisk /home/ldom/ldom3/miniroot.fs
  vnet
  vnet
}

dmesg from primary domain:
console is /virtual-devices@100/console@1
Copyright (c) 1982, 1986, 1989, 1991, 1993
 The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2015 OpenBSD. All rights reserved.  http://www.OpenBSD.org

OpenBSD 5.7-beta (GENERIC.MP) #447: Thu Jan 22 18:38:23 MST 2015
 dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
real mem = 8455716864 (8064MB)
avail mem = 8303960064 (7919MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: SPARC Enterprise T5120
cpu0 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu1 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu2 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu3 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu4 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu5 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu6 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu7 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu8 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu9 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu10 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu11 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu12 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu13 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu14 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
cpu15 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz
vbus0 at mainbus0
flashprom at vbus0 not configured
tpm at vbus0 not configured
cbus0 at vbus0
vldc0 at cbus0
vldcp0 at vldc0 chan 0x14: ivec 0x228, 0x229 channel spds
sunvts at vldc0 chan 0x6 not configured
sunmc at vldc0 chan 0x7 not configured
explorer at vldc0 chan 0x8 not configured
led at vldc0 chan 0x9 not configured
flashupdate at vldc0 chan 0xa not configured
ipmi at vldc0 chan 0xc not configured
system-management at vldc0 chan 0xd not configured
vldc1 at cbus0
spfma at vldc1 chan 0x5 not configured
vldc2 at cbus0
vldcp1 at vldc2 chan 0x0: ivec 0x200, 0x201 channel hvctl
ldom-primary at vldc2 chan 0x1 not configured
fmactl at vldc2 chan 0x3 not configured
vldcp2 at vldc2 chan 0x19: ivec 0x232, 0x233 channel ldom-ldom1
vldcp3 at vldc2 chan 0x1f: ivec 0x23e, 0x23f channel ldom-ldom2
vldcp4 at vldc2 chan 0x25: ivec 0x24a, 0x24b channel ldom-ldom3
vldc3 at cbus0
ldmfma at vldc3 chan 0x4 not configured
virtual-domain-service at cbus0 not configured
vcc0 at cbus0
vcctty0 at vcc0 chan 0x18: ivec 0x230, 0x231 domain ldom1
vcctty1 at vcc0 chan 0x1e: ivec 0x23c, 0x23d domain ldom2
vcctty2 at vcc0 chan 0x24: ivec 0x248, 0x249 domain ldom3
vds0 at cbus0
vdsp0 at vds0 chan 0x1a: ivec 0x234, 0x235
vdsp1 at vds0 chan 0x1b: ivec 0x236, 0x237
vdsp2 at vds0 chan 0x20: ivec 0x240, 0x241
vdsp3 at vds0 chan 0x21: ivec 0x242, 0x243
vdsp4 at vds0 chan 0x26: ivec 0x24c, 0x24d
vdsp5 at vds0 chan 0x27: ivec 0x24e, 0x24f
vsw0 at cbus0
vnet0 at vsw0 chan 0x1c: ivec 0x238, 0x239
vnet1 at vsw0 chan 0x1d: ivec 0x23a, 0x23b
vnet2 at vsw0 chan 0x22: ivec 0x244, 0x245
vnet3 at vsw0 chan 0x23: ivec 0x246, 0x247
vnet4 at vsw0 chan 0x28: ivec 0x250, 0x251
vnet5 at vsw0 chan 0x29: ivec 0x252, 0x253
vrng0 at vbus0
vcons0 at vbus0: ivec 0x111, console
vrtc0 at vbus0
vpci0 at mainbus0: bus 2 to 18, dvma map 8000-
pci0 at vpci0
ppb0 at pci0 dev 0 function 0 PLX PEX 8533 rev 0xaa
pci1 at ppb0 bus 3
ppb1 at pci1 dev 1 function 0 PLX PEX 8533 rev 0xaa
pci2 at ppb1 bus 4
ppb2 at pci2 dev 0 function 0 PLX PEX 8517 rev 0xad
pci3 at ppb2 bus 5
ppb3 at pci3 dev 1 function 0 PLX PEX 8517 rev 0xad
pci4 at ppb3 bus 6
ppb4 at pci4 dev 0 function 0 PLX PEX 8112 rev 0xaa
pci5 at ppb4 bus 7
ohci0 at pci5 dev 0 function 0 NEC USB rev 0x43: ivec 0x16, version 1.0

5.6 nslookup - uses port 48830

2015-02-01 Thread Pawel S. Veselov
Hi.

Running latest amd64 5.6 (p16, just upgraded to it), for some reason my
nslookup keeps trying to use port 48830 to connect to the NS server.
gethostbyname() works just fine, all the apps resolve the hostnames
just fine, but host/dig/nslookup don't.

I have 'nameserver 127.0.0.1' in /etc/resolv.conf. Changing it to
[127.0.0.1]:53 didn't help. nslookup works if I add '-port 53' to the
command line though.

Looking for 48830 in /etc or /usr/src yields nothing at all (but it is
0xbebe)

 14953 nslookup CALL  socket(PF_INET,SOCK_DGRAM,IPPROTO_UDP)
 14953 nslookup RET   socket 3
 14953 nslookup CALL  fcntl(0x3,F_DUPFD,0x14)
 14953 nslookup RET   fcntl 20/0x14
 14953 nslookup CALL  bind(0x14,0x321cd268a80,0x10)
 14953 nslookup STRU  struct sockaddr { AF_INET, 0.0.0.0:0 }
 14953 nslookup CALL  sendmsg(0x14,0x7f7e44d0,0)
 14953 nslookup STRU  struct sockaddr { AF_INET, 127.0.0.1:48830 }
 14953 nslookup GIO   fd 20 wrote 34 bytes
   \M-p\M-T\^A\0\0\^A\0\0\0\0\0\0
 z\^B2y\^Cnet\0\0\^A\0\^A

Where can it possible be getting this port from?

Thank you,
  Pawel.