You are not logged in.

#1 2022-07-02 18:10:53

buff3r0v3rfl0w
Member
Registered: 2022-07-02
Posts: 6

Failed to connect, when requesting resources in terminal

I keep getting this error when typing request commands in terminal and i'm getting freaking heated bcuz of it.

This happens with curl, yaourt and even wget.

[anonymous@anonymous C++]$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs [url]https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim[/url]
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to 127.0.0.1 port 8888 after 0 ms: Connection refused

I already tried setting my proxies to none and even removing hosts and re-editing it.

Also I have Mullvad vpn with tor service on but disabled tor. Won't disable the VPN though. It worked fine before just today it decided to act wackalackadoo.

Last edited by buff3r0v3rfl0w (2022-07-02 23:09:28)

Offline

#2 2022-07-02 19:48:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,562

Re: Failed to connect, when requesting resources in terminal

1. Use code tags, https://bbs.archlinux.org/help.php#bbcode
2. Your VPN *obviously* refuses the connection, it has nothing to do with "resources" or "terminal".
3. Therefore also choose a better subject for the thread
4. "It worked fine before just today" - and what changed? Did you update the system but not the mullvad AUR package? Or did you alter the mullvad configuration?
5. To get a basic idea

sudo systemctl status mullvad-daemon.service

Welcome to the fourm.

Online

#3 2022-07-02 22:14:05

buff3r0v3rfl0w
Member
Registered: 2022-07-02
Posts: 6

Re: Failed to connect, when requesting resources in terminal

I didn't alter shit with my system + It always worked with my VPN on so it doesn't make sense that it suddenly stops working.

anonymous@anonymous ~]$ sudo systemctl status wg-quick@mullvad-nl5.service
● wg-quick@mullvad-nl5.service - WireGuard via wg-quick(8) for mullvad/nl5
     Loaded: loaded (/usr/lib/systemd/system/wg-quick@.service; enabled; vendor preset: disabled)
     Active: active (exited) since Sat 2022-07-02 19:50:50 CEST; 4h 21min ago
       Docs: man:wg-quick(8)
             man:wg(8)
             https://www.wireguard.com/
             https://www.wireguard.com/quickstart/
             https://git.zx2c4.com/wireguard-tools/a … wg-quick.8
             https://git.zx2c4.com/wireguard-tools/a … c/man/wg.8
    Process: 865 ExecStart=/usr/bin/wg-quick up mullvad-nl5 (code=exited, status=0/SUCCESS)
   Main PID: 865 (code=exited, status=0/SUCCESS)
        CPU: 92ms

