From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 31 19:43:38 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 923945D9 for ; Sun, 31 Mar 2013 19:43:38 +0000 (UTC) (envelope-from freebsd-lists@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 6D9DFCD3 for ; Sun, 31 Mar 2013 19:43:38 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 1202E33C48; Sun, 31 Mar 2013 15:43:26 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 470BF39860; Sun, 31 Mar 2013 15:43:23 -0400 (EDT) From: Lowell Gilbert To: Mario Lobo Subject: Re: how to force all packets to be ipv4 not v6 References: <20130331095730.7c8b5e55@papi> Date: Sun, 31 Mar 2013 15:43:23 -0400 In-Reply-To: <20130331095730.7c8b5e55@papi> (Mario Lobo's message of "Sun, 31 Mar 2013 09:57:30 -0300") Message-ID: <44ip479wys.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: freebsd-hackers@freebsd.org, Aryeh Friedman X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Mar 2013 19:43:38 -0000 Mario Lobo writes: > On Sun, 31 Mar 2013 01:20:17 -0400 > Aryeh Friedman wrote: > >> I have a host that for ISP reasons must have a ipv6 addr as well as >> the ipv4 but the ISP does not offer external ipv6 routing but all the >> commanes (ssh, ftp, etc.) default to ipv6 and need special options to >> use 4 is there anyway to force them to always use 4? >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org" > > A kick and dirty way would be to comment the line: > > options INET6 # IPv6 communications protocols > > from your kernel config and recompile. That breaks the "must have a ipv6 addr" requirement. The way to do this without completely disabling IPv6 used to be to configure ipv6_prefer, but that appears to have been superseded by ip6addrctl_policy.