Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I'm unable to use IPv6
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2926
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Sat May 15, 2021 2:30 pm    Post subject: I'm unable to use IPv6 Reply with quote

It seems that my system cannot connect to any service running on IPv6 and I don't know why.

Today my thunderbird took very long to fetch mails. I then executed this:

Code:

$ telnet imap.mailbox.org 993
Trying 2001:67c:2050:106::143:199...


and nothing else happens. When I do the same using the IPv4 Address

Code:

$ $ telnet 80.241.60.199 993
Trying 80.241.60.199...
Connected to imap.mailbox.org.
Escape character is '^]'.
^CConnection closed by foreign host.


However, if I log in (via ssh) to another server in a different network and I do:

Code:

$ telnet 2001:67c:2050:106::143:199 993
Trying 2001:67c:2050:106::143:199...
Connected to 2001:67c:2050:106::143:199.
Escape character is '^]'.
^]
telnet> Connection closed.


the it works. More and more services start failing, I started a eix-sync and got stuck at Refreshing keys via WKD and then I realize that it also could be accessing the page via IPv6 which would explain why it doesn't work.

I don't have a firewall and no iptable rules

Code:

iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere           

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


So, am I missing perhaps something in my kernel? In "Networking Support" there are so many options, I don't even know where to start looking.

Is there a way to tell my system to resolve A records by default instead of AAAA records until I can solve this issue?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sat May 15, 2021 3:31 pm    Post subject: Reply with quote

pablo_supertux,

I get
Code:
~ $ telnet imap.mailbox.org 993
Trying 2001:67c:2050:106::143:199...
Connected to imap.mailbox.org.
Escape character is '^]'.


So its not the host at imap.mailbox.org, Its your end, your firewall or something in the middle.

Compare
Code:
traceroute -4 -U imap.mailbox.org
with
Code:
traceroute -6 -U imap.mailbox.org


My IPv4 route has two extra hops compared to IPv6 and I don't get any response after gate-4.heinlein-hosting.de on ether IPv4 or IPv6
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2926
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Sat May 15, 2021 3:37 pm    Post subject: Reply with quote

It seems to be either an ISP error or my router. I checked my router but there is no way to configure anything about ipv4 vs ipv6, I made an firmware update and after the restart of the router I now get the ipv4 addresses

Code:

$ telnet imap.mailbox.org 993
Trying 80.241.60.199...
Connected to imap.mailbox.org.
Escape character is '^]'.
^]
telnet> Connection closed.


However the problem remains, if I try to access directly via the IPv6 address, then I get this:

Code:

$ telnet 2001:67c:2050:106::143:199 993
Trying 2001:67c:2050:106::143:199...
telnet: connect to address 2001:67c:2050:106::143:199: Permission denied


I called my ISP hotline but as expected, they could not help, they didn't even know or understand what is the problem.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2926
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Sat May 15, 2021 4:01 pm    Post subject: Reply with quote

But is there a way to tell the local dns resolver to query A records before AAAA records?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Sat May 15, 2021 6:15 pm    Post subject: Reply with quote

My ISP doesn't even attempt to support v6. I suspect it's a problem with your ISP.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sat May 15, 2021 6:30 pm    Post subject: Reply with quote

pablo_supertux

Put your entire kernel .config onto a pastebin site please.

iptables is for IPv4 only.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2926
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Sun May 16, 2021 12:35 am    Post subject: Reply with quote

Hi


my kernel config
https://pastebin.com/DyvciLUZ

the problem was the ISP. I called support and the guy said that the diagnose tool showed no error, we could discard a configuration problem on my side and then he said he would post a ticket to the technicians as this might be an issue with the distribution node where my router is connected to. And apparently the technicians were quick because a few hours later it started working. To be honest, I'm not sure whether I already had trouble connecting via IPv6 and I just hadn't realize that because the DNS resolver resolved IPv4 and now that it started resolving to IPv6 it's when I realized that, or whether this was a temporarily issue and it was working in the past.
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum