• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Main Menu

Outgoing IP address

Started by lucabert, May 08, 2011, 10:30:55 PM

Previous topic - Next topic

lucabert

Hi, all!

I have this problem and I can't explain me why...
I have a tunnel (with IPv6 2001:470:1f08:135d::2/64) and a Subnet (2001:470:9735::/48). The PC of my wife has IPv6, too (using my PC as gateway).

If I try to surf an IPv6-ready website (such as http://ipv6.he.net/) I see that my PC uses 2001:470:1f08:135d::2 to send the request (the IPv6 of the tunnel), but my wife uses her own IP.

Hier my configuration:

/etc/ppp/ip-up.d/he-ipv6-tunnel:
ip tunnel add he-ipv6 mode sit remote $SERVER_IPv4_ENDPOINT local $IPLOCAL ttl 255
ip link set he-ipv6 up
ip addr add $CLIENT_IPv6_ENDPOINT dev he-ipv6
ip route add ::/0 dev he-ipv6
ip -f inet6 addr


/etc/network/interfaces:
auto eth0
iface eth0 inet static
       address 192.168.10.3
       netmask 255.255.255.0
       up /sbin/ip -6 addr add 2001:470:9735:1::1/64 dev eth0


Am I doing somewhat wrong?

Thanks a lot!
Luca Bertoncello

cholzhauer

No.

Everything is working isn't it?

lucabert

Quote from: cholzhauer on May 09, 2011, 04:39:13 AM
No.

Everything is working isn't it?


Of course work everything! But I'd like to have the outgoing connection from my PC using an IPv6 of my subnet...  ;D

Is it possible?

Thanks
Luca Bertoncello

cholzhauer

When you say she uses her own IP, I assume you mean it's the IP address that either you, RA or DHCP has assigned to her computer?

If you want traffic to appear from your tunnel IP address, I don't think that's possible (easily at least...I'm sure you could break/hack something to do it)

If you don't want her real IP showing, turn on privacy extensions.

jgeorge

Luca,

So what you're wanting is YOUR pc to show an IP address in your /48 like your wife's PC, and not to use the tunnel address for it's public IP address, correct?

I don't know the answer offhand but I think what you might need to do is to move your route from the tunnel definition and set upa route from your eth0 interface to the tunnel instead. It looks like your PC thinks to route all of it's IPv6 traffic directly out the tunnel interface, so that your end of the tunnel would look like the originating IP address.

I think if you were to try to move that route definition to your eth0 interface you should get the results you're looking for.

Cheers,

Joe

lucabert

Quote from: jgeorge on May 09, 2011, 09:26:42 AM
So what you're wanting is YOUR pc to show an IP address in your /48 like your wife's PC, and not to use the tunnel address for it's public IP address, correct?

Correct!

Quote
I don't know the answer offhand but I think what you might need to do is to move your route from the tunnel definition and set upa route from your eth0 interface to the tunnel instead. It looks like your PC thinks to route all of it's IPv6 traffic directly out the tunnel interface, so that your end of the tunnel would look like the originating IP address.

I think if you were to try to move that route definition to your eth0 interface you should get the results you're looking for.

Could you suggest me how can I do that? I tried today, but I didn't got it working...

Thanks
Luca Bertoncello

jgeorge

Hey Luca,

That's what I'm not sure how to do. I'd try moving your ip route ::/0 dev he-ipv6 statement to the script that raises eth0 instead of he-ipv6-tunnel as a first start.

Cheers,

Joe

snarked


lucabert

Quote from: snarked on May 09, 2011, 06:22:53 PM
See "ip addrlabel".

Hi, all!

As I found here http://www.tunnelbroker.net/forums/index.php?topic=299.0 I solved my problem!

I just don't add the IPv6-Address to the interface he-ipv6.
And it just works! :D

Thanks
Luca Bertoncello