OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: BatMen on April 09, 2020, 10:30:42 am

Title: Timeout while connecting to the selected mirror opnsense [Resolved]
Post by: BatMen on April 09, 2020, 10:30:42 am
Hello to all in this community - i' new her :)

I want to share my solution from "Timeout while connecting to the selected mirror opnsense" in 20.1.x.

A few week ago i updated from last 19.x to 20.1.2. Worked like charm. 2 day ago i wanted to upgrade to 20.1.3 from the WebGUI and i run into Timeout ..., i could get the Security and Healthcheck, from web interface i did DNS Lookup, ping and traceroute for example to ip4.google.com - it worked. Update form console from 20.1.2 to 20.1.3 worked.
At this point i first didn't realised that tracerroute,ping and update from console took a litle longer to start (DNS resolve was slow).

My mistake was (i don't know why) - DNS Lookup took to long (it worked but with this output)

DNS Lookup from WebGUI:
Code: [Select]
Response
Type Address
CNAME ipv4.l.google.com.
A 172.217.23.174
Resolution time per server
Server Query time
127.0.0.1 No response
192.168.100.1 19 msec

Resolved: with System/Settings/General - "Do not use the local DNS service as a nameserver for this system marked" check it out  - this removed the 127.0.0.1 from
 
Code: [Select]
root@XXXX:~ # more /etc/resolv.conf
domain XXXX.local
nameserver 127.0.0.1
nameserver 192.168.100.1

wich showed in DNS Lookup took to long "No responce".

I hope this helps other people around :-)

Have a good time all :)

###################
Some nice tips - use the Diagnostics from interface if you think you have the same problem or use the shell
Code: [Select]
Ping from shell:

root@XXXX:~ # ping -s 1500 212.32.245.132
PING 212.32.245.132 (212.32.245.132): 1500 data bytes
1508 bytes from 212.32.245.132: icmp_seq=0 ttl=55 time=18.945 ms
1508 bytes from 212.32.245.132: icmp_seq=1 ttl=55 time=18.878 ms
1508 bytes from 212.32.245.132: icmp_seq=2 ttl=55 time=18.150 ms

Traceroute from shell:

root@wse-XXXX:~ # traceroute ipv4.google.com
traceroute to ipv4.l.google.com (172.217.23.174), 64 hops max, 40 byte packets
 1  192.168.200.1 (192.168.200.1)  0.768 ms  0.848 ms  0.544 ms
 2  62.27.93.143 (62.27.93.143)  10.266 ms  10.335 ms  9.869 ms
 3  62.27.94.174 (62.27.94.174)  10.452 ms  10.847 ms  10.881 ms
 4  62.27.94.173 (62.27.94.173)  10.289 ms  10.463 ms  10.280 ms
 5  212.172.67.98 (212.172.67.98)  10.737 ms  10.404 ms  10.030 ms
 6  108.170.252.1 (108.170.252.1)  11.613 ms
    108.170.251.129 (108.170.251.129)  10.961 ms  10.864 ms
 7  216.239.47.247 (216.239.47.247)  10.279 ms
    216.239.47.245 (216.239.47.245)  10.827 ms  10.853 ms
 8  fra15s22-in-f14.1e100.net (172.217.23.174)  10.340 ms  10.550 ms  10.299 ms

 
Title: Re: Timeout while connecting to the selected mirror opnsense [Resolved]
Post by: LorneMalvo on January 07, 2021, 09:15:20 pm
Thanks for this fix. I was having the same problem after an upgrade.
Title: Re: Timeout while connecting to the selected mirror opnsense [Resolved]
Post by: afan on January 20, 2021, 02:23:37 pm
For me, "Do not use the local DNS service as a nameserver for this system" didn't fix the problem.
However, marking "Prefer to use IPv4 even if IPv6 is available" on the same Systems-Settings-General page, did.