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

Re: Problems forwarding IPv6 to tunnel



According to Craig Small:
> Michel Onstein said:
> > (IPv4/IPv6). However when sending a IPv6 packet from the non-gateway
> > host to the outside world (which should be tunneled by the gateway) i
> > only receive an ICMPv6 unreachable notifaction.
> Who sends this ICMP packet back?
> 
The gateway...

> > So somehow my gateway is not forwarding IPv6 packets. Below there's
> > a snippet from the ipv6 configuration part:
> You've got some routes setup?  You may also need to add IPv4 forwarding.
> 
Both there ;( For the sake of completeness... i'll cut and paste the config
of both boxes, angel == gateway, hamiller = desktop

--- angel, /etc/init.d/network

# Local interface
ifconfig lo 127.0.0.1
route add -net 127.0.0.0

# Our IPv4 ethernet
ifconfig eth0 192.168.2.2 netmask 255.255.255.0 broadcast 192.168.2.255
ifconfig eth0:1 192.168.2.6 netmask 255.255.255.0
ifconfig eth0:2 192.168.2.7 netmask 255.255.255.0 broadcast 192.168.2.255

route add -net x.x.70.64 netmask 255.255.255.252 eth0

# Configure routing
echo "1" > /proc/sys/net/ipv4/ip_forward

echo "Enabling firewall..."
ipchains -A forward -p all -s 192.168.2.0/24 -d 0.0.0.0/0 -j MASQ;

# Our IPv6 ethernet
echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
echo 0 > /proc/sys/net/ipv6/conf/all/router_solicitations

ifconfig eth0 add 3ffe:y:5:0:2::2/80

ifconfig sit0 up tunnel ::x.x.77.162
ifconfig sit1 up
route -A inet6 add 0::0/0 gw fe80::x.x.77.162 dev sit1

--- hamiller, /etc/init.d/network

ifconfig lo 127.0.0.1
route add -net 127.0.0.0

ifconfig eth0 x.x.70.66 netmask 255.255.255.252 broadcast x.x.70.67
route add -net 192.168.2.0 netmask 255.255.255.0 dev eth0

route add default gw 192.168.2.2 metric 1

# IPv6 stuff below
echo 0 > /proc/sys/net/ipv6/conf/all/autoconf
echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra
echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects
echo 0 > /proc/sys/net/ipv6/conf/all/forwarding
echo 0 > /proc/sys/net/ipv6/conf/all/router_solicitations

ifconfig eth0 add 3ffe:y:5:0:2::1/80
route -A inet6 add 0::0/0 gw 3ffe:y:5:0:2::2 dev eth0

--- dun

Anyone again? ;-)

Michel


Reply to: