LoginSignup
2
3

More than 5 years have passed since last update.

LAN内のPCに外部から接続する

Last updated at Posted at 2016-09-30

概要

LAN内のPCに外部から接続する
ルーターはAirPort Utilityを使っている

LAN内のアドレスを固定化する

  • AirPort Utilityを起動し、AirMac ExtremeでEditを起動
  • Networkタブ選択
  • DHCP Reservationsの+から設定追加
  • MAC AddressとIPv4Addressを入力
    • MAC Addressは、ifconfigのHWaddrの項目(xx:xx:xx:xx:xx:xxの16進数の値)
    • IPv4は、DHCP Rangeに含まれる任意の値
  • Updateする(このときネットワークが途切れるので注意)

image

ポートフォーワーディング設定する

  • AirPort Utilityを起動し、AirMac ExtremeでEditを起動
  • Networkタブ選択
  • Port Settingsの+から設定追加
  • SSHする場合、DescriptionでRemote Login - SSHを選択する
  • 外部から接続したいPCのPriate IP Addressを入力する(ifconfigで調べる)
  • Updateする(このときネットワークが途切れるので注意)

image

接続する

Global IPを確認する

$ curl inet-ip.info

Global IPの22番が接続したいPCの22番を向いているのでSSHできる

参照

2
3
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
2
3