linux
-
[linux] firewall-cmd 폐쇄망 설정linux 2021. 3. 15. 18:29
최근 회사 일로 인해서 방화벽 설정을 많이 건드릴 수 밖에 없었다. 그 중에서 외부로 데이터를 유출할 수 없는 상태로 ssh만 사용 가능하도록 설정하는 법이다 ssh 설정 /etc/ssh/sshd_config UsePAM no # ssh 접속 인증 오류 제거 X11Forwarding no # 포트포워딩 제거 Subsystem sftp /bin/false # sftp 제거 ForceCommand /bin/bash # scp 제거 AllowTcpForwarding no # 포트포워딩 제거 PermitTunnel no PermitUserEnvironment no PermitRootLogin yes 언급하지 설정들은 제대로 찾아보지 않은 것들이다. firewall-cmd 설정 OUTBOUND 차단 설정 fire..