Hello All:
I pasted the following in on my OpenBSD test box as root user:
ifconfig gif0 tunnel 192.168.0.242 216.66.38.58
ifconfig gif0 inet6 alias 2001:470:1c:661::2 2001:470:1c:661::1 prefixlen 128
route -n add -inet6 default 2001:470:1c:661::1
Also tried my external IP in place of the RFC1918 IP.
You definitely would need the external IP for the source address for the gif(4)
tunnel.
Try putting this in your /etc/hostname.gif0..
up mtu 1480
tunnel [your external IP]
dest 216.66.38.58
inet6 2001:470:1c:661::2
inet6 [another IPv6 address]
inet6 [another IPv6 address]
!/sbin/route -qn add -inet6 default 2001:470:1c:661::1
You can add additional addresses from either the /64 or a /48 to the gif(4)
interface as well.
Turn up the interface once that has been put into the file.. sh /etc/netstart gif0.
If you are running PF ensure to allow protocol 41 traffic..
pass in on $ext_if inet proto ipv6 from $v6_tunnel_endpoint to $your_fw
pass out on $ext_if inet proto ipv6 from $your_fw to $v6_tunnel_endpoint
as well as in/out v6 traffic from your gif(4) interface at a minimum.