From owner-freebsd-questions@FreeBSD.ORG Sun Dec 7 12:43:07 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 895F77E5 for ; Sun, 7 Dec 2014 12:43:07 +0000 (UTC) Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com [IPv6:2607:f8b0:4003:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4EAB8D17 for ; Sun, 7 Dec 2014 12:43:07 +0000 (UTC) Received: by mail-ob0-f171.google.com with SMTP id uz6so2530495obc.30 for ; Sun, 07 Dec 2014 04:43:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Xr6GKxdPO9prnXi93D2vsXM7TELdI33uufBY5e5iKZQ=; b=ChXYuA5yKdS6Z/Q5D7suqQLAd0xnseczb6IXp1KrmTIHN5hMP/cb8CBv5Po/fFeCv+ aYZ0uCXxjkYEvUviEJjbBVHSnrUjad2H1k8v7MnDRQwppyDCfHB20BIaX4OCa9/K1QAU ul9l19b8gKzttwiNxl66uab4/KuI60Ho9zpz9gWtqRD0MgVE+O1J6KC8E3UgMT0urUOu bbFFNuJDtA6g7Qj3WYFYfFMRvfJq6iRRw//7cylF7TOT2fr0fDUw3WcCI1bnIbZUdODQ w0IE9TWVLK4nRJv6jqRJ4Z0uGVbyhDsxiIn2taaUPlXXPZe+uti97hTXsFppmesesgKZ bmYA== MIME-Version: 1.0 X-Received: by 10.202.97.138 with SMTP id v132mr3890727oib.55.1417956186573; Sun, 07 Dec 2014 04:43:06 -0800 (PST) Received: by 10.202.230.146 with HTTP; Sun, 7 Dec 2014 04:43:06 -0800 (PST) Date: Sun, 7 Dec 2014 20:43:06 +0800 Message-ID: Subject: Example of ppp, ipv6 configuration for LAN gateway From: Khairil Yusof To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Dec 2014 12:43:07 -0000 I can't seem to easily understand from the handbook or googling basics on getting ipv6 setup for typical home network server connected to ISP with ppp. ipv4: - re0 is internal eth device - tun0 is ppp device, tun0 ip is default gateway - gateway enabled - dhcpd.conf - nat via pf (not needed on ipv6 of course) Standard ipv4 server setup, tun0 external ip is gateway, default router for LAN is 192.168.0.1 (gateway server IP), which then forwards to external tun0 gateway. ipv4 clients get address and routing via dhcp. ipv6: - re0 is still internal eth device - tun0 is ppp device, but no IP - ipv6_gateway is enabled - re0 inet6 rtadvd accpet - rtadvd (to broadcast ipv6 addresses) Now if I enable HISADDR6 in ppp.conf, run ndisc6 tun0 to get IP, and add it to re0 manually. IPv6 works OK for the gateway server, but not for LAN. Is there any examples on the Internet to have basic configuration where: - gateway server automatically gets ipv6 addr from tun0/ppp device - gateway server shares correct IPV6 route for other ipv6 devices on LAN via re0 The manual and sources I find on the internet all seem to be a mix of tunnel brokers, host only and even dhcpv6 options. I'm just looking for simple setup similar to the IPv4 home gateway to ppp setup above. Any pointers would be much appreciated.