Commit f9be8845 authored by nanahira's avatar nanahira

add things for ipv6 default route

parent d3bff363
......@@ -12,6 +12,9 @@ iptables -t nat -o "$PPP_IFACE" -A POSTROUTING -j MASQUERADE
ip route add default dev "$PPP_IFACE" table $INIT_ID
ip route add default dev "$PPP_IFACE" metric $INIT_ID
ip -6 route add default dev "$PPP_IFACE" table $INIT_ID
ip -6 route add default dev "$PPP_IFACE" metric $INIT_ID
ip rule add pref 100 fwmark $INIT_ID lookup $INIT_ID
ip -6 rule add pref 100 fwmark $INIT_ID lookup $INIT_ID
ppp_origin -A "$PPP_IFACE"
......@@ -3,10 +3,10 @@ services:
dummy:
image: alpine
command: sleep infinity
{% for br in bridges %}
{% if br.dhcpv6 %}
{% for ppp in ppps %}
{% if ppp.dhcpv6 %}
{% for br in bridges %}
{% if br.dhcpv6 %}
dhcpv6-ppp{{ppp.id}}-{{br.name}}:
restart: always
image: git-registry.mycard.moe/nanahira/docker-dhcpv6-client
......
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