Let’s start with a basic command that will get us HTTPS traffic: tcpdump -nnSX port 443 04:45:40.573686 IP 78.149.209.110.27782 > 172.30.0.144.443: Flags [.], ack 278239097, win 28, options [nop,nop,TS val 939752277 ecr 1208058112], length 0 0x0000: 4500 0034 0014 0000 2e06 c005 4e8e d16e E..4........N..n 0x0010: ac1e 0090 6c86 01bb 8e0a b73e 1095 9779 ....l......>...y 0x0020: 8010 001c d202 000..
Create a systemd drop-in directory for the docker service: $ sudo mkdir -p /etc/systemd/system/docker.service.d Create a file named /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:If you are behind an HTTPS proxy server, set the HTTPS_PROXY environment variable:Multiple environment variables can be set; to set both a non-HTTPS and a HTTPs proxy;..
보안 규정상 nc, nmap, telnet를 사용한 포트 스켄은 사용하지 않는 것을 원칙으로 합니다. 방법 echo > /dev/tcp// ex) 22 port open & 23 port close 사용 예) #echo > /dev/tcp/192.168.0.1/3389 # echo $? 0 연결 성공시 다른 메세지 없이 comand prompt로 돌아 옵니다. echo $? 로 0을 확인 하여 연결 성공을 확인 가능 합니다. #echo > /dev/tcp/192.168.0.1/3389 -bash: connect: Connection timed out -bash: /dev/tcp/192.168.0.1/3389: Connection timed out #echo $? 1
패키지 설치 ### install pkg yum install lsyncd lua rsync 로컬 서버 2개 패스 동기화 및 벤드위스 제한 및 오너쉽 변경 settings { logfile="/var/log/lsyncd/lsyncd.log", statusFile="/var/log/lsyncd/lsyncd-status.log" } sync { default.rsync, source="/lsync-data", target="/lsync-backup", rsync = { owner = true, group = true, chown = "nike:nike", _extra = {"--bwlimit=102400"} } } sync { default.rsync, source="/lsync-backup", target..
glusterfs 볼륨의 폴더의 리밋을 걸거나 전체 용량에서 제한하기 위해 사용한다. 1. 리스트 확인 [root@reni-glusterfs01 ~]# gluster volume quota glusterfs-storage list quota command failed : Quota is disabled, please enable quota 2. quota enable & 리스트 확인 [root@reni-glusterfs01 ~]# gluster volume quota glusterfs-storage enable volume quota : success [root@reni-glusterfs01 ~]# gluster volume quota glusterfs-storage list quota: No quota..
- auth.allow 등록 - 기본이 * 이며 등록 되면 나머지 아이피는 인증 실패로 마운트 불가하다. [root@reni-glusterfs01 brick1]# gluster volume set glusterfs-storage auth.allow 192.168.0.18 volume set: success - allow 확인 [root@reni-ansible ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 2.0G 0 2.0G 0% /dev tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 2.0G 9.1M 2.0G 1% /run tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/mapper/centos-..
glusterfs network interface를 따로 본딩 구성하는 방향으로 해야 네트워크 이슈가 적을 것이다. - 서버 정보 - glusterfs node info gluster01 / 192.168.0.19 gluster02 / 192.168.0.20 - client server reni-ansible / 192.168.0.16 /etc/hosts 192.168.0.18 reni-ansible 192.168.0.19gluster01.reni.comgluster01 192.168.0.20gluster02.reni.comgluster02 1. yum repository 추가 [root@reni-glusterfs01 ~]# yum install centos-release-gluster 2. Gluste..
리눅스 서버 사용 종료 시 특정 스크립트를 실행 하여 /root/shutdown_$(date +"%Y%m%d-%H-%M-%S").txt 파일 생성 다양한 용도의 스크립트를 서버 셧다운 시 응용 가능 Test os : centos 7 scripts : /usr/local/sbin/uploadLogsOnShutdown.sh systemd 서비스 파일 생성 : vi /etc/systemd/system/uploadLogsOnShutdown.service uploadLogsOnShutdown.service 내용 [Unit] Description=upload log files at shutdown DefaultDependencies=no Before=shutdown.target halt.target [Service..
- Total
- Today
- Yesterday
- 리눅스 커맨드 로그남기기
- dl20 g9 centos7 설치
- vm rac
- centos7 ntp
- dependency fail
- ios ansible
- 윈도우 cmd 계정 관리
- shell connmad log
- ISCSI 볼륨 RAC
- ansible ios
- cisco ansible
- dl20
- 특정 라인삭제
- DL20 GEN9 장비에 CentOS 7
- linux7 ntp
- 윈도우서버 계정 관려
- CentOS 7 GUI
- ansible network
- cgroup
- chrony
- windows.old 강제삭제
- cmd로 계정 생성
- ipmi
- nxos ansible
- nutanix rac
- linux command log
- cmd로 윈도우 계정 관리
- 특정 문구 치환
- ILO
- dl20 centos7
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |