본문 바로가기
728x90

분류 전체보기239

[리눅스] Apache Web Server.pdf 23.03.31 2023. 3. 31.
[리눅스] 23.03.31 2023.03.31 - [네트워크 수업/리눅스] - Grub 접근 보안.pdf 23.03.31 Grub Grub전에는 LILO라는게 있었다. Micro사에 부트로더는 msconfig가 설정되어있다. [root@centos7 heejae]# vi /etc/default/grub ==>그냥 확인 [root@centos7 heejae]# vi /boot/grub2/grub.cfg ==>관리자도 건드리면안되는 [root@centos7 heejae]# vi /etc/grub2.cfg ==>위에거와 동일 마지막줄에 cat 최고관리자는 grubadmin으로 password grubadmin 1111 EOF 적기 //grub으로 들어가려고 e 키 눌렀는데 그 키를 못누르게 하는것. e를 누르면 비밀번호를 묻겠다. [r.. 2023. 3. 31.
[리눅스] 23.03.31 교재 : 2023.03.31 - [네트워크 수업] - 네트워크운영관리.pdf (telnet과 ssh의 차이점) 23.03.31 지난 수업 이어서 : 2023.03.30 - [네트워크 수업/리눅스] - [리눅스] 서버구축 (리눅스의 보안정책 selinux) 23.03.30 R1] R1(config)#username admin password cisco123 R1(config)#line vty 0 4 R1(config-line)#login local R1(config-line)#enable password cisco123 Win702 로 이동 cmd => ping 192.168.10.254 telnet local 지우고 텔넷 내부 패스워드 설정해보기 R1(config)#line vty 0 4 R1(confi.. 2023. 3. 31.
[따라] 리눅스 권한 permission 07. 권한의 이해와 설정 방법 - 이론 07. 권한의 이해와 설정 방법 - 권한 설정 실습 더보기 https://www.youtube.com/watch?v=G2rokpXyO58&list=PL0d8NnikouEVcV3eb4hKvH5BccI2AaVGJ&index=21 07. 권한의 이해와 설정 방법 - 이론 리눅스는 모든것을 파일/디렉터리로 관리한다(ip설정하는것 마저도) 읽시/쓰기/실행 ls -l 명령어로 확인 가능 처음 d는 directory 저 뜻을 해석해보자면 내가 만약 root그룹 안에있는 abc사용자라고 했을때, 소유자권한은 X, 관리그룹권한은 읽고 실행만 가능 내가 만약 root그룹 밖에있는 qwe사용자라고 했을때, 나머지권한인 읽기만 가능. 심볼릭 모드 VS 옥텟(8진수 0~7)모드 r : .. 2023. 3. 31.
[리눅스] 서버구축 (리눅스의 보안정책 selinux)/프로젝트관련(1) 23.03.30 2023.03.30 - [네트워크 수업/리눅스] - [리눅스] 서버구축 (리눅스의 보안정책 selinux)/프로젝트관련(1) 23.03.30 2023.03.31 - [네트워크 수업/리눅스] - [리눅스] 아파치 - 프로젝트관련(2) 23.03.31 2023.04.03 - [네트워크 수업/리눅스] - [리눅스] 프로젝트관련(3) 23.04.03 리눅스의 보안정책을 셀 리눅스라고 한다. 프로그램설치하려면 selinux에 걸린다. 그래서 해제해야함. [root@centos7 temp]# vi /etc/sysconfig/selinux [root@centos7 temp]# setenforce 0 ==>1차방화벽 해제(근데 다시 재부팅하면 해제가 풀림) [root@centos7 temp]# firewall-conf.. 2023. 3. 30.
[리눅스] 허가권(numeric/symbolic) 23.03.30 [root@centos7 temp]# yum -y remove vi ==> yum 삭제 Loaded plugins: fastestmirror, langpacks No Match for argument: vi No Packages marked for removal yum은 인터넷이 되야한다. 어댑터를 bridge로 설정 [root@centos7 temp]# vi /etc/sysconfig/network-scripts/ifcfg-ens33 BOOTPROTO=dhcp NAME=ens33 DEVICE=ens33 ONBOOT=yes #IPADDR=192.168.10.100 #GATEWAY=192.168.10.254 #NETMASK=255.255.255.0 #NETWORK=192.168.10.0 #BROADCAST.. 2023. 3. 30.
외워야할 이론 23.03.30 23.03.31 ip tcp udp 는 헤더구조 암기해야한다. sink포인트?? ipv4 데이터그램 >>첫번째줄 : 버전 / 헤더길이 / 서비스 유형 / 전체길이 헤더부분 20바이트 버전 4비트 (0100) 헤더길이 5비트 (0101) 5*32비트 = 160 나누기 8 =>20바이트(헤더포함) (최대 60바이트) type of service 데이터는 request reply가 끝난다음에 간다. 2023.03.21 - [네트워크 수업] - QoS합본 (FromPDF).pdf 23.03.21 23.03.27 QoS Prec의 숫자가 높을수록 계급이 높다(5까지 줄수있음) QoS(Quality of Service) 서비스 품질 제어에 이용되며, TOS(Type of Service)필드 라고도 한다.(지금은 안쓴다) D : D.. 2023. 3. 30.
[리눅스] RPM 23.03.29 rpm 파일 .i386.rpm 에서 i 는 intel rpm 사용법 설치 : rpm -i 삭제 : rpm RPM 보기 [root@centos7 temp]# rpm -aq | grep vim ==> 이게 vi 다. vim-common-7.4.629-7.el7.x86_64 vim-minimal-7.4.629-7.el7.x86_64 vim-enhanced-7.4.629-7.el7.x86_64 vim-filesystem-7.4.629-7.el7.x86_64 [root@centos7 user1]# df ==>마운트 테이블을 보는 간단한 명령어 Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 480776 0 480776 0% /dev tmpfs 49785.. 2023. 3. 29.
[리눅스] linux package installation.pdf 23.03.29 2023. 3. 29.
[실습] EIGRP 부하분산(2) 23.03.29 point multi 상관x 기본 설정 & 라우팅 더보기 공통] int s1/0 no shut encap frame no frame inver clock rate 64000 R1] int s1/0.12 m ip add 1.1.12.1 255.255.255.0 frame map ip 1.1.12.2 102 br int loo0 ip add 1.1.1.1 255.255.255.0 int s1/0.12 R2] int s1/0.12 m ip add 1.1.12.2 255.255.255.0 frame map ip 1.1.12.1 201 brint loo0 ip add 1.1.2.2 255.255.255.0 int s1/0.23 m ip add 1.1.23.2 255.255.255.0 fram map ip 1.1... 2023. 3. 29.
[실습] EIGRP 부하분산 23.03.28 int s1/0 no shut encap frame no frame inverse R1] R1(config-if)#int s1/0.12 p R1(config-subif)#ip add 28.28.12.1 255.255.255.0 R1(config-subif)#frame int 102 br R1(config-subif)#int s1/0.13 p R1(config-subif)#ip add 28.28.13.1 255.255.255.0 R1(config-subif)#frame int 103 br R1(config-fr-dlci)#int loo0 R1(config-if)#ip add 28.28.1.1 255.255.255.0 R2] R2(config-if)#int s1/0.12 p R2(config-subif)#i.. 2023. 3. 28.
[리눅스] 리눅스 압축 도구.pdf 23.03.28 2023. 3. 28.
[리눅스] 압축하기 tar, 압축풀기 gz 23.03.28 압축을한게 tar gz가 압축풀기 압축하기 [root@centos7 temp]# touch a b c d e ==>디렉터리 만들기 [root@centos7 temp]# tar -cvf test.tar ./a ./b ./c ./d ./e ==> test에다 디렉터리 묶기 ./a ./b ./c ./d ./e [root@centos7 temp]# ls test.tar [root@centos7 temp]# mv test.tar / [root@centos7 temp]# rm -rf ./* [root@centos7 temp]# gzip /test.tar [root@centos7 temp]# ls /test.tar* /test.tar.gz [root@centos7 temp]# gzip -d /test.tar.gz [.. 2023. 3. 28.
[리눅스] 사용자계정, 홈디렉터리 변경, 유저 패스워드 23.03.28 참고 : 2023.03.28 - [네트워크 수업/리눅스] - 사용자계정.pdf [root@centos7 ~]# cat /etc/passwd | more ==> |(파이프)는 앞 명령어 실행하고 뒤에거 실행해다오 라는 뜻 root:x:0:0:root:/root:/bin/bash ==> x가 패스워드(우리는 못알아봄) : 0은 user아이디 : 그다음0은 admin아이디 : root는 코맨트 : /root는 root사용자가 쓰는 홈디렉터리 : /bin/bash 는 명령어 해석기 shell중에 bone again shell을 쓴다. [root@centos7 ~]# cat /etc/shadow | more ==>보안을 요하는 특수계정이 여기에 들어있다. root:$6$pwFHMPUP5SAhjihb$jbphBZa.. 2023. 3. 28.
[리눅스] vmware와 연결 23.03.27 입력 리다이렉션 > : 입력 리다이렉션 c 하면 c로 병합된다. [root@centos7 /]# mkdir -p /test1/test2 [root@centos7 /]# touch /test1/test2/a [root@centos7 /]# cat >> /test1/test2/a this is test file :qw! ^Z [1]+ Stopped cat >> /test1/test2/a [root@centos7 /]# [root@centos7 /]# mkdir /test7 [root@centos7 /]# cp -r /test1/* /test7/ =>통째로 복사 [root@centos7 /]# ls -R /test7 =.. 2023. 3. 27.
[실습] EIGRP와 RIP 23.03.27 참고 2023.03.14 - [네트워크 수업] - [실습] DRP(Dynamic Routing Protocol) - RIP (2) Partial Mesh 23.03.14 27.27.0.0 /16 24bit mask 기본 설정 int s1/0 no shut encap frame no frame inver R1] int loo0 ip add 27.27.1.1 255.255.255.0 int s1/0 ip add 27.27.123.1 255.255.255.0 frame map ip 27.27.123.2 102 br frame map ip 27.27.123.2 103 br R2] int loo0 ip add 27.27.2.2 255.255.255.0 int s1/0.123 m ip add 27.27.123.2 .. 2023. 3. 27.
[실습] Dynamic Routing Protocol - EIGRP 23.03.27 EIGRP 하이브리드 프로토콜이라고도 한다. 이름을 가지고 통신한다(rip은 아님) 서로 hello를 주고 받는다. R1과R2가 끊기면 neighbor도 끊긴다. 그럼 삥~!~ 돌아서 간다. loopback은 죽을일이 없어서 루프백으로 아이디를 주는것이다. IGP RIP IGRP Distance Vector // rip과 igrp는 auto summarize splite horizen 현상이 있다 EIGRP Hybrid ISIS OSPF Link Stats EGP EGP BGPv4 1. Cisco 사에서 개발 2. Hybrid -> Distance Vector 라우팅 프로토콜의 장점과 Link Stats 라우팅 프로토콜의 장점을 취했다. 3. 224.0.0.10 을 사용 4. Metric -> Bandw.. 2023. 3. 27.
[실습] 이번주 총정리 NAT DHCP pool 23.03.24 ##ip address ISP] int f0/0 no shu ip add 24.24.10.254 255.255.255.0 int f0/1 no shut ip add 1.1.12.9 255.255.255.252 int f1/0 no shut ip add dhcp R2] int f0/0 no shut ip add 1.1.30.254 255.255.255.0 int f0/1 no shut ip add 1.1.12.10 255.255.255.252 ============== ##DHCP넣기 ISP] ip dhcp pool NET10 network 24.24.10.0 /24 lease 8 default-router 24.24.10.0254 dns-server 168.126.63.1 8.8.8.8 class CLA.. 2023. 3. 24.
[리눅스] fstab, 복사, 시간 23.03.23 검은창이 켜질 때 vi /etc/fstab :wq # shutdown -r now fstab = 자동마운트되는 설정이 여기 들어간다. [heejae@centos7 ~]$ su 암호: [heejae@centos7 heejae]# cd.. cd..: Command not found. [heejae@centos7 heejae]# cd .. [heejae@centos7 /home]# cd .. [heejae@centos7 /]# ls drive* drive2: drive3: test3 [heejae@centos7 /]# ls bin dev drive3 home lib64 mnt proc run srv tem tmp var boot drive2 etc lib media opt root sbin sys temp u.. 2023. 3. 23.
[실습] IPv6 load balancing (2) 23.03.23 ASW] ASW(config)#no ip routing ASW(config)#vlan 10 ASW(config-vlan)#name IPv4 ASW(config-vlan)#exit ASW(config)#vlan 20 ASW(config-vlan)#name IPv6 ASW(config-vlan)#exit ASW(config)#int f1/0 ASW(config-if)#sw mo ac ASW(config-if)#sw ac vlan 10 ASW(config-if)#int f1/1 ASW(config-if)#sw mod ac ASW(config-if)#sw ac vlan 20 DSW1] DSW1(config)#vlan 10 DSW1(config-vlan)#name IPv4 DSW1(config-vlan)#vlan.. 2023. 3. 23.
728x90