Jul 02 19:50:50 anonymous wg-quick[865]: [#] ip -6 route add ::/0 dev mullvad-nl5 table 51820
Jul 02 19:50:50 anonymous wg-quick[865]: [#] ip -6 rule add not fwmark 51820 table 51820
Jul 02 19:50:50 anonymous wg-quick[865]: [#] ip -6 rule add table main suppress_prefixlength 0
Jul 02 19:50:50 anonymous wg-quick[961]: [#] ip6tables-restore -n
Jul 02 19:50:50 anonymous wg-quick[865]: [#] ip -4 route add 0.0.0.0/0 dev mullvad-nl5 table 51820
Jul 02 19:50:50 anonymous wg-quick[865]: [#] ip -4 rule add not fwmark 51820 table 51820
Jul 02 19:50:50 anonymous wg-quick[865]: [#] ip -4 rule add table main suppress_prefixlength 0
Jul 02 19:50:50 anonymous wg-quick[865]: [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
Jul 02 19:50:50 anonymous wg-quick[976]: [#] iptables-restore -n
Jul 02 19:50:50 anonymous systemd[1]: Finished WireGuard via wg-quick(8) for mullvad/nl5.

Offline

#4 2022-07-02 22:35:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,562

Re: Failed to connect, when requesting resources in terminal

Well, something™ will have changed…

resolvectl status
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

And check the mullvad logs.
https://github.com/mullvad/mullvadvpn-app/issues/2468

Online

#5 2022-07-02 22:59:45

buff3r0v3rfl0w
Member
Registered: 2022-07-02
Posts: 6

Re: Failed to connect, when requesting resources in terminal

[anonymous@anonymous C++]$ resolvectl status
Global
           Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
    resolv.conf mode: foreign
  Current DNS Server: 193.138.218.74
         DNS Servers: 193.138.218.74
Fallback DNS Servers: 1.1.1.1#cloudflare-dns.com 9.9.9.9#dns.quad9.net 8.8.8.8#dns.google 2606:4700:4700::1111#cloudflare-dns.com 2620:fe::9#dns.quad9.net
                      2001:4860:4860::8888#dns.google

Link 2 (enp0s31f6)
    Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
         Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 192.168.2.254
       DNS Servers: 192.168.2.254 2a02:a47f:e000::53 2a02:a47f:e000::54
        DNS Domain: home

Link 3 (br10)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 4 (mullvad-nl5)
Current Scopes: none
     Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

And here's the result for this one:

[anonymous@anonymous ~]$ find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
bluetooth.service                        | bluetooth.target.wants
dbus-org.bluez.service                   | system
dbus-org.freedesktop.nm-dispatcher.service | system
dirmngr.socket                           | sockets.target.wants
display-manager.service                  | system
dnscrypt-proxy.socket                    | sockets.target.wants
gcr-ssh-agent.socket                     | sockets.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
libvirtd-ro.socket                       | sockets.target.wants
libvirtd.service                         | multi-user.target.wants
libvirtd.socket                          | sockets.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire-media-session.service           | pipewire.service.wants
pipewire-session-manager.service         | user
pipewire.socket                          | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
virtlockd.socket                         | sockets.target.wants
virtlogd.socket                          | sockets.target.wants
wg-quick@mullvad-nl5.service             | multi-user.target.wants
xdg-user-dirs-update.service             | default.target.wants

And I don't have the Mullvad program but using wireguard.

Last edited by buff3r0v3rfl0w (2022-07-02 23:10:24)

Offline

#6 2022-07-02 23:01:33

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Failed to connect, when requesting resources in terminal

Please edit your posts and use [ code ] tags (not quote tags) when posting output. This makes the output easier to read and provides a scroll box for long output.

https://wiki.archlinux.org/title/Genera … s_and_code
https://bbs.archlinux.org/help.php#bbcode

Offline

#7 2022-07-03 07:39:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,562

Re: Failed to connect, when requesting resources in terminal

You don't have resolved enabled and your initial output reflected that.
I assume you've now started it, but the theory (see the mullvad issue) was that mullvad conflicts w/ resolvectl.

Can you

curl -v 185.199.110.133/junegunn/vim-plug/master/plug.vim > /dev/null

Online

#8 2022-07-03 10:25:01

buff3r0v3rfl0w
Member
Registered: 2022-07-02
Posts: 6

Re: Failed to connect, when requesting resources in terminal

This is the output

[anonymous@anonymous ~]$ curl -v 185.199.110.133/junegunn/vim-plug/master/plug.vim > /dev/null
*   Trying 185.199.110.133:80...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 185.199.110.133 (185.199.110.133) port 80 (#0)
> GET /junegunn/vim-plug/master/plug.vim HTTP/1.1
> Host: 185.199.110.133
> User-Agent: curl/7.84.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Server: GitHub.com
< Content-Type: text/html; charset=utf-8
< ETag: "62bf2a7f-239b"
< Content-Security-Policy: default-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'self'
< X-GitHub-Request-Id: B06E:310E:7C6D35:82C8E4:62C16E4D
< Content-Length: 9115
< Accept-Ranges: bytes
< Date: Sun, 03 Jul 2022 10:24:14 GMT
< Via: 1.1 varnish
< Age: 0
< Connection: keep-alive
< X-Served-By: cache-ams21057-AMS
< X-Cache: MISS
< X-Cache-Hits: 0
< X-Timer: S1656843854.950796,VS0,VE90
< Vary: Accept-Encoding
< X-Fastly-Request-ID: 3724e8428c110583ba696a9ef8e3e0951e2d6519
< 
{ [9115 bytes data]
100  9115  100  9115    0     0  88840      0 --:--:-- --:--:-- --:--:-- 89362
* Connection #0 to host 185.199.110.133 left intact

Offline

#9 2022-07-03 14:22:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,562

Re: Failed to connect, when requesting resources in terminal

So it's your DNS config.

dig google.com

Online

#10 2022-07-03 15:20:02

buff3r0v3rfl0w
Member
Registered: 2022-07-02
Posts: 6

Re: Failed to connect, when requesting resources in terminal

Yeah makes sense, here is the output for that one.

[anonymous@anonymous ~]$ dig google.com

; <<>> DiG 9.18.4 <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23537
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com.                    IN      A

;; ANSWER SECTION:
google.com.             222     IN      A       172.217.168.238

;; Query time: 13 msec
;; SERVER: 192.168.2.254#53(192.168.2.254) (UDP)
;; WHEN: Sun Jul 03 17:18:59 CEST 2022
;; MSG SIZE  rcvd: 55

Offline

#11 2022-07-07 18:17:24

buff3r0v3rfl0w
Member
Registered: 2022-07-02
Posts: 6

Re: Failed to connect, when requesting resources in terminal

Bump

Offline

#12 2022-07-07 20:07:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,562

Re: Failed to connect, when requesting resources in terminal

Don't do that, https://wiki.archlinux.org/title/Genera … es#Bumping

Did you look at the output?
You've no trouble resolving google, however this reply is from 192.168.2.254
Try

dig @193.138.218.74 raw.githubusercontent.com # some swedish DNS
dig @192.168.2.254 raw.githubusercontent.com # some host on your LAN

Then check https://wiki.archlinux.org/title/Mullvad and elaborate on your DNS configuration.

Online

Board footer

Powered by FluxBB