Skip to content

Instantly share code, notes, and snippets.

@ochilab
Created September 1, 2018 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ochilab/9d7f40dceb9dfdd079886731e9699a1f to your computer and use it in GitHub Desktop.
Save ochilab/9d7f40dceb9dfdd079886731e9699a1f to your computer and use it in GitHub Desktop.
YAMAHAのルーターでのNAT設定のメモ書き(2台のウェブサーバーをNATで管理する)
#サーバー1用
nat descriptor type 200 nat-masquerade
nat descriptor address outer 200 XXX.XXX.XXX.10
nat descriptor address inner 200 192.168.0.10
nat descriptor masquerade static 200 1 192.168.0.10 tcp 80=80
#サーバー2用
nat descriptor type 201 nat-masquerade
nat descriptor address outer 201 XXX.XXX.XXX.11
nat descriptor address inner 201 192.168.0.11
nat descriptor masquerade static 201 1 192.168.0.11 tcp 80=80
#ルーター用
nat descriptor type 202 nat-masquerade
nat descriptor address outer 202 XXX.XXX.XXX.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment