Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: I could use some help sorting things out configuring my tunnel [OS X]  (Read 3350 times)

sweex

  • readonly_member
  • Newbie
  • *
  • Posts: 11

I configured my tunnel with hurricane and then I tried to configure the tunnel.
I'm behind a NAT so I entered the IP that I got from my router (192.168.1.16 in this case)
But when I try to ping ipv6.google.com for example I only get time-outs.
But what looks a bit strange to me too is the IP from which it pings, it isn't the same as Hurricane's IPv6 address or the one I got assigned.

sh-3.2# ping6 ipv6.google.com
PING6(56=40+8+8 bytes) ::6233:4bff:fe0e:421 --> 2a00:1450:8006::93

What did I do wrong in my configuration?
Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2729
Re: I could use some help sorting things out configuring my tunnel [OS X]
« Reply #1 on: December 23, 2010, 10:39:51 AM »

I don't know

How did you set it up? What commands did you issue?

What do your routing tables look like?

What does ifconfig show?
Logged

sweex

  • readonly_member
  • Newbie
  • *
  • Posts: 11
Re: I could use some help sorting things out configuring my tunnel [OS X]
« Reply #2 on: December 23, 2010, 10:55:11 AM »

well it looks like it's working now... I don't have a clue about what changed, but it works now so thank you for the intention to help me ;-)
Logged

mnickerson

  • Newbie
  • *
  • Posts: 4
Re: I could use some help sorting things out configuring my tunnel [OS X]
« Reply #3 on: January 12, 2011, 03:20:01 PM »

I have the same situation.  Ubuntu router,  with desktop behind it.  Router can hit ipv6.google.com, and the desktop cannot.

i used the instruction on tunnelbroker to create sit0 and sit1.
Here's what the site gives me to enter:
Code: [Select]
IPv6 Tunnel Endpoints
Server IPv4 address: 72.52.104.74
Server IPv6 address: 2001:470:1f04:173a::1/64
Client IPv4 address: 199.67.249.190
Client IPv6 address: 2001:470:1f04:173a::2/64
Available DNS Resolvers
Anycasted IPv6 Caching Nameserver: 2001:470:20::2
Anycasted IPv4 Caching Nameserver: 74.82.42.42
Routed IPv6 Prefixes and rDNS Delegations
Routed /48: Allocate /48
Routed /64: 2001:470:1f05:173a::/64


here's the server stats:

Code: [Select]
eth0      Link encap:Ethernet  HWaddr 00:0c:29:94:8e:fd
          inet addr:199.67.249.190  Bcast:199.67.249.191  Mask:255.255.255.240
          inet6 addr: fe80::20c:29ff:fe94:8efd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:18058 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9269 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18327159 (18.3 MB)  TX bytes:847075 (847.0 KB)

eth1      Link encap:Ethernet  HWaddr 00:0c:29:94:8e:07
          inet addr:10.99.99.1  Bcast:10.99.99.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe94:8e07/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11729 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12295 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:883382 (883.3 KB)  TX bytes:17908524 (17.9 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)

sit0      Link encap:IPv6-in-IPv4
          inet6 addr: ::127.0.0.1/96 Scope:Unknown
          inet6 addr: ::199.67.249.190/96 Scope:Compat
          inet6 addr: ::10.99.99.1/96 Scope:Compat
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sit1      Link encap:IPv6-in-IPv4
          inet6 addr: 2001:470:1f04:173a::2/64 Scope:Global
          inet6 addr: fe80::c743:f9be/64 Scope:Link
          inet6 addr: fe80::a63:6301/64 Scope:Link
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:416 (416.0 B)  TX bytes:416 (416.0 B)
Code: [Select]
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
::/96                          ::                         Un   256 0     0 sit0
2001:470:1f04:173a::/64        ::                         Un   256 0     0 sit1
fe80::/64                      ::                         U    256 0     0 eth1
fe80::/64                      ::                         U    256 0     0 eth0
fe80::/64                      ::                         Un   256 0     0 sit1
::/0                           ::                         U    1   0     0 sit1
::/0                           ::                         !n   -1  1   108 lo
::1/128                        ::                         Un   0   1     6 lo
::10.99.99.1/128               ::                         Un   0   1     0 lo
::127.0.0.1/128                ::                         Un   0   1     0 lo
::199.67.249.190/128           ::                         Un   0   1     0 lo
2001:470:1f04:173a::/128       ::                         Un   0   1     0 lo
2001:470:1f04:173a::2/128      ::                         Un   0   1     4 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::/128                     ::                         Un   0   1     0 lo
fe80::a63:6301/128             ::                         Un   0   1     0 lo
fe80::c743:f9be/128            ::                         Un   0   1     0 lo
fe80::20c:29ff:fe94:8e07/128   ::                         Un   0   1     0 lo
fe80::20c:29ff:fe94:8efd/128   ::                         Un   0   1    14 lo
ff00::/8                       ::                         U    256 0     0 eth1
ff00::/8                       ::                         U    256 0     0 eth0
ff00::/8                       ::                         U    256 0     0 sit1
::/0                           ::                         !n   -1  1   108 lo

