Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NetTester

 NetTester

物理ネットワークのテストツール

Yasuhito Takamiya

December 10, 2016
Tweet

More Decks by Yasuhito Takamiya

Other Decks in Technology

Transcript

  1. Scenario: ϦϯΫμ΢ϯো֐ͷϑΣΠϧΦʔόʔ Given ϤʔϤʔμΠϯࣾͷ DMZ ಺෦ͷ VPN αʔό And λδϚοΫεࣾͷ

    PC When PC ͔Β VPN αʔόʹ TCP ઀ଓΛ։࢝ And 10 ඵ଴ͭ And “FW1” ͱ “L2SW1” ؒͰϦϯΫো֐ൃੜ Then TCP ઀ଓ͕ҡ࣋͞Ε͍ͯΔ And FW ͷओܥ͕ “Passive”, ༧උܥ͕ “Active” ʹͳΔ
  2. Scenario: ϦϯΫμ΢ϯো֐ͷϑΣΠϧΦʔόʔ Given ϤʔϤʔμΠϯࣾͷ DMZ ಺෦ͷ VPN αʔό And λδϚοΫεࣾͷ

    PC When PC ͔Β VPN αʔόʹ TCP ઀ଓΛ։࢝ And 10 ඵ଴ͭ And “FW1” ͱ “L2SW1” ؒͰϦϯΫো֐ൃੜ Then TCP ઀ଓ͕ҡ࣋͞Ε͍ͯΔ And FW ͷओܥ͕ “Passive”, ༧උܥ͕ “Active” ʹͳΔ (JWFOεςοϓ ςετͷηοτΞοϓ
  3. Scenario: ϦϯΫμ΢ϯো֐ͷϑΣΠϧΦʔόʔ Given ϤʔϤʔμΠϯࣾͷ DMZ ಺෦ͷ VPN αʔό And λδϚοΫεࣾͷ

    PC When PC ͔Β VPN αʔόʹ TCP ઀ଓΛ։࢝ And 10 ඵ଴ͭ And “FW1” ͱ “L2SW1” ؒͰϦϯΫো֐ൃੜ Then TCP ઀ଓ͕ҡ࣋͞Ε͍ͯΔ And FW ͷओܥ͕ “Passive”, ༧උܥ͕ “Active” ʹͳΔ 8IFOεςοϓ ͖͔͚ͬͷΠϕϯτΛى͜͢
  4. Scenario: ϦϯΫμ΢ϯো֐ͷϑΣΠϧΦʔόʔ Given ϤʔϤʔμΠϯࣾͷ DMZ ಺෦ͷ VPN αʔό And λδϚοΫεࣾͷ

    PC When PC ͔Β VPN αʔόʹ TCP ઀ଓΛ։࢝ And 10 ඵ଴ͭ And “FW1” ͱ “L2SW1” ؒͰϦϯΫো֐ൃੜ Then TCP ઀ଓ͕ҡ࣋͞Ε͍ͯΔ And FW ͷओܥ͕ “Passive”, ༧උܥ͕ “Active” ʹͳΔ 5IFOεςοϓ ωοτϫʔΫͷ๬·͍͠ಈ࡞
  5. When(/^sshでログイン$/) do cd('.') do @pc.exec "sudo ssh-keygen -f ./ssh-key -t

    rsa -b 2048 -N ''" @server.exec "sudo /usr/sbin/sshd -o AuthorizedKeysFile=$PWD/ssh- key.pub -o PubkeyAuthentication=yes" @pc.exec "bash -c 'sudo ssh -t -t $SUDO_USER@#{@server.ip_address} -i ./ssh-key -o StrictHostKeyChecking=no ip a ' > log/ssh.log" end end Then(/^sshログインに成功$/) do step %(the file "log/ssh.log" should contain "#{@server.ip_address}") end TTIϩάΠϯͷςετ ࣮ࡍʹTTIΛ࣮ߦ