네트워크 정리16 vpn 과 (D)DNS 인터넷 연결 과정 다음은 DNS 서버가 사설 DDNS 서버를 사용하는 과정에 대한 설명입니다. 클라이언트가 도메인 이름을 입력합니다. 클라이언트는 DNS 서버에 쿼리를 보냅니다. DNS 서버는 공인 DNS 서버에 쿼리를 보냅니다. 공인 DNS 서버에서 해당 도메인의 IP 주소를 찾을 수 없습니다. DNS 서버는 사설 DDNS 서버에 쿼리를 보냅니다. 사설 DDNS 서버에서 해당 도메인의 IP 주소를 찾을 수 있습니다. DNS 서버는 해당 IP 주소를 클라이언트에 응답합니다. -------------------------------------- 동일 -------------------------------------------------------------------------------------------- 클라이언트.. 2023. 11. 2. ssh 관련정리 기본 개념 보통 openssh-client 는 깔려있지만 openssh-server 는 깔려 있지 않다. ssh를 받는 입장에서는 "openssh-server" lib 가 필요하다. apt update && apt install openssh-server sudo -y openssh-server 를 다운받고 service ssh restart 이거나 service ssh start // OK 가 뜨면 됨. ssh를 시작해준다. ssh 서버유저네임@서버포트URL ssh 서버유저네임@서버포트URL:포트포워딩포트 ssh finger print 없이 로그인 하는방법 1. 접속할 IP 의 키를 스캔한다. ssh-keyscan -H 172.29.0.5 2. 두번 확인 하는 절차인 finger print 를 진행 X.. 2022. 10. 9. gmqtt 예제 ( client -> handler -> agent 구조 ) 전제로 wsl : 버전 2 ( 버전2 필요함 docker 랑 쓰려면 ) 리눅스 : 우분투 20.04 LTS python : 3.8 version lib : uvloop, gmqtt 설치 필요 docker 에 EMQX 구현 후, 셋업까지 해서 컨테이너 start 상태 TEST 확인용 프로그램 : MQTT BOX 코드 설명 : 3초마다 특정 topic으로 publish (2개) -> mqtt box로 sub해서 확인 특정 topic sub -> mqtt box 로 publish 해서 message 찍어보는 TEST 코드 agent 파일 밑에 __main__ 코드로 실행 mqtt box 결과창 mqtt_client.py 코드 # !/usr/bin/python # -*- coding: utf-8 -*- #---.. 2022. 9. 4. gmqtt 예제 모음 저장 메모 https://programtalk.com/vs4/python/wialon/gmqtt/examples/resubscription.py/ python/wialon/gmqtt/examples/resubscription.py Example code examples for python/wialon/gmqtt/examples/resubscription.py. Learn how to use api python/wialon/gmqtt/examples/resubscription.py programtalk.com 2022. 9. 2. gmqtt ( Retain Message, Clean Session and Qos Table ) 참고 : http://www.steves-internet-guide.com/mqtt-clean-sessions-example/ MQTT Clean Sessions and QOS Examples A look at persistent and non persistent connections and how they are controlled using the clean session flag and how QOS settings affect them. www.steves-internet-guide.com 결론 부터 example 설명 : " client1 ( subscriber 구독 ) client2 ( publisher 게시) " 상황에서 client1 의 Clean Session Flag, Retain Fl.. 2022. 6. 29. MQTTbox 사용법 유언장 설명 https://www.hivemq.com/blog/mqtt-essentials-part-9-last-will-and-testament/ Last Will and Testament - MQTT Essentials: Part 9 Related Links Last Will and Testament - MQTT Essentials: Part 9 Written by The HiveMQ Team Category: MQTT Essentials MQTT Published: March 9, 2015 Welcome to the ninth part of MQTT Essentials. A ten-part blog series on the core features and concepts of the www.hive.. 2022. 6. 14. 이전 1 2 3 다음