Code: Select all
lightning ~ # /etc/init.d/net.wlan0 restart
* Stopping sshd ... [ ok ]
* Unmounting NFS filesystems ... [ ok ]
* Unmounting network filesystems ... [ ok ]
* Bringing down interface wlan0
* Stopping dhcpcd on wlan0 ... [ ok ]
* Stopping wpa_cli on wlan0 ... [ ok ]
* Stopping wpa_supplicant on wlan0 ... [ ok ]
* Bringing up interface wlan0
* Starting wpa_supplicant on wlan0 ... [ ok ]
* Starting wpa_cli on wlan0 ... [ ok ]
* Backgrounding ... ...
* WARNING: net.wlan0 has started, but is inactive
* WARNING: netmount is scheduled to started when net.wlan0 has started
* WARNING: nfsmount is scheduled to started when net.wlan0 has started
* WARNING: sshd is scheduled to started when net.wlan0 has started
lightning ~ # ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 1c:4b:d6:fc:15:98
inet addr:10.0.0.156 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: 2001:470:1f11:81e:1e4b:d6ff:fefc:1598/64 Scope:Global
inet6 addr: fe80::1e4b:d6ff:fefc:1598/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:24008 errors:0 dropped:0 overruns:0 frame:0
TX packets:21417 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:13725585 (13.0 MiB) TX bytes:3153872 (3.0 MiB)
lightning ~ # ping6 -n -c 3 ayu.incorporeal.org
PING ayu.incorporeal.org(2001:470:1f07:fa2:d153:a53d:f4c3:b33f) 56 data bytes
--- ayu.incorporeal.org ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
lightning ~ # route -6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
2001:470:1f11:81e::/64 :: UAe 256 0 0 wlan0
fe80::/64 :: U 256 0 0 wlan0
::/0 fe80::224:1dff:fe80:245e UGDAe 1024 0 5 wlan0
::/0 :: U 2003 0 0 wlan0
::/0 :: !n -1 1 208 lo
::1/128 :: Un 0 1 19 lo
2001:470:1f11:81e:1e4b:d6ff:fefc:1598/128 :: Un 0 1 0 lo
fe80::1e4b:d6ff:fefc:1598/128 :: Un 0 1 2 lo
ff00::/8 :: U 256 0 0 wlan0
::/0 :: !n -1 1 208 lo
lightning ~ # ping6 -c 3 2001:470:1f11:81e:dead:face:0:10
PING 2001:470:1f11:81e:dead:face:0:10(2001:470:1f11:81e:dead:face:0:10) 56 data bytes
From 2001:470:1f11:81e:1e4b:d6ff:fefc:1598 icmp_seq=1 Destination unreachable: Address unreachable
From 2001:470:1f11:81e:1e4b:d6ff:fefc:1598 icmp_seq=2 Destination unreachable: Address unreachable
From 2001:470:1f11:81e:1e4b:d6ff:fefc:1598 icmp_seq=3 Destination unreachable: Address unreachable
--- 2001:470:1f11:81e:dead:face:0:10 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 1999ms
lightning ~ # ping6 -c 3 2001:470:1f11:81e::10
PING 2001:470:1f11:81e::10(2001:470:1f11:81e::10) 56 data bytes
64 bytes from 2001:470:1f11:81e::10: icmp_seq=1 ttl=64 time=3.66 ms
64 bytes from 2001:470:1f11:81e::10: icmp_seq=2 ttl=64 time=1.71 ms
64 bytes from 2001:470:1f11:81e::10: icmp_seq=3 ttl=64 time=1.51 ms
--- 2001:470:1f11:81e::10 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 1.514/2.296/3.662/0.969 ms
lightning ~ # ping6 -n -c 3 ayu.incorporeal.org
PING ayu.incorporeal.org(2001:470:1f07:fa2:d153:a53d:f4c3:b33f) 56 data bytes
64 bytes from 2001:470:1f07:fa2:d153:a53d:f4c3:b33f: icmp_seq=1 ttl=59 time=47.7 ms
64 bytes from 2001:470:1f07:fa2:d153:a53d:f4c3:b33f: icmp_seq=2 ttl=59 time=47.7 ms
64 bytes from 2001:470:1f07:fa2:d153:a53d:f4c3:b33f: icmp_seq=3 ttl=59 time=46.7 ms
--- ayu.incorporeal.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 46.724/47.389/47.737/0.533 ms
lightning ~ # route -6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
2001:470:1f11:81e::/64 :: UAe 256 0 0 wlan0
fe80::/64 :: U 256 0 0 wlan0
::/0 fe80::224:1dff:fe80:245e UGDAe 1024 0 9 wlan0
::/0 :: U 2003 0 0 wlan0
::/0 :: !n -1 1 220 lo
::1/128 :: Un 0 1 19 lo
2001:470:1f11:81e:1e4b:d6ff:fefc:1598/128 :: Un 0 1 17 lo
fe80::1e4b:d6ff:fefc:1598/128 :: Un 0 1 3 lo
ff00::/8 :: U 256 0 0 wlan0
::/0 :: !n -1 1 220 lo
lightning ~ #
Code: Select all
cid ~ # route -6
Kernel IPv6 routing table
Destination Next Hop Flag Met Ref Use If
::1/128 :: Un 0 1 288 lo
2001:470:1f10:81e::/128 :: Un 0 1 0 lo
2001:470:1f10:81e::2/128 :: Un 0 1 0 lo
2001:470:1f10:81e::/64 :: Un 256 0 0 he6
2001:470:1f11:81e::/128 :: Un 0 1 0 lo
2001:470:1f11:81e::/128 :: Un 0 1 0 lo
2001:470:1f11:81e::10/128 :: Un 0 1 105 lo
2001:470:1f11:81e:dead:ce11:5010:ba55/128 :: Un 0 1 7135 lo
2001:470:1f11:81e::/64 :: Un 256 0 6928 he6
2001:470:1f11:81e::/64 :: U 256 0 0 eth1
fe80::/128 :: Un 0 1 0 lo
fe80::/128 :: Un 0 1 0 lo
fe80::602a:2ba7/128 :: Un 0 1 405 lo
fe80::224:1dff:fe80:245e/128 :: Un 0 1 971 lo
fe80::6ef0:49ff:fe0a:c1e/128 :: Un 0 1 0 lo
fe80::/64 :: U 256 0 0 eth0
fe80::/64 :: Un 256 0 0 he6
fe80::/64 :: U 256 0 0 eth1
ff00::/8 :: U 256 0 0 eth0
ff00::/8 :: U 256 0 0 he6
ff00::/8 :: U 256 0 0 eth1
::/0 :: U 1 0 0 he6
::/0 :: !n -1 1 1 loCode: Select all
lightning ~ # ip -6 ro get 2001:470:1f07:fa2:d153:a53d:f4c3:b33f
2001:470:1f07:fa2:d153:a53d:f4c3:b33f via fe80::224:1dff:fe80:245e dev wlan0 proto kernel src 2001:470:1f11:81e:1e4b:d6ff:fefc:1598 metric 1024 expires 802sec mtu 1280 advmss 1220 hoplimit 64Code: Select all
Chain eth1-in (4 references)
pkts bytes target prot opt in out source destination
98133 6673576 ACCEPT icmpv6 * * fe80::/10 fe80::/10
636 37920 ACCEPT icmpv6 * * fe80::/10 ff02::/16
35022 2521584 ACCEPT icmpv6 * * fe80::/10 2001:888:120a::/96
59807 3827736 ACCEPT icmpv6 * * 2001:888:120a::/96 fe80::/10
9 648 ACCEPT icmpv6 * * 2001:888:120a::/96 ff02::/16
1422 152208 ACCEPT icmpv6 * * 2001:888:120a::/96 2001:888:120a::/96
729755 77182633 ACCEPT all * * 2001:888:120a::/48 ::/0
288 23040 DROP all * * ::/0 ::/0
Code: Select all
# find /proc/sys/net/ipv6/conf -name "*accept_ra" -exec cat {} \;
1
1
1
1
1
1
1
1
1
Code: Select all
# ip6tables-save
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [1648:472264]
:sshguard - [0:0]
-A INPUT -m rt --rt-type 0 -j REJECT --reject-with icmp6-port-unreachable
-A INPUT -i lo -j ACCEPT
-A INPUT -i eth0 -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p ipv6-icmp -j ACCEPT
[...]
-A FORWARD -p ipv6-icmp -j ACCEPT
[...]
Code: Select all
cid ~ # route -6
2001:470:1f10:81e::/64 :: Un 256 0 0 he6
2001:470:1f11:81e::/64 :: Un 256 0 6928 he6
2001:470:1f11:81e::/64 :: U 256 0 0 eth1
Code: Select all
/etc/conf.d/net
config_eth0=( "192.168.2.1/24" "2001:470:d:xxxx::1/64" )
iptunnel_ipv6="mode sit remote 66.220.18.42 local xxx.xxx.xxx.xxx ttl 255 dev eth1"
mtu_ipv6=1280
config_ipv6="2001:470:c:xxxx::2/64"
routes_ipv6="default via 2001:470:c:xxxx::1"Code: Select all
/etc/radvd.conf
interface eth0
{
AdvSendAdvert on;
AdvLinkMTU 1280;
MaxRtrAdvInterval 300;
prefix 2001:470:d:xxxx::/64
{
AdvOnLink on;
AdvAutonomous on;
};
};Yes, I have ppp0 on eth1.7 (Telecom VDSL VLAN Tagging)colp wrote:Perhaps you need someting like "depend_ipv6() { need net.ppp0 }" in /etc/conf.d/net
Code: Select all
routes_lo=( "2001:470:1f1b:2958::1/64" )
config_eth0=( "192.168.1.1/24" "2001:470:1f1b:2958::1/64" )
config_eth1=( null )
config_ppp0=( "ppp" )
link_ppp0="eth1.7"
plugins_ppp0=( "pppoe" )
username_ppp0='myaccount'
password_ppp0='mypassword'
pppd_ppp0=(
"noauth"
"defaultroute"
"holdoff 3"
"child-timeout 60"
"lcp-echo-interval 15"
"lcp-echo-failure 3"
noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp
)
depend_ppp0() {
need net.eth1
}
vlans_eth1="7"
config_eth1_7=( null )
##########################
# he tunnel broker
##########################
modules_he6="iproute2";
RC_NEED_he6="net.eth0";
depend_he6() {
need net.ppp0
}
iptunnel_he6="mode sit remote 216.66.x.x local 192.168.1.1 ttl 255 dev eth1";
mtu_he6=1280;
config_he6=( "2001:470:1f1a:2958::2/64" );
routes_he6=( "default via 2001:470:1f1a:2958::1 dev he6" );
#routes_he6=( "::/0" );
Code: Select all
iptunnel_he6="mode sit remote 216.66.x.x local 192.168.1.1 ttl 255 dev eth1";
Code: Select all
iptunnel_he6="mode sit remote <HE server address> local <routers wan address> ttl 255 dev eth1";
Code: Select all
ip tunnel change he6 local <router wan ip> dev ppp0