3
ip link set mtu 1400 dev $1
6
ip addr add 192.168.123.254/24 dev $1
7
ip addr add fec0::fd/64 dev $1
9
# add routes to client subnets
10
# you also have to add these routes to the client configuration file of each client
11
# ip route add 192.168.11.0/24 dev $1
12
# ip route add fec0:1::/48 dev $1
13
# ip route add 192.168.12.0/24 dev $1
14
# ip route add fec0:2::/48 dev $1
15
# ip route add 192.168.13.0/24 dev $1
16
# ip route add fec0:3::/48 dev $1
18
# disable ICMP redirects as they don't work within the tunnel
19
echo 0 > /proc/sys/net/ipv4/conf/$1/send_redirects
20
echo 0 > /proc/sys/net/ipv4/conf/$1/accept_redirects
22
# enable packet forwarding
23
echo 1 > /proc/sys/net/ipv6/conf/$1/forwarding
24
echo 1 > /proc/sys/net/ipv4/conf/$1/forwarding
26
# enable routing to local ethernet interface
27
# echo 1 > /proc/sys/net/ipv6/conf/eth0/forwarding
28
# echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding