Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[電子情報局 仮想情報装置課]VyOSは電気ペンギンの夢を見るか? #9

Open
rossy0213 opened this issue Mar 3, 2018 · 6 comments
Assignees

Comments

@rossy0213
Copy link
Contributor

サーバ IP アドレス アカウント パスワード
vyos 192.168.20.80 admin PxZsMqycN4a4nzlk1Xg7
client 192.168.20.2 admin kopvVL3cT2tkALu4nQnD
@rossy0213
Copy link
Contributor Author

社内にVyOSを導入することが決まった。 そこで、社内のインフラを構築する前に以下の図の様なテスト環境で検証を行った。 VyOSにDNSのキャッシュサーバとDHCPサーバを起動し、下に接続されているUbuntuにIPアドレスを割り当てた。 しかし、Ubuntuから外部のサーバにアクセスしようとしたが接続できずICMPを送っても応答がない。ところが、VyOSからICMPを外部のサーバに送ると応答が返ってくる。 なので、Ubuntuから外にアクセスできる様に解決してほしい。ただし、Ubuntuに直接接続することはできず、VyOSからはアクセスできるようになっている。

スタート

Ubuntuから外部のサーバにアクセスできない
VyOSからはアクセスが可能
ゴール

Ubuntuから外部にアクセスできる

@rossy0213
Copy link
Contributor Author

問題文に書かれた条件図が表示されません。

@rossy0213
Copy link
Contributor Author

2018-03-03 10 52 36

@rossy0213
Copy link
Contributor Author

表示されなかった写真

@fono09 fono09 self-assigned this Mar 3, 2018
@fono09
Copy link
Member

fono09 commented Mar 3, 2018

outbound-interface eth1なので出られない。

nat {
    source {
        rule 1 {
            outbound-interface eth1
            source {
                address 192.168.20.0/26
            }
            translation {
                address masquerade
            }
        }
    }
}

@fono09
Copy link
Member

fono09 commented Mar 3, 2018

$ conf
# admin@vyos# set nat source rule 1  outbound-interface eth0
# commit
# save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants