Bug 534 - No option to use IPv6 connections by default
Summary: No option to use IPv6 connections by default
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: -current
Hardware: All All
: P4 enhancement
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-05 04:05 AEST by Lukasz Biegaj
Modified: 2003-07-04 03:04 AEST (History)
1 user (show)

See Also:


Attachments
Adds AddressFamily option to client (3.35 KB, patch)
2003-05-16 10:50 AEST, Damien Miller
no flags Details | Diff
output of ssh -vvv (5.72 KB, text/plain)
2003-06-29 02:45 AEST, Brent Graveland
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz Biegaj 2003-04-05 04:05:41 AEST
There is no option neither in /etc/ssh/config nor $HOME/.ssh/config to use IPv6 by default while connecting to remote hosts.
Comment 1 Damien Miller 2003-05-16 10:50:31 AEST
Created attachment 303 [details]
Adds AddressFamily option to client
Comment 2 Damien Miller 2003-05-16 13:22:56 AEST
Patch applied.
Comment 3 Brent Graveland 2003-06-23 09:29:09 AEST
When using this feature with a ~/.ssh/config file of:

host test
  addressfamily inet
host *
  addressfamily any

host test has both an A and an AAAA record in DNS, but the v6 connection is
down. This is why I'd like to force the inet addressfamily.  It seems that the
host * entry wins.  When looking at the source, it seems like addressfamily is
global, rather than per host. This is inconsistent with the other options, no?

As a workaround, using bindaddress works as expected, and is per-host (in the
Options structure)
Comment 4 Damien Miller 2003-06-23 18:05:03 AEST
Please attach a debug "ssh -v -v -v" trace
Comment 5 Brent Graveland 2003-06-29 02:45:51 AEST
Created attachment 342 [details]
output of ssh -vvv

This is the requested output.  Sorry it took so long, as I should have really
created a new bug. I didn't get any email notification and just recently came
back to look at it.

If it's all right with you (ie. nobody else is compaining about this) I
wouldn't mind having a couple days to fix it myself?
Comment 6 Brent Graveland 2003-06-29 03:57:10 AEST
I sent a patch to tech@openbsd.org and am waiting for input...

it's at http://graveland.net/openbsd/openssh-addressfamily.patch
Comment 7 Damien Miller 2003-07-03 18:09:17 AEST
fix applied - thanks
Comment 8 Brent Graveland 2003-07-04 03:04:44 AEST
works for me :)

Thanks - hope I wasn't a pest