Skip to content

Instantly share code, notes, and snippets.

@fk2000
Created February 1, 2017 09:04
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 fk2000/b0c7bc93966e52ff47f484caef34aeb3 to your computer and use it in GitHub Desktop.
Save fk2000/b0c7bc93966e52ff47f484caef34aeb3 to your computer and use it in GitHub Desktop.
CentOS7でSSHのポート番号を変更する ref: http://qiita.com/fk_2000/items/019b62818e34be973227
public (default, active)
interfaces: eth0
sources:
services: dhcpv6-client ssh
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
- # Port 22
+ Port 2222
- <port protocol="tcp" port="22"/>
+ <port protocol="tcp" port="2222"/>
public (default, active)
interfaces: eth0
sources:
services: dhcpv6-client ssh-2222
ports:
masquerade: no
forward-ports:
icmp-blocks:
rich rules:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment