정보보안(시스템,네트워크)/네트워크


ARP LAN 통신 방법 : MAC 주소로 통신한다. ARP(Address Resolution Protocol) 주소를 재 해석 해주는 프로토콜 논리적인 주소(IP) 를 기반으로 물리적인 주소(MAC) 를 알아오는 기술 3계층 프로토콜 이지만 IP 하위에서 동작하는 프로토콜 특정 프로그램에 의해 호출되었을 때만 동작 함 주로 목적지 MAC 주소를 확인할 때 사용 됨 다양한 네트워크 환경에서 동작할 수 있음 ARP 동작 Request → Broadcast Reply → Unicast 리눅스에서 ARP 캐쉬 테이블(mac주소 ) 확인하기 더보기 리눅스에서 게이트웨이 정보 확인하기 # route -n Kernel IP routing table Destination Gateway Genmask Flags Met..


utmp 구조체 위치 /usr/include/utmp.h /usr/include/bits/utmp.h struct utmp { short int ut_type; /* Type of login. */ pid_t ut_pid; /* Process ID of login process. */ char ut_line[UT_LINESIZE]; /* Devicename. */ char ut_id[4]; /* Inittab ID. */ char ut_user[UT_NAMESIZE]; /* Username. */ char ut_host[UT_HOSTSIZE]; /* Hostname for remote login. */ struct exit_status ut_exit; /* Exit status of a process m..


리눅스 # man string.h # man unistd.h # man 3 printf int printf(const char *format, ...); printf("Hello\n"); scapy 프로토콜 헤더 https://cafe.naver.com/linuxmasternet/1084 IP 헤더 /usr/include/netinet/ip.h [root@mail.sbs.com ~]# head /etc/passwd root:x:0:0:root:/root:/bin/bash [root@mail.sbs.com ~]# vi /usr/include/pwd.h /* The passwd structure. */ struct passwd { char *pw_name; /* Username. */ char *pw_pas..


서로 다른 라우팅 프로토콜을 사용한 경우에는 Router Redistriubute(재분배)를 통해서 라우팅 정보를 교환할 수 있다. 참고 : Router Redistriubute(재분배) https://cafe.naver.com/linuxmasternet/289 다이나밉스 설정 R1 라우팅 프로토콜 : OSPF R2 라우팅 프로토콜 : OSPF, RIPv2 R3 라우팅 프로토콜 : RIPv2 R4 라우팅 프로토콜 : RIPv2 라우터 3 설정 Current configuration : 1229 bytes ! version 12.4 service timestamps debug datetime msec service timestamps log datetime msec no service password-en..


실습 > 라우팅 프로토콜 OSPF VyOS 인터페이스 eth0 : 첫 번째 NIC eth1 : 두 번째 NIC eth2 : 세 번째 NIC VyOS 로그인 정보 사용자 : vyos, 비밀번호 : vyos VyOS 설정 확인 sh ? sh interfaces sh nat sh protocols sh service sh system VyOS 설정 초기화 configure load /opt/vyatta/etc/config.boot.default commit save WAN 네트워크 인터페이스 설정 configure set interfaces ethernet eth2 address 192.168.8.254/24 set interfaces ethernet eth2 description VMnet8 디폴트 게이트웨..


실습> VyOS - Opensource Router 설치하기 VyOS는 데비안 GNU/Linux 기반의 오픈 소스 네트워크 운영 체제로 무료 라우팅 플랫폼을 제공한다. 다운로드 사이트 = https://www.vyos.io/ 다운로드 : https://downloads.vyos.io/?dir=rolling/current/amd64 https://docs.vyos.io/en/latest/ Permanent installation https://docs.vyos.io/en/latest/installation/install.html ID : vyos PW : vyos 설치 후에 ip주소 하나 잡고 ssh로 들어가기 $ configure (관리자 권한으로 들어가기) # set interfaces ethernet..


m.blog.naver.com/PostView.nhn?blogId=wizzard77&logNo=80188475629&proxyReferer=https:%2F%2Fwww.google.com%2F 터널링 연결 서버 : 외부 VMnet8 192.168.8.200 순서 1. 외부 HOST쪽 VMware 하나를 켜준다. (vmnet8로 된것) 2. pfsense 의 shell로 들어간다. (8번) 3. pfsense에서 shell모드에서 ssh -R 192.168.8.200:8000:192.168.1.254:80 192.168.8.200 (root로 접근) 4. 192.168.8.200에서 netstat -tnlp 로 8000번이 열린것을 확인한다. 5. 그리고 putty로 연결한다. 192.168.8.200의 ..


실습> VLSM을 이용한 네트워크 토폴로지 구성하기 210.20.30.0/24 네트워크를 VLSM 으로 서브네팅 설정하기 A기관 : 호스트 110개 B기관 : 호스트 60개 C기관 : 호스트 30개 D기관 : 호스트 14개 E기관 : 호스트 2개 F기관 : 호스트 2개 G기관 : 호스트 2개 VLSM을 하기 전 210.20.30.0/24 네트워크 개수 : 1개 호스트개수 : 256개 기관 네트웍 개수 호스트 개수 가용IP주소 서브넷 마스크 (255.255생략) 라우터 주소 PC주소 A 210.20.30.00000000 210.20.30.01111111 2개 0 ~ 127 (128개) 1~126 (126개) .255.128 /25 30.126 30.1 B 210.20.30.10000000 210.20.30..


www.subnet-calculator.com/subnet.php?net_class=C 가변길이 서브넷 (VLSM) 192.168.1.0 192.168.1.0 0000000 0 ~ 127 B기관 128개 192.168.1.1 0000000 128 ~255 ---> 다시 쪼개기 192.168.1.1 0000000 128 ~ 191 A기관 64개 192.168.1.1 1000000 192 ~ 255 ---> 다시 쪼개기 192.168.1.11 000000 192 ~ 223 C기관 32개 192.168.1.11 100000 224 ~ 255 실습 > VLSM / 위와 같이 나눈것을 패킷트레이서로 만들어보기 라우터 0번째 Router>EN Router#conf t Enter configuration comman..