IT System Engineer(14)
-
Linux TCP/UDP Port 확인 (Linux Opened TCP/UDP Port checking)
# Linux Opened TCP/UDP Port checking [리눅스 TCP 포트 오픈 확인 명령어] netstat -tnl [리눅스 UDP 포트 오픈 확인 명령어] netstat -unl
2023.11.06 -
Linux multiple Gateway 설정 (Linux multiple gateway settings)
# Multiple Gateway 설정 route -n vi multiple_gw_routes.sh chmod 700 multiple_gw_routes.sh cat /etc/rc.local vi /etc/rc.local sleep 2 /root/multiple_gw_routes.sh & sleep 2 exit 0 vi /etc/iproute2/rt_tables 1 rt2 cat /etc/iproute2/rt_tables chmod 700 multiple_gw_routes.sh mv multiple_gw_routes.sh /etc/rc.d cd /etc/rc.d vi /etc/rc.d/rc.local /etc/rc.d/multiple_gw_routes.sh & cat /etc/rc.d/rc.local ls..
2023.11.06 -
Linux Teaming 설정 (Linux Teaming Configuration)
# Teaming Configuration sudo yum install teamd nmcli device status - 디바이스들의 DEVICE , TYPE , STATE , CONNECTION 의 정보를 조회 nmcli connection show - 네트워크 connection 상태를 확인 및 UUID 확인 nmcli connection delete con-name team0-port1 type team-slave ifname ens2f0 master team0 nmcli connection delete con-name team0-port2 type team-slave ifname ens2f1 master team0 nmcli connection add con-name team0-port1 typ..
2023.11.06 -
Linux ssh, sftp port 분리 (Linux ssh, sftp port separation)
# ssh, sftp port 분리 vi /etc/ssh/sshd_config Port 2222 Port 2121 Subsystem sftp /usr/libexec/openssh/sftp-server Match LocalPort 2121 AllowTcpForwarding no X11Forwarding no ForceCommand internal-sftp getenforce setenforce 0 systemctl enable sshd systemctl restart sshd setenforce 1 # firewall 설정 firewall-cmd --permanent --zone=public --add-port=2222/tcp firewall-cmd --permanent --zone=public --add..
2023.11.06 -
Linux Swap 설정 (Swap settings on Linux)
1. swapfile 생성 sudo fallocate -l 4GB .swapfile fallocate 명령어로 생성 안될 경우 아래 명령어로 생성. count 뒷부분이 swap file 용량 sudo dd if=/dev/zero of=.swapfile count=4096 bs=1MiB 2. swap file 권한 설정 sudo chmod 600 .swapfile 3. 스왑 포맷 형태로 파일 변환 sudo mkswap .swapfile 4. 스왑 파일 시스템 등록 sudo swapon .swapfile 5. 등록된 swap memory 확인 sudo swapon --summary free -h 6. 스왑 파일 삭제 6-1. 스왑 사용 비활성화 sudo swapoff .swapfile 6-2. 스왑 파일 삭..
2023.11.06 -
Linux ssh-keygen 생성 (Generate ssh-keygen)
# Linux ssh-keygen 생성 ssh-keygen -t rsa cat .ssh/id_rsa cat .ssh/id_rsa.pub cat .ssh/authorized_keys cat .ssh/known_hosts
2023.11.06