1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OpenWrt DS-LITE 各VNE事業者別 全自動構成

Last updated at Posted at 2023-07-28

こちらに統合しました

はじめに

初心者対応構成

  • スクリプトでの自動設定
  • UCIとLuCi及びWinSCPにて比較しながら作業がおススメ

PowerShellSSHアクセス

ssh root@192.168.1.1
ssh root@192.168.1.1のショートカット作成(デスクトップ)
powershell
$DESKTOP = ([Environment]::GetFolderPath("Desktop") + "\192.168.1.1.lnk")
$WshShell = New-Object -comObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$DESKTOP")
$Shortcut.TargetPath = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
$Shortcut.Arguments = '-windowstyle hidden -ExecutionPolicy RemoteSigned "Start-Process ssh root@192.168.1.1"'
$Shortcut.IconLocation = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe,0"
$Shortcut.WorkingDirectory = "."
$Shortcut.Save()

  • 強制的に貼り付け
  • yes

SSHログイン出来ない場合:exclamation:

known_hostsクリア

  • C:\Users\yourusername\.ssh\known_hosts ※Windows隠しファイル
powershell
Clear-Content .ssh\known_hosts -Force


OpenSSHのインストール
※Windows 10 Fall Creators Update(1709)以降標準搭載

  • 機能の確認
powershell
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'

  • 機能のインストール
powershell
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0


対応回線

回線直結全自動構成

事業者別自動構成

全自動構成 (ワンコピペ)

※要ONU直結

セレクターにて選択

  • Transix : gw.transix.jp@2404:8e00::feed:100 or 2404:8e00::feed:101
  • Xpass(クロスパス) : xpass@2001:f60:0:200::1:1
  • v6コネクト : dslite.v6connect.net@2001:c28:5:301::11
# package
opkg update
opkg install ds-lite
# config-softwire
wget --no-check-certificate -O /usr/sbin/ds-lite.sh https://raw.githubusercontent.com/site-u2023/config-softwire/main/ds-lite.sh
# ds-lite-selector.sh
wget --no-check-certificate -O /etc/ds-lite-selector.sh https://raw.githubusercontent.com/site-u2023/config-softwire/main/ds-lite-selector.sh
# script run
sh /usr/sbin/ds-lite.sh 2> /dev/null
sh /etc/ds-lite-selector.sh
#

疎通確認

リムーブ

リムーブ

  • ds-lite
  • ds-lite.sh
# ds-lite
opkg remove ds-lite
# ds-lite.sh
rm /usr/sbin/ds-lite.sh
# ds-lite-selector.sh
rm /etc/ds-lite-selector.sh

レストア

  • network
  • dslite.sh
# network
cp /etc/config/network.old /etc/config/network
rm /etc/config/network.old
# dslite.sh
cp /lib/netifd/proto/dslite.sh.old /lib/netifd/proto/dslite.sh
rm /lib/netifd/proto/dslite.sh.old
# restart
/etc/init.d/network restart

IPv6

チューニング及びベンチマーク

あとがき

バーチャルコネクトと違って、すごくシンプルだ

参考サイト(感謝:relaxed:)

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?