Code: [Select]
interface eth0
{
   AdvSendAdvert on;
   prefix 2001:470:1f05:173a::/64
   {
        AdvOnLink on;
        AdvAutonomous on;
        AdvRouterAddr on;
   };
};



this is the configuration I used to make the tunnel:
Code: [Select]
ifconfig sit0 up
ifconfig sit0 inet6 tunnel ::72.52.104.74
ifconfig sit1 up
ifconfig sit1 inet6 add 2001:470:1f04:173a::2/64
route -A inet6 add ::/0 dev sit1


My desktop:
Code: [Select]
eth0      Link encap:Ethernet  HWaddr 00:0c:29:25:aa:2c
          inet addr:10.99.99.2  Bcast:10.99.99.255  Mask:255.255.255.0
          inet6 addr: 2001:470:1f05:173a:20c:29ff:fe25:aa2c/64 Scope:Global
          inet6 addr: fe80::20c:29ff:fe25:aa2c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:10719 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6557 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15611265 (15.6 MB)  TX bytes:509603 (509.6 KB)
          Interrupt:18 Base address:0x2000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:240 (240.0 B)  TX bytes:240 (240.0 B)

Code: [Select]
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
2001:470:1f05:173a::/64        ::                         UAe  256 0     2 eth0
fe80::/64                      ::                         U    256 0     0 eth0
::/0                           fe80::20c:29ff:fe94:8efd   UGDA 1024 0    35 eth0
::/0                           ::                         !n   -1  1    38 lo
::1/128                        ::                         Un   0   1     5 lo
2001:470:1f05:173a:20c:29ff:fe25:aa2c/128 ::                         Un   0   1     1 lo
fe80::20c:29ff:fe25:aa2c/128   ::                         Un   0   1     4 lo
ff00::/8                       ::                         U    256 0     0 eth0
::/0                           ::                         !n   -1  1    38 lo


in have sysctl.conf I have uncommented:
net.ipv6.conf.all.forwarding=1

Ipv4 forwarding works fine, so I'm assuming I have a problem in ipv6 forwarding somewhere.  Do i need to set a msquarade or is the an iptables?  i have ipv4 masquerading set, using UFW: before.rules

Code: [Select]
*nat
:POSTROUTING ACCEPT [0:0]

# Forward traffic from eth1 through eth0.
-A POSTROUTING -s 10.99.99.0/24 -o eth0 -j MASQUERADE




 



Logged

broquea

  • Sr. Network Engineer, HE.NET AS6939
  • Administrator
  • Hero Member
  • *****
  • Posts: 1735
Re: I could use some help sorting things out configuring my tunnel [OS X]
« Reply #4 on: January 12, 2011, 03:35:17 PM »

on the router, did you add 2001:470:1f05:173a::1/64 to the LAN facing NIC?
Logged

cholzhauer

  • Hero Member
  • *****
  • Posts: 2729
Re: I could use some help sorting things out configuring my tunnel [OS X]
« Reply #5 on: January 13, 2011, 05:11:09 AM »

I'd have to agree...you need to assign an address to eth1 on your router.
Logged

mnickerson

  • Newbie
  • *
  • Posts: 4
Re: I could use some help sorting things out configuring my tunnel [OS X]
« Reply #6 on: January 13, 2011, 12:40:23 PM »

Added the ip6 addresss to eth1, that seems to have resolved it.  Thank you.
Logged