OS-X Server Port and Firewall

Ssh port (default : 22 port)
  • port change : /etc/services 수정(터미널vi) 또는 server admin > firewall > settings > Services 수정
  • sshd daemon reload : /System/Library/LaunchDaemons/ssh.plist (unload/load)
  • firewall : system preference > security > on, 변경할 포트 추가(기존 디폴트 SSH를 삭제하고  변경된 포트의 SSH를 추가해준다)
Ftp port (default : 21 port)
  •  port change : /etc/services 수정(터미널vi) 또는 server admin > firewall > settings > Services 수정
  • ftp daemon reload : /System/Library/LaunchDaemons/ftp.plist (unload/load) 또는 server admin > FTP STOP/START
  • firewall : system preference > security > on, 포트추가(FTP 추가)
기타 Firewall(방화벽)
  • firewall : system preference > security > on, 포트추가