[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

can't get ipv6 working



Hi,

I've been trying to get on the sixbone but it won't work.
Attached is the script I use to bring everything up.

Some diagnostics...

Kernel output: (that's *all* I get, no matter how long I wait)

May  8 21:09:53 maryjane kernel: IPv6 v0.8 for NET4.0
May  8 21:09:53 maryjane kernel: IPv6 over IPv4 tunneling driver
May  8 21:10:14 maryjane kernel: eth0: no IPv6 routers present

When I try to do things like pinging ipv6 machines it succeeds to get the
ipv6 address but the actual pinging doesn't work:

maryjane:~$ ping6 pandora.ipv6.debian.org -n
PING pandora.ipv6.debian.org(3ffe:600:8000:8::32) from 2002:c390:4189::1 : 56
data bytes

--- pandora.ipv6.debian.org ping statistics ---
7 packets transmitted, 0 packets received, 100% packet loss

Here are my iptables rules. The tests are done on this same box, so the
nat table and forward chain shouldn't come into play, but it's here for
completeness.
First I thought maybe that by putting the LOG target before the ACCEPT the
packets wouldn't reach the ACCEPT anymore but then I realized that nothing
got logged at all, so that couldn't be the problem.

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A INPUT -i ppp0 -p 41 -j LOG
iptables -A INPUT -i ppp0 -p 41 -j ACCEPT
iptables -A INPUT -i ppp0 -m state --state NEW,INVALID -j DROP
iptables -A FORWARD -i ppp0 -m state --state NEW,INVALID -j DROP

Regards,

Filip

-- 
Everyone who packages something has an itch to scratch, and since the pay is
zero but pride, the quality in packages is immense.
	-- Seth Cohn on the Debian package system
#! /bin/sh

set -e

modprobe ipv6

#if [ ! -e /proc/net/if_inet6 ]; then
#	echo 'Your system doesn''t have IPv6 support."' >&2
#	echo 'Load the ipv6 module with "modprobe ipv6".' >&2
#	exit 1
#fi

addr=$(ip addr show dev ppp0 | sed -n 's/^.*inet \([0-9\.]*\) .*$/\1/p')
addr=$(printf "%x%x:%x%x\n" $(echo $addr | tr . " ") )
addr="2002:$addr::1"
ip link set sit0 up
ip addr add "$addr" dev sit0
ip -6 route add 2000::/3 via ::216.234.231.5

Attachment: pgpThEZvUvGmq.pgp
Description: PGP signature


Reply to: