0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【2023年8月版】VyOSで作る簡単Linuxルーター

Last updated at Posted at 2023-08-19

はじめに

Linuxでルーター構築する勉強したいな。。。

そうだ、ChatGPT先生に教えてもらいながら構築しよう

環境

構築

conf
set nat source rule 10 outbound-interface 'eth0'               # 外側インターフェイスの設定
set nat source rule 10 source address '0.0.0.0/0'              # 内側ネットワークの設定
set nat source rule 10 translation address masquerade          # NAPT(IPマスカレード)を設定
commit
save

apt

VyOSでaptによるパッケージ管理を行いたいなら、リポジトリを登録すると使える。

まずはバージョン確認。1.3なので、CODENAMEは、busterになっている。

$ cat /etc/os-release 

PRETTY_NAME="VyOS 1.3-rolling-202308081250 (equuleus)"
NAME="VyOS"
VERSION_ID="1.3-rolling-202308081250"
VERSION="1.3-rolling-202308081250 (equuleus)"
VERSION_CODENAME=buster
ID=vyos
HOME_URL="https://vyos.io"
SUPPORT_URL="https://support.vyos.io"
BUG_REPORT_URL="https://vyos.dev"

リポジトリを debianbuster で登録する。

$ echo "deb http://deb.debian.org/debian/ buster main" | sudo tee -a /etc/apt/sources.list
$ echo "deb http://security.debian.org/ buster/updates main" | sudo tee -a /etc/apt/sources.list

ssh server を更新するなら以下の通り。

$ sudo apt update
$ sudo apt install openssh-server

さいごに

かんたんでしたね

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?