提供元 | サービス名 | シェアード方式 | 固定 IP方式 |
---|---|---|---|
JPIX | v6プラス | MAP-E | あり(IPIP) |
NTTCom | OCNバーチャルコネクト | MAP-E | あり(MAP-E) |
インターネットマルチフィード | Transix | DS-Lite | あり(IPIP) |
アルテリアネットワークス | クロスパス(Xpass) | DS-Lite | あり(IPIP) |
朝日ネット | v6 コネクト | DS-Lite | あり(IPIP) |
wget -O /lib/netifd/proto/ipip6.sh https://github.com/HiraokaHyperTools/openwrt-ipip6/raw/main/net/ipv6/ipip6/files/ipip6.sh wget -O /www/luci-static/resources/protocol/ipip6.js https://github.com/HiraokaHyperTools/openwrt-ipip6/raw/main/net/ipv6/ipip6/files/ipip6.js chmod +x /lib/netifd/proto/ipip6.sh
echo "200 pppoe" >> /etc/iproute2/rt_tables echo "201 dslite" >> /etc/iproute2/rt_tables echo "202 ipip6" >> /etc/iproute2/rt_tables reboot
設定項目 | 設定値 | 設定値 | 設定値 |
---|---|---|---|
名前 | IPIP6 | DSLITE | PPPoE |
受信 | 拒否 | 拒否 | 拒否 |
送信 | 許可 | 許可 | 許可 |
転送 | 拒否 | 拒否 | 拒否 |
マスカレード | チェックあり | チェックなし | チェックあり |
MSSクランプ | チェックあり | チェックあり | チェックあり |
送信元ゾーンからの転送を許可する | lan | lan | lan |
# /etc/config/firewall uci add firewall zone # =cfg10dc81 uci set firewall.@zone[-1].name='IPIP6' uci set firewall.@zone[-1].input='REJECT' uci set firewall.@zone[-1].output='ACCEPT' uci set firewall.@zone[-1].forward='REJECT' uci set firewall.@zone[-1].masq='1' uci set firewall.@zone[-1].mtu_fix='1' uci add firewall forwarding # =cfg11ad58 uci set firewall.@forwarding[-1].src='lan' uci set firewall.@forwarding[-1].dest='IPIP6' uci add firewall zone # =cfg12dc81 uci set firewall.@zone[-1].name='DSLITE' uci set firewall.@zone[-1].input='REJECT' uci set firewall.@zone[-1].output='ACCEPT' uci set firewall.@zone[-1].forward='REJECT' uci set firewall.@zone[-1].mtu_fix='1' uci add firewall forwarding # =cfg13ad58 uci set firewall.@forwarding[-1].src='lan' uci set firewall.@forwarding[-1].dest='DSLITE' uci add firewall zone # =cfg14dc81 uci set firewall.@zone[-1].name='PPPoE' uci set firewall.@zone[-1].input='REJECT' uci set firewall.@zone[-1].output='ACCEPT' uci set firewall.@zone[-1].forward='REJECT' uci set firewall.@zone[-1].masq='1' uci set firewall.@zone[-1].mtu_fix='1' uci add firewall forwarding # =cfg15ad58 uci set firewall.@forwarding[-1].src='lan' uci set firewall.@forwarding[-1].dest='PPPoE'
ページ | 構成名 | 構成値 |
---|---|---|
一般設定 | 名前 | PPPOE |
プロトコル | PPPoE | |
デバイス | eth0 | |
ブート時に起動 | チェックなし | |
PAP/CHAPユーザー名 | //プロバイダから提供されるPPPoEの認証ID | |
PAP/CHAPユーザー名 | //プロバイダから提供されるPPPoEの認証PW | |
詳細設定 | MTUを上書き | 1454 |
ピアから通知されたDNSサーバーを使用 | チェックなし | |
IPv4 ルーティングテーブルのオーバーライド | pppoe | |
ファイアウォール設定 | ファイアウォールゾーンの作成または割り当て | PPPOE |
DHCPサーバー | DHCPサーバーをセットアップ | |
-一般 | インターフェースを無視 | チェックあり |
-IPv6設定 | RA-Service | 無効 |
DHCPv6-サービス | 無効 | |
NDPプロキシ | 無効 |
# /etc/config/dhcp uci set dhcp.PPPOE=dhcp uci set dhcp.PPPOE.interface='PPPOE' uci set dhcp.PPPOE.ignore='1' # /etc/config/firewall uci add_list firewall.cfg14dc81.network='PPPOE' # /etc/config/network uci set network.PPPOE=interface uci set network.PPPOE.proto='pppoe' uci set network.PPPOE.device='eth0' uci set network.PPPOE.username='{プロバイダから提供されるPPPoEの認証ID}' uci set network.PPPOE.password='{プロバイダから提供されるPPPoEの認証PW}' uci set network.PPPOE.ipv6='auto' uci set network.PPPOE.mtu='1454' uci set network.PPPOE.peerdns='0' uci set network.PPPOE.ip4table='pppoe'
ページ | 構成名 | 構成値 |
---|---|---|
一般設定 | 名前 | DSLITE |
プロトコル | Dual-Stack Lite (RFC6333) | |
ブート時に起動 | チェックなし | |
DS-Lite AFTRアドレス | gw.transix.jp | |
ローカルIPv6アドレス | 空欄のまま | |
詳細設定 | トンネルリンク | wan6 |
トンネルインターフェースでMTUを使用 | 1460 | |
IPv4 ルーティングテーブルのオーバーライド | dslite | |
ファイアウォール設定 | ファイアウォールゾーンの作成または割り当て | DSLITE |
DHCPサーバー | DHCPサーバーをセットアップ | |
-一般 | インターフェースを無視 | チェックあり |
-IPv6設定 | RA-Service | 無効 |
DHCPv6-サービス | 無効 | |
NDPプロキシ | 無効 |
# /etc/config/dhcp uci set dhcp.DSLITE=dhcp uci set dhcp.DSLITE.interface='DSLITE' uci set dhcp.DSLITE.ignore='1' # /etc/config/firewall uci add_list firewall.cfg12dc81.network='DSLITE' # /etc/config/network uci set network.DSLITE=interface uci set network.DSLITE.proto='dslite' uci set network.DSLITE.auto='0' uci set network.DSLITE.peeraddr='gw.transix.jp' uci set network.DSLITE.tunlink='wan6' uci set network.DSLITE.encaplimit='ignore' uci set network.DSLITE.mtu='1460' uci set network.DSLITE.ip4table='dslite'
ページ | 構成名 | 構成値 |
---|---|---|
一般設定 | 名前 | IPIP6 |
プロトコル | IPv4 over IPv6 (ipip6) | |
ブート時に起動 | チェックなし | |
Tunnel remote IPv6 address | //固定IPトンネル終端装置 IPv6アドレス ※ | |
Your global IPv4 address | //グローバル固定IPv4アドレス ※ | |
詳細設定 | トンネルリンク | wan6 |
トンネルインターフェースでMTUを使用 | 1460 | |
IPv4 ルーティングテーブルのオーバーライド | ipip6 | |
ファイアウォール設定 | ファイアウォールゾーンの作成または割り当て | IPIP6 |
DHCPサーバー | DHCPサーバーをセットアップ | |
-一般 | インターフェースを無視 | チェックあり |
-IPv6設定 | RA-Service | 無効 |
DHCPv6-サービス | 無効 | |
NDPプロキシ | 無効 |
# /etc/config/dhcp uci set dhcp.IPIP6=dhcp uci set dhcp.IPIP6.interface='IPIP6' uci set dhcp.IPIP6.ignore='1' # /etc/config/firewall uci add_list firewall.cfg10dc81.network='IPIP6' # /etc/config/network uci set network.IPIP6=interface uci set network.IPIP6.proto='ipip6' uci set network.IPIP6.peeraddr='{固定IPトンネル終端装置 IPv6アドレス}' uci set network.IPIP6.ip4ifaddr='{グローバル固定IPv4アドレス}' uci set network.IPIP6.tunlink='wan6' uci set network.IPIP6.encaplimit='ignore' uci set network.IPIP6.mtu='1460' uci set network.IPIP6.ip4table='ipip6' uci set network.IPIP6.auto='0'
ページ | 構成名 | 構成値 |
---|---|---|
一般設定 | IPv4アドレス | 192.168.2.1 |
詳細設定 | カスタムDNSサーバーを使用 | HGWの 情報 > DHCPv6サーバ払い出し状況 > DNSサーバアドレス を指定 |
HGWの 情報 > DHCPv4サーバ払い出し状況 > DNSサーバアドレス を指定 | ||
DHCPサーバー>IPv6設定 | RA-Service | サーバーモード |
DHCPv6-サービス | サーバーモード | |
アナウンスされるIPv 6DNSサーバー | HGWの 情報 > DHCPv6サーバ払い出し状況 > DNSサーバアドレス を指定 | |
NDP プロキシ | 無効 | |
DHCPサーバー>IPv6 RA 設定 | RAフラグ | なし |
# /etc/config/dhcp uci del dhcp.lan.ra_slaac # /etc/config/network uci set network.lan.ipaddr='192.168.2.1' uci add_list network.lan.dns='{HGWの 情報 > DHCPv6サーバ払い出し状況 > DNSサーバアドレス }' uci add_list network.lan.dns='{HGWの 情報 > DHCPv4サーバ払い出し状況 > DNSサーバアドレス }'
ページ | 構成名 | 構成値 |
---|---|---|
DHCPサーバー | DHCPサーバーをセットアップ | |
DHCPサーバー>IPv6設定 | Designated master | チェック |
RA-Service | リレーモード | |
DHCPv6-サービス | リレーモード | |
NDP プロキシ | リレーモード |
# /etc/config/dhcp uci set dhcp.wan6=dhcp uci set dhcp.wan6.interface='wan6' uci set dhcp.wan6.ignore='1' uci set dhcp.wan6.master='1' uci set dhcp.wan6.ra='relay' uci set dhcp.wan6.dhcpv6='relay' uci set dhcp.wan6.ndp='relay' # /etc/config/network uci set network.wan6.reqaddress='try' uci set network.wan6.reqprefix='auto'
uci set network.wan6.ifaceid='::feed' uci commit /etc/init.d/network restart
説明 | コマンド |
---|---|
curl 6 eth0 | curl -6 https://domains.google.com/checkip --interface eth0 |
curl 4 DSLITE | curl -4 https://domains.google.com/checkip --interface ds-DSLITE |
curl 4 PPPOE | curl -4 https://domains.google.com/checkip --interface pppoe-PPPOE |
curl 4 IPIP6 | curl -4 https://domains.google.com/checkip --interface ipip6-IPIP6 |
# /etc/config/luci uci add luci command # =cfg099944 uci set luci.@command[-1].name='curl 6 eth0' uci set luci.@command[-1].command='curl -6 https://domains.google.com/checkip --interface eth0' uci add luci command # =cfg0a9944 uci set luci.@command[-1].name='curl 4 DSLITE' uci set luci.@command[-1].command='curl -4 https://domains.google.com/checkip --interface ds-DSLITE' uci add luci command # =cfg0b9944 uci set luci.@command[-1].name='curl 4 PPPOE' uci set luci.@command[-1].command='curl -4 https://domains.google.com/checkip --interface pppoe-PPPOE' uci add luci command # =cfg0c9944 uci set luci.@command[-1].name='curl 4 IPIP6' uci set luci.@command[-1].command='curl -4 https://domains.google.com/checkip --interface ipip6-IPIP6'
# /etc/config/luci uci add luci command # =cfg0d9944 uci set luci.@command[-1].name='update ipip6' uci set luci.@command[-1].command='curl {アップデートサーバーの URL}?username={ユーザー名}&password={パスワード}'
提供元 サービス名 |
接続関連の構成値 | アップデート関連の構成値 |
---|---|---|
インターネットマルチフィード Transix |
固定IPトンネル終端装置のIPv6アドレス インターフェースID(指定される値) 固定IPv4アドレス |
アップデートサーバーの URL ユーザー名 パスワード |
JPIX v6プラス |
BR の IPv6 アドレス インターフェースID 固定 IPv4 アドレス |
アップデートサーバーの URL ユーザー名 パスワード |
朝日ネット v6 コネクト |
固定 IP トンネル終端装置の IPv6 アドレス インターフェース ID 固定 IPv4 アドレス |
アップデートサーバーの URL 認証キー 認証パスワード |
アルテリアネットワークス クロスパス(Xpass) |
固定IPトンネル終端装置のIPv6アドレス ::1(固定値?) 固定IPv4アドレス |
DDNSアップデート先URL FQDN DDNS ID DDNS パスワード Basic認証ID Basic認証パスワード |
curl {アップデートサーバーの URL}?username={ユーザー名}&password={パスワード}
curl {アップデートサーバーの URL}?user={ユーザー名}&pass={パスワード}
curl {アップデートサーバーの URL}?key={認証キー}&pass={認証パスワード}
curl -u {Basic認証ID}:{Basic認証パスワード} {DDNSアップデート先URL}?d={FQDN}&p={DDNS パスワード}&a={IPv6アドレス}&u={DDNS ID}
# /etc/config/network uci add network rule # =cfg0f92bd uci set network.@rule[-1].priority='30000' uci set network.@rule[-1].in='lan' uci set network.@rule[-1].lookup='pppoe' uci add network rule # =cfg1092bd uci set network.@rule[-1].in='lan' uci set network.@rule[-1].lookup='dslite' uci set network.@rule[-1].priority='30000' uci set network.cfg0f92bd.disabled='1' uci add network rule # =cfg1092bd uci set network.@rule[-1].in='lan' uci set network.@rule[-1].lookup='ipip6' uci set network.@rule[-1].priority='30000' uci set network.cfg0f92bd.disabled='1'
firewall.@defaults[0]=defaults firewall.@defaults[0].input='REJECT' firewall.@defaults[0].output='ACCEPT' firewall.@defaults[0].forward='REJECT' firewall.@defaults[0].synflood_protect='1' firewall.@zone[0]=zone firewall.@zone[0].name='lan' firewall.@zone[0].network='lan' firewall.@zone[0].input='ACCEPT' firewall.@zone[0].output='ACCEPT' firewall.@zone[0].forward='ACCEPT' firewall.@zone[1]=zone firewall.@zone[1].name='wan' firewall.@zone[1].output='ACCEPT' firewall.@zone[1].masq='1' firewall.@zone[1].network='wan' 'wan6' firewall.@zone[1].input='REJECT' firewall.@zone[1].forward='REJECT' firewall.@zone[1].mtu_fix='1' firewall.@forwarding[0]=forwarding firewall.@forwarding[0].src='lan' firewall.@forwarding[0].dest='wan' firewall.@rule[0]=rule firewall.@rule[0].name='Allow-DHCP-Renew' firewall.@rule[0].src='wan' firewall.@rule[0].proto='udp' firewall.@rule[0].dest_port='68' firewall.@rule[0].target='ACCEPT' firewall.@rule[0].family='ipv4' firewall.@rule[1]=rule firewall.@rule[1].name='Allow-Ping' firewall.@rule[1].src='wan' firewall.@rule[1].proto='icmp' firewall.@rule[1].icmp_type='echo-request' firewall.@rule[1].family='ipv4' firewall.@rule[1].target='ACCEPT' firewall.@rule[2]=rule firewall.@rule[2].name='Allow-IGMP' firewall.@rule[2].src='wan' firewall.@rule[2].proto='igmp' firewall.@rule[2].family='ipv4' firewall.@rule[2].target='ACCEPT' firewall.@rule[3]=rule firewall.@rule[3].name='Allow-DHCPv6' firewall.@rule[3].src='wan' firewall.@rule[3].proto='udp' firewall.@rule[3].dest_port='546' firewall.@rule[3].family='ipv6' firewall.@rule[3].target='ACCEPT' firewall.@rule[4]=rule firewall.@rule[4].name='Allow-MLD' firewall.@rule[4].src='wan' firewall.@rule[4].proto='icmp' firewall.@rule[4].src_ip='fe80::/10' firewall.@rule[4].icmp_type='130/0' '131/0' '132/0' '143/0' firewall.@rule[4].family='ipv6' firewall.@rule[4].target='ACCEPT' firewall.@rule[5]=rule firewall.@rule[5].name='Allow-ICMPv6-Input' firewall.@rule[5].src='wan' firewall.@rule[5].proto='icmp' firewall.@rule[5].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' 'router-solicitation' 'neighbour-solicitation' 'router-advertisement' 'neighbour-advertisement' firewall.@rule[5].limit='1000/sec' firewall.@rule[5].family='ipv6' firewall.@rule[5].target='ACCEPT' firewall.@rule[6]=rule firewall.@rule[6].name='Allow-ICMPv6-Forward' firewall.@rule[6].src='wan' firewall.@rule[6].dest='*' firewall.@rule[6].proto='icmp' firewall.@rule[6].icmp_type='echo-request' 'echo-reply' 'destination-unreachable' 'packet-too-big' 'time-exceeded' 'bad-header' 'unknown-header-type' firewall.@rule[6].limit='1000/sec' firewall.@rule[6].family='ipv6' firewall.@rule[6].target='ACCEPT' firewall.@rule[7]=rule firewall.@rule[7].name='Allow-IPSec-ESP' firewall.@rule[7].src='wan' firewall.@rule[7].dest='lan' firewall.@rule[7].proto='esp' firewall.@rule[7].target='ACCEPT' firewall.@rule[8]=rule firewall.@rule[8].name='Allow-ISAKMP' firewall.@rule[8].src='wan' firewall.@rule[8].dest='lan' firewall.@rule[8].dest_port='500' firewall.@rule[8].proto='udp' firewall.@rule[8].target='ACCEPT' firewall.@zone[2]=zone firewall.@zone[2].name='IPIP6' firewall.@zone[2].output='ACCEPT' firewall.@zone[2].forward='REJECT' firewall.@zone[2].network='IPIP6' firewall.@zone[2].input='REJECT' firewall.@zone[2].masq='1' firewall.@zone[2].mtu_fix='1' firewall.@zone[3]=zone firewall.@zone[3].name='DSLITE' firewall.@zone[3].output='ACCEPT' firewall.@zone[3].network='DSLITE' firewall.@zone[3].input='REJECT' firewall.@zone[3].forward='REJECT' firewall.@zone[3].mtu_fix='1' firewall.@zone[4]=zone firewall.@zone[4].name='PPPoE' firewall.@zone[4].output='ACCEPT' firewall.@zone[4].network='PPPOE' firewall.@zone[4].input='REJECT' firewall.@zone[4].forward='REJECT' firewall.@zone[4].masq='1' firewall.@zone[4].mtu_fix='1' firewall.@forwarding[1]=forwarding firewall.@forwarding[1].src='lan' firewall.@forwarding[1].dest='DSLITE' firewall.@forwarding[2]=forwarding firewall.@forwarding[2].src='lan' firewall.@forwarding[2].dest='IPIP6' firewall.@forwarding[3]=forwarding firewall.@forwarding[3].src='lan' firewall.@forwarding[3].dest='PPPoE'