cannot connect to mirrors

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

cannot connect to mirrors

Herminio Hernandez Jr.
I cannot install packages using pkg_add as root. I am getting a no route to host error. However I can ping the mirror so I know I have ip connectivity. I tried using curl to get a package from the mirror and that failed as well. Below are the commands I ran.

# pkg_add ddrescue
Error from http://mirror.esc7.net/pub/OpenBSD/5.8/packages/amd64/
ftp: connect: No route to host
http://mirror.esc7.net/pub/OpenBSD/5.8/packages/amd64/ is empty
Can't find ddrescue

# curl http://mirror.esc7.net/pub/OpenBSD/5.8/packages/amd64/ddrescue-1.19.tgz
curl: (7) Couldn't connect to server

# ftp -a mirror.esc7.net
Trying 72.53.191.10...
ftp: connect to address 72.53.191.10: No route to host
Trying 2604:c400:0:1::10...
ftp: connect: No route to host
ftp> quit

# ping mirror.esc7.net
PING mirror.esc7.net (72.53.191.10): 56 data bytes
64 bytes from 72.53.191.10: icmp_seq=0 ttl=56 time=42.414 ms
64 bytes from 72.53.191.10: icmp_seq=1 ttl=56 time=42.072 ms
64 bytes from 72.53.191.10: icmp_seq=2 ttl=56 time=42.172 ms
64 bytes from 72.53.191.10: icmp_seq=3 ttl=56 time=42.091 ms

dmesg:

# dmesg
OpenBSD 5.8 (GENERIC) #1170: Sun Aug 16 02:26:00 MDT 2015
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 520085504 (495MB)
avail mem = 500535296 (477MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf19c0 (10 entries)
bios0: vendor Bochs version "Bochs" date 01/01/2011
bios0: Bochs Bochs
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz, 423.43 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SS,SSE3,PCLMUL,VMX,SSSE3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,OSXSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,LONG,LAHF,PERF,FSGSBASE,SMEP,ERMS
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 1000MHz
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins
acpihpet0 at acpi0: 100000000 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
pvbus0 at mainbus0: KVM
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: apic 0 int 11
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 0 int 9
iic0 at piixpm0
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00: Virtio Network Device
vio0 at virtio0: address 04:01:9e:d9:30:01
virtio0: apic 0 int 11
virtio1 at pci0 dev 4 function 0 "Qumranet Virtio Network" rev 0x00: Virtio Network Device
vio1 at virtio1: address 04:01:9e:d9:30:02
virtio1: apic 0 int 11
virtio2 at pci0 dev 5 function 0 "Qumranet Virtio Storage" rev 0x00: Virtio Block Device
vioblk0 at virtio2
scsibus1 at vioblk0: 2 targets
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd0: 21504MB, 512 bytes/sector, 44040229 sectors
virtio2: apic 0 int 10
virtio3 at pci0 dev 6 function 0 "Qumranet Virtio Memory" rev 0x00: Virtio Memory Balloon Device
viomb0 at virtio3
virtio3: apic 0 int 10
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 1: density unknown
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
nvram: invalid checksum
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (c8fefe4975345a6f.a) swap on sd0b dump on sd0b
clock: unknown CMOS layout
#


signature.asc (859 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: cannot connect to mirrors

Stuart Henderson-6
On 2016/01/27 22:27, Herminio Hernandez, Jr. wrote:
> I cannot install packages using pkg_add as root. I am getting a no
> route to host error. However I can ping the mirror so I know I have ip
> connectivity. I tried using curl to get a package from the mirror and
> that failed as well. Below are the commands I ran.
>
> # pkg_add ddrescue
> Error from http://mirror.esc7.net/pub/OpenBSD/5.8/packages/amd64/
> ftp: connect: No route to host

Is the packet blocked by a firewall, possibly PF on the host you're
running it on?

Reply | Threaded
Open this post in threaded view
|

Re: cannot connect to mirrors

Herminio Hernandez Jr.
Yup the issue was in my pf rules. I created a table and forgot to mention
it in the corresponding rule. Once I did and reloaded pf.conf I was good to
go. I should have caught that.

Thanks

On Thu, Jan 28, 2016 at 2:37 AM, Stuart Henderson <[hidden email]> wrote:

> On 2016/01/27 22:27, Herminio Hernandez, Jr. wrote:
> > I cannot install packages using pkg_add as root. I am getting a no
> > route to host error. However I can ping the mirror so I know I have ip
> > connectivity. I tried using curl to get a package from the mirror and
> > that failed as well. Below are the commands I ran.
> >
> > # pkg_add ddrescue
> > Error from http://mirror.esc7.net/pub/OpenBSD/5.8/packages/amd64/
> > ftp: connect: No route to host
>
> Is the packet blocked by a firewall, possibly PF on the host you're
> running it on?
>