Commit 57625d2b by root

initial import

parent 4e6c3b8d
#!/bin/sh
TIMV6="ppp2"
if [ "$PPP_IFACE" = "$TIMV6" ] ; then
sysctl -w net.ipv6.conf.$PPP_IFACE.forwarding=1
#sysctl -w net.ipv6.conf.$PPP_IFACE.accept_ra=2
sysctl -w net.ipv6.conf.$PPP_IFACE.autoconfig=0
V6=`rdisc6 -1 -q ppp2`
V6=`echo $V6 | cut -d ' ' -f 1`
CV6=`echo $V6 | cut -d '/' -f 1`
PV6=`echo $V6 | cut -d '/' -f 2`
ip -6 addr add "${CV6}2/${PV6}" dev eth1
ip -6 addr add "${CV6}1/128" dev $PPP_IFACE
ip -6 route add default dev ppp2
sed -e "s/TIMPREFIX/${CV6}\/${PV6}/g" /etc/radvd.conf_tim_template > /etc/radvd.conf
/etc/init.d/radvd restart
fi
asyncmap 0
auth
crtscts
lock
modem
lcp-echo-interval 30
lcp-echo-failure 4
noipx
* hostname "" *
guest hostname "*" -
master hostname "*" -
root hostname "*" -
support hostname "*" -
stats hostname "*" -
"adsl@alice6.it" * "IPV6@alice6"
noipdefault
show-password
debug
noauth
persist
plugin rp-pppoe.so eth0
user "adsl@alice6.it"
name "adsl@alice6.it"
unit 2
+ipv6
ipv6cp-use-persistent
#
# radvd configuration generated by radvdump 1.8.5
# based on Router Advertisement from fe80::90:1a00:1a4:773a
# received by interface ppp2
#
interface eth1
{
AdvSendAdvert on;
# Note: {Min,Max}RtrAdvInterval cannot be obtained with radvdump
#AdvManagedFlag off;
#AdvOtherConfigFlag on;
#AdvReachableTime 0;
#AdvRetransTimer 0;
#AdvCurHopLimit 0;
#AdvDefaultLifetime 40;
#AdvHomeAgentFlag off;
#AdvDefaultPreference medium;
#AdvLinkMTU 1462;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
prefix TIMPREFIX
{
AdvValidLifetime 30;
AdvPreferredLifetime 20;
AdvOnLink off;
AdvAutonomous on;
AdvRouterAddr on;
}; # End of prefix definition
}; # End of interface definition
net.ipv6.conf.eth1.autoconf=0
net.ipv6.conf.eth1.accept_ra=0
net.ipv6.conf.all.accept_redirects=0
net.ipv6.conf.all.router_solicitations=1
net.ipv6.conf.default.proxy_ndp=1
net.ipv6.conf.all.proxy_ndp=1
net.ipv6.conf.all.forwarding=1
kernel.perf_event_paranoid=2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment