안녕하세요.

 

오늘은 DUAL WAN구조에서 DDNS설정해보겠습니다.

 

Fortigate VM에서 설정해보겠습니다.

Fortigate VM은 DDNS CLI만 지원 합니다.

 

테스트 하기전에  DUAL WAN구조에서 IP SLA 부분을 설정 합니다. 

https://itblog-kr.tistory.com/124

 

[Fortigate-#19]- IP SLA

안녕하세요. 이번에는 Fortigate에서 IP SLA에 대해서 알아보겠습니다. 아래처럼 Fortigate입장에서 WAN 인터넷이 2개가 연결되어져 있고, AD값으로 WAN01이 MAIN internet WAN02가 BACKUP internet으로 동작중에

itblog-kr.tistory.com

 

현재 모든 TRAFFIC은 Default Gateway가 WAN01로 통신 합니다.

ISP01 - WAN01은 외부에 통신 가능

ISP02 - WAN02는 WAN01이 죽어야지 Default Gateway WAN02로 바뀌면서 통신 가능 합니다.

config system ddns
    edit 1
        set ddns-server FortiGuardDDNS
        set ddns-domain "fw1004.float-zone.com"
        set use-public-ip enable
        set update-interval 60
        set monitor-interface "port1" "port2"

 

디폴트 update-interval은 5분 입니다. 이 값은 1분으로 줄입니다. 

 

C:\Users\USER>ping fw1004.float-zone.com -t

Ping fw1004.float-zone.com [202.X.X.196] 32바이트 데이터 사용:
202.X.X.196의 응답: 바이트=32 시간=17ms TTL=245
202. X.X .196의 응답: 바이트=32 시간=10ms TTL=245
202. X.X .196의 응답: 바이트=32 시간=13ms TTL=245
202. X.X .196의 응답: 바이트=32 시간=16ms TTL=245
202. X.X .196의 응답: 바이트=32 시간=25ms TTL=245

202. X.X .196에 대한 Ping 통계:
    패킷: 보냄 = 5, 받음 = 5, 손실 = 0 (0% 손실),
왕복 시간(밀리초):
    최소 = 10ms, 최대 = 25ms, 평균 = 16ms
Control-C
^C
C:\Users\USER>
C:\Users\USER>nslookup fw1004.float-zone.com -t
^C
C:\Users\USER>nslookup fw1004.float-zone.com
서버:    UnKnown
Address:  43.245.107.6

권한 없는 응답:
이름:    fw1004.float-zone.com
Address:  202. X.X .196

 

Fortigate에서 WAN01에서 케이블을 제거 합니다.

DDNS서버에 정보가 업데이트되고 ROOT DNS서버까지 동기화 하기 위해서는 조금 시간이 걸립니다.

5분 정도 기다립니다.

 

라우팅 테이블은 port2으로 ISP2으로 변경 되었습니다. 

fortiGate-VM64-KVM # get router info routing-table all 
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default

Routing table for VRF=0
S*      0.0.0.0/0 [150/0] via 202. X.X .193, port2, [1/0]
C       10.1.1.0/24 is directly connected, port3

 

C:\Users\USER>ping fw1004.float-zone.com

Ping fw1004.float-zone.com [202. X.X .197] 32바이트 데이터 사용:
202. X.X .197의 응답: 바이트=32 시간=18ms TTL=245
202. X.X .197의 응답: 바이트=32 시간=11ms TTL=245
202. X.X .197의 응답: 바이트=32 시간=9ms TTL=245
202. X.X .197의 응답: 바이트=32 시간=7ms TTL=245

202. X.X .197에 대한 Ping 통계:
    패킷: 보냄 = 4, 받음 = 4, 손실 = 0 (0% 손실),
왕복 시간(밀리초):
    최소 = 7ms, 최대 = 18ms, 평균 = 11ms

C:\Users\USER> nslookup fw1004.float-zone.com
서버:    UnKnown
Address:  43.245.107.6

권한 없는 응답:
이름:    fw1004.float-zone.com
Address:  202.X.X.197

 

fortigate wan01 케이블을 다시 연결 합니다.

Default Gateway는 변경 되었습니다. 

FortiGate-VM64-KVM # get router info routing-table all
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default

Routing table for VRF=0
S*      0.0.0.0/0 [10/0] via 202. X.X .193, port1, [1/0]
C       10.1.1.0/24 is directly connected, port3

 

DDNS서버에 동기화 할때까지 시간이 좀 소요 됩니다. 5분을 기다립니다.

C:\Users\USER>ping fw1004.float-zone.com

Ping fw1004.float-zone.com [202.X.X.196] 32바이트 데이터 사용:
202. X.X .196의 응답: 바이트=32 시간=8ms TTL=245
202. X.X .196의 응답: 바이트=32 시간=12ms TTL=245
202. X.X .196의 응답: 바이트=32 시간=7ms TTL=245
202. X.X .196의 응답: 바이트=32 시간=7ms TTL=245

202. X.X .196에 대한 Ping 통계:
    패킷: 보냄 = 4, 받음 = 4, 손실 = 0 (0% 손실),
왕복 시간(밀리초):
    최소 = 7ms, 최대 = 12ms, 평균 = 8ms

C:\Users\USER> nslookup fw1004.float-zone.com
서버:    UnKnown
Address:  43.245.107.6

권한 없는 응답:
이름:    fw1004.float-zone.com
Address:  202. X.X .196


C:\Users\USER>

 

지금까지 [Fortigate-#21]- DDNS - Dual WAN 글을 읽어주셔서 감사합니다. 

안녕하세요.

 

이번에는 Fortigate DDNS 설정해보겠습니다.


fortigate hardware 제품은 DDNS GUI설정 가능합니다.

fortigate VM은 CLI로만 DDNS 설정 가능 합니다.

 

1. DNS -> DNS settings에서 FortiGuard DDNS를 Enable 합니다.

 

Interface: wan1

use public ip address: enable

Server:  3가지 서버중에 하나를 선택 합니다. 

Unique location: fw1004 hostname 이름

 

hostname 이름이 사용 가능 하면 availalable  표시가 됩니다.

만약에 다른 사람이 사용 하고 있으면 다른 hostname를 입력합니다.

 

저장합니다. A레코드가 등록되어서 DNS 서버에 등록되고 동기화 될때까지 약 시간이 좀 소요 됩니다.

5분 뒤에 

 

ping fw1004.fortiddns.com

또는 

nslookup fw1004.fortiddns.com

으로 공인 IP주소가 변경 되었는지 확인 합니다.

 

C:\Users\USER>ping fw1004.fortiddns.com

Ping fw1004.fortiddns.com [202.14. X.X ] 32바이트 데이터 사용:
202.14.X.X의 응답: 바이트=32 시간=9ms TTL=245
202.14. X.X 의 응답: 바이트=32 시간=5ms TTL=245
202.14. X.X 의 응답: 바이트=32 시간=6ms TTL=245
202.14. X.X 의 응답: 바이트=32 시간=6ms TTL=245

202.14. X.X 에 대한 Ping 통계:
    패킷: 보냄 = 4, 받음 = 4, 손실 = 0 (0% 손실),
왕복 시간(밀리초):
    최소 = 5ms, 최대 = 9ms, 평균 = 6ms

C:\Users\USER>nslookup
기본 서버:  UnKnown
Address:  43.245.107.6

> fw1004.fortiddns.com
서버:    UnKnown
Address:  43.245.107.6

권한 없는 응답:
이름:    fw1004.fortiddns.com
Address:  202.14. X.X

>

 

정상적으로 동작 합니다.

 

지금까지 [Fortigate-#20]- DDNS - Single WAN 글을 읽어주셔서 감사합니다. 

안녕하세요.

 

이번에는 Fortigate에서 IP SLA에 대해서 알아보겠습니다.

 

아래처럼 Fortigate입장에서 WAN 인터넷이 2개가 연결되어져 있고, AD값으로 

WAN01이 MAIN internet 

WAN02가 BACKUP internet으로 동작중에 INT-SW G0/0가 죽으면 Fortigate입장에서는 감지 할수 있는 방법이 없어서 계속 WAN01로 Traffic보내어서 PC가 통신이 불가능 합니다. 

 

WAN01 - Interface로 Ping 8.8.8.8 보내어서 응답이 없으면 Defualt Gateway를 WAN02변경해서 PC가 계속 외부로 통신이 가능 하도록 설정해보겠습니다. 

 

FortiGate-VM64-KVM # get router info routing-table all 
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default

Routing table for VRF=0
S*      0.0.0.0/0 [10/0] via 202.14.X.X, port1, [1/0]
C       10.1.1.0/24 is directly connected, port3

 

외부로 통신이 가능 합니다. 

 

INT-SW01에서 Int G0/0 Shutdown 합니다. 

en
conf t
int g0/0
sh

 

PC에서 통신이 불가능 합니다.

 

그 이유는 방화벽 입장에서 직접 물리적으로 연결된 링크가 죽은게 아니기때문에, 감지를 못합니다. 

계속 Port1로 패킷을 보내고 있습니다. 

 

FortiGate-VM64-KVM # get router info routing-table all
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default

Routing table for VRF=0
S*      0.0.0.0/0 [10/0] via 202.14.X.X, port1, [1/0]
C       10.1.1.0/24 is directly connected, port3

 

Fortigate 에서 IP SLA 설정 합니다.

FortiGate-VM64-KVM # config  system link-monitor 

FortiGate-VM64-KVM (link-monitor) # edit pri
new entry 'pri' added

FortiGate-VM64-KVM (pri) # set srcintf port1

FortiGate-VM64-KVM (pri) # set source-ip 202.14.X.X

FortiGate-VM64-KVM (pri) # set server 8.8.8.8

FortiGate-VM64-KVM (pri) # get
name                : pri
addr-mode           : ipv4 
srcintf             : port1 
server-config       : default 
server              : "8.8.8.8"
protocol            : ping 
gateway-ip          : 0.0.0.0
route               :
source-ip           : 202.14.X.X
interval            : 500
probe-timeout       : 500
failtime            : 5
recoverytime        : 5
probe-count         : 30
ha-priority         : 1
update-cascade-interface: enable 
update-static-route : enable 
update-policy-route : enable 
status              : enable 
diffservcode        : 000000
class-id            : 0
service-detection   : disable 


FortiGate-VM64-KVM (pri) #

FortiGate-VM64-KVM (pri) # show
config system link-monitor
    edit "pri"
        set srcintf "port1"
        set server "8.8.8.8"
        set source-ip 202.14.X.X
    next
end

 

FortiGate-VM64-KVM # diagnose sys link-monitor status pri

Link Monitor: pri, Status: dead, Server num(1), HA state: local(dead), shared(dead)
Flags=0x9 init log_downgateway, Create time: Fri Dec 27 18:45:55 2024
Source interface: port1 (3)
Source IP: 202.14.X.X
Interval: 500 ms
Service-detect: disable
Diffservcode: 000000
Class-ID: 0
  Peer: 8.8.8.8(8.8.8.8) 
        Source IP(202.14.X.X)
        Route: 202.14.X.X->8.8.8.8/32, gwy(202.14.X.X)
        protocol: ping, state: dead
                Packet lost: 100.000%
                Number of out-of-sequence packets: 0
                Recovery times(0/5) Fail Times(2/5)
                Packet sent: 18, received: 0, Sequence(sent/rcvd/exp): 19/0/0

 

PC가 정상적으로 외부로 통신이 가능 합니다. 

 

아래처럼 디폴트 게이트웨이가 Port2로 변경 되었습니다. 

FortiGate-VM64-KVM # get router info routing-table all
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default

Routing table for VRF=0
S*      0.0.0.0/0 [150/0] via 202.14.X.X, port2, [1/0]
C       10.1.1.0/24 is directly connected, port3

 

INT_SW01에서 int g0/0 no shutdown해서 인터페이스를 살립니다.

en
conf t
int g0/0
no sh

 

그리고 IP SLA상태를 확인 합니다. Status alive입니다. 

FortiGate-VM64-KVM # diagnose sys link-monitor status pri

Link Monitor: pri, Status: alive, Server num(1), HA state: local(alive), shared(alive)
Flags=0x1 init, Create time: Fri Dec 27 18:45:55 2024
Source interface: port1 (3)
Source IP: 202.14.X.X
Interval: 500 ms
Service-detect: disable
Diffservcode: 000000
Class-ID: 0
  Peer: 8.8.8.8(8.8.8.8) 
        Source IP(202.14.X.X)
        Route: 202.14.X.X->8.8.8.8/32, gwy(202.14.X.X)
        protocol: ping, state: alive
                Latency(Min/Max/Avg): 3.238/7.040/3.807 ms
                Jitter(Min/Max/Avg): 0.024/3.550/0.523 ms
                Packet lost: 51.000%
                Number of out-of-sequence packets: 0
                Fail Times(0/5)
                Packet sent: 881, received: 49, Sequence(sent/rcvd/exp): 882/882/883

FortiGate-VM64-KVM # 

 

라우팅 테이블을 확인 합니다.

Port2에서 Port1으로 변경 되었습니다. 

FortiGate-VM64-KVM # get router info routing-table all
Codes: K - kernel, C - connected, S - static, R - RIP, B - BGP
       O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default

Routing table for VRF=0
S*      0.0.0.0/0 [10/0] via 202.14.X.X, port1, [1/0]
C       10.1.1.0/24 is directly connected, port3

 

PC에서 확인 한 결과 정상적으로 동작 중 입니다. 

 

지금까지 [Fortigate-#19]- IP SLA  글을 읽어주셔서 감사합니다.

안녕하세요. 

 

오늘은 PNETLab에 ishare command에 대해서 알아보겠습니다.


EVE-NG는 시뮬레이션 이미지를 직접 다운로드 받아서 EVE-NG에 업로드 해야합니다.

하지만 PNETLab는 자체적으로 시뮬레이션 이미지 파일을 제공합니다. 

 

ishare command 통해서 다운로드 가능 합니다. 

 

putty를 통해서 pnetlab에 접속 합니다. 

root@pnetlab:~# ishare search

    Usage ishare [action] [param]

    action:
        search  :   Search images
        pull    :   Download image
        detail  :   Detail information of image
        help    :   Show this help page

    Example
    - ishare search vios
    - ishare pull vios-3.4.5
    - ishare detail vios-3.4.5

root@pnetlab:~#

 

ishare search 2019 검색해보겠습니다. 

root@pnetlab:~# ishare search 2019
<html><body><h1>403 Forbidden</h1>
Request forbidden by administrative rules.
</body></html>

Traceback (most recent call last):
  File "ishare.py", line 118, in <module>
  File "ishare.py", line 112, in main
  File "ishare.py", line 82, in search
TypeError: 'bool' object has no attribute '__getitem__'


 

등등 에러 메시지가 발생 합니다. 구글에 검색해보니 ishare제대로 동작안되는거 같습니다.

 

ishare2를 설치해서 사용 하면 정상적으로 작동합니다.

wget -O /usr/sbin/ishare2 https://raw.githubusercontent.com/ishare2-org/ishare2-cli/main/ishare2 > /dev/null 2>&1 && chmod +x /usr/sbin/ishare2 && ishare2

 

ishare2가 설치 됩니다. 

그냥 디폴트값으로 사용하면 되기때문에 그냥 Enter만 입력합니다. 

┌────────────────────────────────────────────────────────────────────────┐
│ Welcome to the ishare2 configuration wizard.                           │
│ - This wizard will guide you through the configuration process.        │
│ - Press Enter to accept the default value.                             │
│ - You can modify the configuration later by running: ishare2 config.   │
│ - Press Ctrl+C to cancel.                                              │
└────────────────────────────────────────────────────────────────────────┘
[+] Use aria2c for faster downloads? (default: no)
[+] (y/n):
[+] Check SSL certificate? (default: yes)
[+] (y/n):
[+] Choose the update channel.
 1) alpha
 2) beta
 3) main
[*] Enter the number of the branch you want to use (default: main):
[!] Using the default branch.
[+] Choose a mirror. (default: Rotate mirrors)
 1) Rotate mirrors (recommended)
 2) Google Drive mirror
 3) Onedrive mirror
 4) Custom mirror
[*] Enter the number of the mirror you want to use (default: 1):
[!] ishare2 will rotate among the available mirrors.
┌─────────────────────────────────────────────────────────────┐
│ Configuration completed successfully.                       │
│ You can start using ishare2!                                │
│ [!] IMPORTANT NOTICES:                                      │
│ - ishare2 is a free and open-source project. If you paid    │
│   for it, you have been scammed.                            │
│ - Do not download ishare2 from unofficial sources as they   │
│   may contain arbitrary code.                               │
└─────────────────────────────────────────────────────────────┘
┌────────────────────────────────────────────────────────────────┐
│ MOTD from the ishare2 team:                                    │
│ Changelog:                                                     │
│ - Fixed bug when doing integrity checks againts qemu images.   │
│                                                                │
│ Telegram: https://t.me/NetLabHub │
│ Donate: https://buymeacoffee.com/sudoalex │
│ GitHub: https://github.com/ishare2-org/ishare2-cli │
└────────────────────────────────────────────────────────────────┘
Syntax

ishare2 [action] [param1] [param2] [--overwrite]

action:
    search      : Search for images available on LabHub mirrors.
    pull        : Download an image by specifying the type and id.
    installed   : Shows images installed on the server.
    labs        : Shows available labs and downloads the images for the selected lab.
    mylabs      : Same as labs command but you can use a customized path.
    relicense   : Generates an iourc license for iol images.
    upgrade     : Shows a menu to upgrade ishare2 or PNETLab.
    test        : Test internet connectivity to required sites.
    help        : Shows full help information.

param1:
    type = all, iol, qemu, dynamips, docker or name.

param2:
    id = This can be obtained using ishare2 search <type>

--overwrite:
    Used to overwrite an existing image if it already exists on your system.

Try: ishare2 help for more information.

 

ishare2명령어로 2019 이미지를 검색합니다. 

제대로 검색 됩니다. 

root@pnetlab:~# ishare2 search 2019
┌────────────────────────────────────────────────────────────────┐
│ MOTD from the ishare2 team:                                    │
│ Changelog:                                                     │
│ - Fixed bug when doing integrity checks againts qemu images.   │
│                                                                │
│ Telegram: https://t.me/NetLabHub │
│ Donate: https://buymeacoffee.com/sudoalex │
│ GitHub: https://github.com/ishare2-org/ishare2-cli │
└────────────────────────────────────────────────────────────────┘
=============================
    Available QEMU images
=============================
ID    NAME                                             SIZE
--    ----                                             ----
605   linux-kali-large-2019.3                          11.8 GiB
606   linux-kali-large-2019.3                          4.2 GiB
607   linux-kali-large-2019.3                          4.2 GiB
933   viosl2-adventerprisek9-m-v152_6_0_81_e-20190423  39.2 MiB
935   viosl2-adventerprisek9-m.ssa.high_iron_20190423  42.9 MiB
1220  winserver-2019                                   7.6 GiB
1226  winserver-S2019-R2-x64-rev3                      6.0 GiB

7 QEMU images found for the term: "2019"

============================
    Available IOL images
============================
ID  NAME                                                          SIZE
--  ----                                                          ----
10  i86bi_Linux-L2-Adventerprisek9-ms.SSA.high_iron_20190423.bin  120.4 MiB
17  i86bi_linux_l2-adventerprisek9-ms.SSA.high_iron_20190423.bin  120.4 MiB
18  i86bi_linux_l2-adventerprisek9-ms.SSA.high_iron_20190423.bin  120.4 MiB

3 IOL images found for the term: "2019"

=================================
    Available DYNAMIPS images
=================================
ID  NAME  SIZE
--  ----  ----

No DYNAMIPS images found for the term: "2019"

root@pnetlab:~# ^C

 

저는 vios 이미지를 다운로드 받아서 설치해보겠습니다.

설치 방법

Usage: ishare2 pull <type> <id>
       ishare2 pull <type> all
Types: qemu, iol, dynamips

 

우선 검색을 합니다.

ishare2 search vios

root@pnetlab:~# ishare2 search vios
┌────────────────────────────────────────────────────────────────┐
│ MOTD from the ishare2 team:                                    │
│ Changelog:                                                     │
│ - Fixed bug when doing integrity checks againts qemu images.   │
│                                                                │
│ Telegram: https://t.me/NetLabHub │
│ Donate: https://buymeacoffee.com/sudoalex │
│ GitHub: https://github.com/ishare2-org/ishare2-cli │
└────────────────────────────────────────────────────────────────┘
=============================
    Available QEMU images
=============================
ID   NAME                                             SIZE
--   ----                                             ----
918  vios-15.5.3M                                     122.0 MiB
919  vios-adventerprisek9-m-15.4-1.3.0-181            116.0 MiB
920  vios-adventerprisek9-m-15.6.2T                   122.5 MiB
921  vios-adventerprisek9-m.SPA.154-3M8               116.4 MiB
922  vios-adventerprisek9-m.SPA.159-3.M2              46.9 MiB
923  vios-adventerprisek9-m.SPA.159-3.M3              54.6 MiB
924  vios-adventerprisek9-m.SPA.159-3.M3              54.2 MiB
925  vios-adventerprisek9-m.SPA.159-3.M4              54.1 MiB
926  vios-adventerprisek9-m.SPA.159-3.M6              54.2 MiB
927  vios-adventerprisek9-m.spa.158-3.m2              54.0 MiB
928  vios-adventerprisek9-m.spa.159-3.m2              47.4 MiB
929  vios-adventerprisek9-http://m.vmdk.SPA.157-3.M3 49.8 MiB
930  viosl2-15.2.4.55e                                92.4 MiB
931  viosl2-adventerpriseK9-M_152_May_2018            102.2 MiB
932  viosl2-adventerprisek9-m-15.2.4055               92.4 MiB
933  viosl2-adventerprisek9-m-v152_6_0_81_e-20190423  39.2 MiB
934  viosl2-adventerprisek9-m.SSA.high_iron_20180619  42.5 MiB
935  viosl2-adventerprisek9-m.ssa.high_iron_20190423  42.9 MiB
936  viosl2-adventerprisek9-m.ssa.high_iron_20200929  85.6 MiB

19 QEMU images found for the term: "vios"

============================
    Available IOL images
============================
ID  NAME  SIZE
--  ----  ----

No IOL images found for the term: "vios"

=================================
    Available DYNAMIPS images
=================================
ID  NAME  SIZE
--  ----  ----

No DYNAMIPS images found for the term: "vios"

root@pnetlab:~#

 

저는 아래처럼 rotuer이미지 한개, switch 이미지 한개를 설치 하겠습니다.

ID   NAME                                             SIZE
--   ----                                             ----

926  vios-adventerprisek9-m.SPA.159-3.M6              54.2 MiB

932  viosl2-adventerprisek9-m-15.2.4055               92.4 MiB

 

root@pnetlab:~# ishare2 pull qemu 926
[!] IMAGE INFO
 - Image Name       : vios-adventerprisek9-m.SPA.159-3.M6
 - Image Size       : 54.2 MiB
 - Image Type       : QEMU
 - Image ID         : 926
 - Image path       : /opt/unetlab/addons/qemu/vios-adventerprisek9-m.SPA.159-3.M6
 - Using host       : https://labhub.eu.org
[!] DOWNLOADING IMAGE
/opt/unetlab/addons/qemu/vi 100%[===========================================>]  54.17M  9.17MB/s    in 7.7s
[+] DOWNLOAD COMPLETED!
[-] Extracting: vios-adventerprisek9-http://m.SPA.159-3.M6.tgz file...
[+] Extracted: /opt/unetlab/addons/qemu/vios-adventerprisek9-m.SPA.159-3.M6. Image ready to use.
[-] Fixing permissions...

[+] Fix permissions command has been executed correctly

 

root@pnetlab:~# ishare2 pull qemu 932
[!] IMAGE INFO
 - Image Name       : viosl2-adventerprisek9-m-15.2.4055
 - Image Size       : 92.4 MiB
 - Image Type       : QEMU
 - Image ID         : 932
 - Image path       : /opt/unetlab/addons/qemu/viosl2-adventerprisek9-m-15.2.4055
 - Using host       : https://drive.labhub.eu.org
[!] DOWNLOADING IMAGE
/opt/unetlab/addons/qemu/vi 100%[===========================================>]  92.38M  7.03MB/s    in 12s
[+] DOWNLOAD COMPLETED!
[-] Fixing permissions...

[+] Fix permissions command has been executed correctly
root@pnetlab:~#

 

이제 PNETLab GUI접속 합니다. 

 

정상적으로 동작 합니다. 

지금까지 [PNETLab][#2]- ishare command 글을 읽어주셔서 감사합니다. 

안녕하세요. 

 

EVE-NG Community 무료 버전을 사용하고 있는데, SDWAN 테스트 할때 Jitter, Delay등등을 테스트 하기 위해서는 EVE-NG  PRO로 업그레이드 해야 합니다. 

 

그래서 이번에 PNETLab를 설치 하고 안정적인지 테스트 해볼 예정입니다. 그리고 만약에 안정적이면 EVE-NG에서 PNETLab으로 옮겨서 테스트 할 예정입니다. 

 

그럼 PNETLab를 설치해보겠습니다. 

 

1. PNETLab 공식 홈페이지에서 PNETLab 설치 파일 OVA을 다운로드 받습니다.

https://pnetlab.com/pages/download

 

PNETLab : Lab is Simple

Enable virtualization on Vmware

pnetlab.com

 

2. 저는 제 PC에 VMware Workstation이 설치되어져 있습니다. 여기에 PNETLab를 설치 하겠습니다. 

OVA파일을 더블 클릭 합니다.

 

PNETLab -> Edit Virtual Machine Setting를 클릭 합니다.

 

제 CPU 정보 입니다.

 

 

PNETLab를 실행 합니다.

 

DHCP를 통해서 IP주소를 받았습니다.

 

root/pnet 입력 합니다.

 

새로운 패스워드 입력

 

새로운 패스워드 다시 한번 입력

 

디폴트값 사용

 

DHCP or Static에서 Static 사용

 

IP주소를 입력 합니다. 

 

Subnet Mask 입력

 

Default-Gateway 입력

 

DNS 8.8.8.8 입력

 

두번째 DNS 입력 8.8.4.4

 

NTP 없이 ok 버튼 클릭

Direct Connect를 선택하고 OK

 

기본 설정이 끝났고 재부팅이 됩니다. 

 

로그인 후 Ping 확인

 

https://192.168.40.250를 브라우저에 입력 합니다. 

차이점은 아래와 같습니다. 

 

 

Online Mode

  • Need internet to work
  • Need to register.
  • Support full functions of PNETLab
  • You can download and use all Labs on the Store
  • You can share or sell lab to the Store
  • Limit 10 accounts (Can be upgraded)

Offline Mode: 

  • Don't need internet to work
  • Don't need to register. Login by default account: admin/pnet
  • Support full functions of PNETLab
  • You can only download and use Open Labs (The Labs with "Open" in the top) on the Store
  • You can not share or sell lab to the Store
  • Limit 10 accounts (Can be upgraded but require internet)

저는 Offline으로 설정 하겠습니다. 

 

admin/pnet 입력 하고 로그인 버튼을 클릭 합니다. 

 

정상적으로 로그인 되었습니다. 

 

지금까지 [PNETLab][#1]- Installation on VMware workstation 글을 읽어주셔서 감사합니다. 

 

안녕하세요.

 

VMware ESXi는 free version과 paid version 2가지가 있는데, 기능과 제약사항은 아래와 같습니다. 

  Free vSphere Hypervisor Paid vSphere Hypervisor
Expiration No time limits on free version Not applicable
Evaluation time 60-day trial of Enterprise Plus features Not applicable
Community Support VMTN Forums VMTN Forums
Maximum physical CPUs 2 768 (logical)
Maximum physical memory 16TB 16TB
Maximum vCPUs per VM 8 vCPUs 256 vCPUs
Maximum vRAM per VM 6TB 6TB
Official Support No Various SLAs available
Central Management (vCenter) No Supported
High Availability (HA) No Supported
Storage/Backup API usage (VADP) No Yes
Live migration of VMs (vMotion) No Supported
Load balancing of VMs (DRS) No Supported

 

VMware ESXi글도 올릴 예정입니다.

 

안녕하세요.

 

오늘은 Guest 유저를 위한 WLAN를 생성하고 간단하게 설정에 대해서 알아보겠습니다.

 

General Page

Profile Name: GUEST_SSID - WLC에서 Profle이름 입니다.

SSID: GUEST_SSID 실제 wifi SSID표시 할 SSID 입니다.

WLAN ID: WLC에서 WLAND ID입니다. 이 부분은 VLAN 정보가 아닙니다. 

Status: 이 WLAN를 Disable 또는 Endable 가능 합니다. 

Broadcase SSID: SSID를 숨길지 광고 할지 설정 합니다.

Disable를 선택시 PC에서 수동으로 SSID 입력해서 접속 해야 합니다. 

 

Radio Policy: 6G, 5G, 2.4G Enable 또는 Disable해서 광고 가능 합니다. 

 

이번장에서는 암호화 없는 Guest SSID를 생성해보겠습니다. 

None를 선택 합니다. 

 

P2P Blocking Action: Drop

GUEST-SSID 접속한 유저들끼리 같은 L2도메인이기 때문에 통신이 가능 합니다.

이 부분을 보안 때문에 Drop 합니다. 

 

per WLAN으로 Client 접속수를 제한을 가능 합니다.

Per AP per WLAN: AP당 WLAN최대 client 접속수

Per AP Radio Per WLAN: 200

즉 2.4G 랑 5G 각각 200명에 Client 허용 가능 합니다. 

 

Load Balancing : 여러 AP들이 있을때 Client를 분배해서 AP에 접속하게 합니다. 

Band Select: 5G가 속도가 더 좋기 때문에, PC가 2.4G/5G다 지원하면 5G로 접속 할수 있게 합니다. 

 

2. Configuration -> Tags & Profiles -> Policy 

Add버튼을 클릭 합니다.

 

Name: 이름을 정의 합니다.

Stuats: Policy enable 또는 Disable 합니다.

 

**** WLAN Switching Policy ****

Central Switching - Enabled 모드이면 AP Data traffic이 CAPWAP tunnel를 통해서 WLC로 전송 되면 Data Traffic를 WLC가 처리 합니다. 

Disabled 모드 이면 AP가 직접 Data를 처리 합니다.

Central Authentication - Enabled 모드이면 WLC가 직접 처리 합니다. 

Central DHCP -Enabled 모드이면 WLC가 DHCP기능을 수행 합니다. 

 

Policy에 VLAN를 입력 합니다. VLAN이 없으면 WLC에서 VLAN를 생성 합니다. 

Policy랑 WLAN이 Mapping이 되면 GUEST-SSID로 User가 붙으면 VLAN 110으로 인식 합니다. 

 

Idel Timeout를 28800으로 변경합니다. idel Timeout되면 SSID disconnect되는 증상을 방지 합니다. 

 

그리고 Apply to Device를 클릭 합니다. 

 

3. Policy Tag 를 생성합니다.

Configuration -> Tags & Orifukes -> Tag -> Policy

 Add 버튼을 클릭 합니다. 

 

아래처럼 설정하고 적용 버튼을 클릭 합니다. 

 

4. AP에 새로운 Policy Tag를 적용 합니다.

 

5. PC에서 SSID를 확인 합니다. 

아래처럼 GUEST_SSID가 암호화 없이 접속 가능 하게 표시 됩니다. 

 

6. DHCP 서버가 없어서 IP주소를 못 받아옵니다.

 

SW에서 DHCP 서버 기능을 설정 합니다.

ip dhcp pool VLAN110
 network 192.168.110.0 255.255.255.0
 dns-server 8.8.8.8 
 default-router 192.168.110.254 
!

 

IP주소를 Clinet에게 할당 하였습니다. 

SW01#show ip dhcp binding 
Bindings from all pools not associated with VRF:
IP address      Client-ID/              Lease expiration        Type       State      Interface
                Hardware address/
                User name
192.168.110.1   013e.6d3f.25af.12       Dec 27 2024 07:16 AM    Automatic  Active     Vlan110
SW01#

 

WLC에서 GUI Clinet를 확인 합니다.

 

[C9800CL][#9]- WLAN Guest  지금까지 글을 읽어주셔서 감사합니다.

 

안녕하세요.

 

오늘은 Zabbix 7.2 설치해보겠습니다.

 

Ubuntu 24.04.01 LTS

Zabbix 7.2

 

https://www.zabbix.com/download?zabbix=7.2&os_distribution=ubuntu&os_version=22.04&components=server_frontend_agent&db=mysql&ws=apache

 

Download and install Zabbix

Talk to experts Benefit from expert advice and best practices for all Zabbix-related matters Get technical advice Get instant access to a team of Zabbix experts for guaranteed professional support 24x7 Obtain knowledge Focused, comprehensive training for a

www.zabbix.com

 

Zabbix Version 7.2

Ubuntu

22.04

Server. Frontend, Agent

MySQL

Apache

를 선택하면 설치 방법이 아래 표시 됩니다.

아래 처럼 따라 하면 됩니다. 


1. root 권환 획

sudo -s

 

2.  Install Zabbix repository

 wget https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.2+ubuntu24.04_all.deb
 dpkg -i zabbix-release_latest_7.2+ubuntu24.04_all.deb
 apt update

 

kevin@kevin-virtual-machine:~$ sudo -s
[sudo] password for kevin: 
root@kevin-virtual-machine:/home/kevin# wget https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.2+ubuntu22.04_all.deb
--2024-12-25 22:23:37--  https://repo.zabbix.com/zabbix/7.2/release/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.2+ubuntu22.04_all.deb
Resolving repo.zabbix.com (repo.zabbix.com)... 178.128.6.101, 2604:a880:2:d0::2062:d001
Connecting to repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7288 (7,1K) [application/octet-stream]
Saving to: ‘zabbix-release_latest_7.2+ubuntu22.04_all.deb’

zabbix-release_latest_7.2+ubun 100%[===================================================>]   7,12K  --.-KB/s    in 0s      

2024-12-25 22:23:38 (1,30 GB/s) - ‘zabbix-release_latest_7.2+ubuntu22.04_all.deb’ saved [7288/7288]

root@kevin-virtual-machine:/home/kevin# dpkg -i zabbix-release_latest_7.2+ubuntu22.04_all.deb
Selecting previously unselected package zabbix-release.
(Reading database ... 166576 files and directories currently installed.)
Preparing to unpack zabbix-release_latest_7.2+ubuntu22.04_all.deb ...
Unpacking zabbix-release (1:7.2-1+ubuntu22.04) ...
Setting up zabbix-release (1:7.2-1+ubuntu22.04) ...
root@kevin-virtual-machine:/home/kevin# apt update
Hit:1 http://id.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://id.archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]                             
Hit:3 http://id.archive.ubuntu.com/ubuntu jammy-backports InRelease                                    
Get:4 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]                              
Get:5 https://repo.zabbix.com/zabbix/7.2/release/ubuntu jammy InRelease [2.424 B] 
Get:6 https://repo.zabbix.com/zabbix-tools/debian-ubuntu jammy InRelease [2.476 B]
Get:7https://repo.zabbix.com/zabbix/7.2/stable/ubuntu jammy InRelease [3.920 B]
Get:8 https://repo.zabbix.com/zabbix/7.2/release/ubuntu jammy/main Sources [521 B]
Get:9 https://repo.zabbix.com/zabbix/7.2/release/ubuntu jammy/main all Packages [391 B]
Get:10 https://repo.zabbix.com/zabbix-tools/debian-ubuntu jammy/main Sources [1.166 B]
Get:11 https://repo.zabbix.com/zabbix-tools/debian-ubuntu jammy/main all Packages [766 B]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [576 kB]
Get:13 https://repo.zabbix.com/zabbix/7.2/stable/ubuntu jammy/main Sources [4.173 B]
Get:14 https://repo.zabbix.com/zabbix/7.2/stable/ubuntu jammy/main amd64 Packages [7.770 B]
Get:15 https://repo.zabbix.com/zabbix/7.2/stable/ubuntu jammy/main all Packages [1.983 B]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2.006 kB]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [317 kB]
Get:18 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [43,1 kB]
Get:19 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [13,3 kB]
Get:20 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages [38,2 kB]
Get:21 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2.711 kB]
Get:22 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [472 kB]                                
Get:23 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 DEP-11 Metadata [208 B]                          
Get:24 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [580 B]                           
Get:25 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [958 kB]                                  
Get:26 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [648 kB]                                   
Get:27 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [204 kB]                                  
Get:28 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [126 kB]                           
Get:29 http://security.ubuntu.com/ubuntu jammy-security/universe DEP-11 48x48 Icons [82,0 kB]                             
Get:30 http://security.ubuntu.com/ubuntu jammy-security/universe DEP-11 64x64 Icons [122 kB]                              
Get:31 http://security.ubuntu.com/ubuntu jammy-security/universe DEP-11 64x64@2 Icons [29 B]                              
Get:32 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [19,5 kB]                           
Get:33 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [37,6 kB]                               
Get:34 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages [1.356 B]                                
Get:35 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [8.260 B]                               
Get:36 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 DEP-11 Metadata [208 B]                          
Get:37 http://security.ubuntu.com/ubuntu jammy-security/multiverse DEP-11 48x48 Icons [29 B]                              
Get:38 http://security.ubuntu.com/ubuntu jammy-security/multiverse DEP-11 64x64 Icons [29 B]                              
Get:39 http://security.ubuntu.com/ubuntu jammy-security/multiverse DEP-11 64x64@2 Icons [29 B]                            
Get:40 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [224 B]                           
Fetched 8.667 kB in 9s (980 kB/s)                                                                                         
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository ' https://repo.zabbix.com/zabbix/7.2/stable/ubuntu jammy InRelease' doesn't support architecture 'i386'

 

3. Zabbix 7.2 install

apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

 

root@kevin-VMware-Virtual-Platform:/home/kevin# apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils fonts-dejavu fonts-dejavu-extra fping libapache2-mod-php
  libapache2-mod-php8.3 libapr1t64 libaprutil1-dbd-sqlite3 libaprutil1-ldap libaprutil1t64 libevent-core-2.1-7t64
  libevent-extra-2.1-7t64 libevent-pthreads-2.1-7t64 libmodbus5 libmysqlclient21 libodbc2 libopenipmi0t64 mysql-client
  mysql-client-8.0 mysql-client-core-8.0 mysql-common php-bcmath php-common php-curl php-gd php-ldap php-mbstring php-mysql
  php-xml php8.3-bcmath php8.3-cli php8.3-common php8.3-curl php8.3-gd php8.3-ldap php8.3-mbstring php8.3-mysql
  php8.3-opcache php8.3-readline php8.3-xml snmpd
Suggested packages:
  apache2-doc apache2-suexec-pristine | apache2-suexec-custom php-pear odbc-postgresql tdsodbc snmptrapd zabbix-nginx-conf
  virtual-mysql-server
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils fonts-dejavu fonts-dejavu-extra fping libapache2-mod-php
  libapache2-mod-php8.3 libapr1t64 libaprutil1-dbd-sqlite3 libaprutil1-ldap libaprutil1t64 libevent-core-2.1-7t64
  libevent-extra-2.1-7t64 libevent-pthreads-2.1-7t64 libmodbus5 libmysqlclient21 libodbc2 libopenipmi0t64 mysql-client
  mysql-client-8.0 mysql-client-core-8.0 mysql-common php-bcmath php-common php-curl php-gd php-ldap php-mbstring php-mysql
  php-xml php8.3-bcmath php8.3-cli php8.3-common php8.3-curl php8.3-gd php8.3-ldap php8.3-mbstring php8.3-mysql
  php8.3-opcache php8.3-readline php8.3-xml snmpd zabbix-agent zabbix-apache-conf zabbix-frontend-php zabbix-server-mysql
  zabbix-sql-scripts
0 upgraded, 49 newly installed, 0 to remove and 7 not upgraded.
Need to get 32.9 MB of archives.
After this operation, 208 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libapr1t64 amd64 1.7.2-3.1ubuntu0.1 [108 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble/main amd64 libaprutil1t64 amd64 1.6.3-1.1ubuntu7 [91.9 kB]
Get:3 https://repo.zabbix.com/zabbix/7.2/stable/ubuntu noble/main amd64 zabbix-server-mysql amd64 1:7.2.1-1+ubuntu24.04 [1,754 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.3-1.1ubuntu7 [11.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble/main amd64 libaprutil1-ldap amd64 1.6.3-1.1ubuntu7 [9,116 B]
Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 apache2-bin amd64 2.4.58-1ubuntu8.5 [1,329 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 apache2-data all 2.4.58-1ubuntu8.5 [163 kB]                 
Get:8 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 apache2-utils amd64 2.4.58-1ubuntu8.5 [97.1 kB]             
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 apache2 amd64 2.4.58-1ubuntu8.5 [90.2 kB]                   
Get:10 http://archive.ubuntu.com/ubuntu noble/main amd64 snmpd amd64 5.9.4+dfsg-1.1ubuntu3 [59.6 kB]                        
Get:11 http://archive.ubuntu.com/ubuntu noble/main amd64 libevent-core-2.1-7t64 amd64 2.1.12-stable-9ubuntu2 [91.3 kB]      
Get:12 http://archive.ubuntu.com/ubuntu noble/main amd64 libevent-extra-2.1-7t64 amd64 2.1.12-stable-9ubuntu2 [64.2 kB]     
Get:13 http://archive.ubuntu.com/ubuntu noble/main amd64 libevent-pthreads-2.1-7t64 amd64 2.1.12-stable-9ubuntu2 [7,982 B]  
Get:14 http://archive.ubuntu.com/ubuntu noble/main amd64 mysql-common all 5.8+1.1.0build1 [6,746 B]                         
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libmysqlclient21 amd64 8.0.40-0ubuntu0.24.04.1 [1,254 kB]  
13% [15 libmysqlclient21 944 kB/1,254 kB 75%] [3 zabbix-server-mysql 98.0 kB/1,754 kB 6%]

 

4. mysql를 설치 합니다

apt-get install mysql-server

 

5. mysql를 시작하고 재부팅 되어도 자동으로 실행 되게 설정합니다.

systemctl start mysql
systemctl enable mysql

 

6. initial database

mysql -uroot -p

default password 없음

mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;

mysql> create user zabbix@localhost identified by 'Password123!@#';         ->password는 zabbix user password를 입력 합니다. 
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;

 

root@kevin-VMware-Virtual-Platform:/home/kevin# mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.40-0ubuntu0.24.04.1 (Ubuntu)

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
Query OK, 1 row affected (0.01 sec)

mysql> create user zabbix@localhost identified by 'Password123!@#'; 
Query OK, 0 rows affected (0.03 sec)

mysql> grant all privileges on zabbix.* to zabbix@localhost;
Query OK, 0 rows affected (0.01 sec)

mysql> set global log_bin_trust_function_creators = 1;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> quit;
Bye
root@kevin-VMware-Virtual-Platform:/home/kevin# 

 

7. On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.

zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

 

약 3분정도가 소요됩니다. 다른 키보드를 누르지 말고 기다립니다. 

root@kevin-VMware-Virtual-Platform:/home/kevin# zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
Enter password: 
root@kevin-VMware-Virtual-Platform:/home/kevin# 

 

8. Disable log_bin_trust_function_creators option after importing database schema.

# mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;

 

9. Configure the database for Zabbix server

vim   /etc/zabbix/zabbix_server.conf

 

vim이 실행되지 않으면 아래와 같이 설치 합니다.

apt-get install vim

 

DBPassword= password를 입력합니다. 아까 db 생설할때 password입니다.

 

그리고 저장 합니다.

 

10. Start Zabbix server and agent processes

 systemctl restart zabbix-server zabbix-agent apache2
systemctl enable zabbix-server zabbix-agent apache2

 

11. http://host/zabbix 입력합니다

 

디폴트 Username/Password

Admin/zabbix

 

지금까지 [ZABBIX][#4]-Zabbix 7.2 Install 글을 읽어주셔서 감사합니다.

안녕하세요.

 

오늘은 Zabbix 설치 하기전에 Ubuntu 24.04.01 package들을 업데이트하고 업그레이드 하겠습니다.

 

1. 아래 명령어를 입력 합니다. 

sudo apt-get update

 

kevin@kevin-VMware-Virtual-Platform:~$ sudo apt-get update
[sudo] password for kevin:
Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
Get:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Get:4 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [572                     kB]
Get:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Get:6 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [111                     kB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [7,                    256 B]
Get:8 http://security.ubuntu.com/ubuntu noble-security/main Icons (48x48) [11.3                     kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/main Icons (64x64) [17.1                     kB]
Get:10 http://security.ubuntu.com/ubuntu noble-security/main amd64 c-n-f Metadat                    a [5,892 B]
Get:11 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Package                    s [560 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages [15.0 MB]
Get:13 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-e                    n [108 kB]
Get:14 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Compone                    nts [212 B]
Get:15 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 c-n-f M                    etadata [424 B]
Get:16 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages                     [795 kB]
Get:17 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en                     [169 kB]
Get:18 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Component                    s [52.0 kB]
Get:19 http://security.ubuntu.com/ubuntu noble-security/universe Icons (48x48) [                    47.0 kB]
Get:20 http://security.ubuntu.com/ubuntu noble-security/universe Icons (64x64) [                    73.4 kB]
Get:21 http://security.ubuntu.com/ubuntu noble-security/universe Icons (64x64@2)                     [29 B]
Get:22 http://security.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f Met                    adata [13.5 kB]
Get:23 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Package                    s [12.2 kB]
Get:24 http://security.ubuntu.com/ubuntu noble-security/multiverse Translation-e                    n [2,940 B]
Get:25 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Compone                    nts [208 B]
Get:26 http://security.ubuntu.com/ubuntu noble-security/multiverse Icons (48x48)                     [29 B]
Get:27 http://security.ubuntu.com/ubuntu noble-security/multiverse Icons (64x64)                     [29 B]
Get:28 http://security.ubuntu.com/ubuntu noble-security/multiverse Icons (64x64@                    2) [29 B]
Get:29 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 c-n-f M                    etadata [356 B]
24% [12 Packages 2,964 kB/15.0 MB 20%]

 

2. 아래 명령어를 입력해서 Upgrade합니다.

sudo apt-get upgrade

 

아래 처럼 Y를 입력해서 Upgrade 합니다. 

kevin@kevin-VMware-Virtual-Platform:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
  python3-distupgrade ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
The following packages have been kept back:
  gnome-control-center linux-generic-hwe-24.04 linux-headers-generic-hwe-24.04
  linux-image-generic-hwe-24.04
The following packages will be upgraded:
  acl alsa-ucm-conf amd64-microcode apparmor apport apport-core-dump-handler apport-gtk bubblewrap
  cloud-init cpp-13 cpp-13-x86-64-linux-gnu cups cups-browsed cups-bsd cups-client cups-common
  cups-core-drivers cups-daemon cups-ipp-utils cups-ppdc cups-server-common distro-info-data
  dmidecode dmsetup evince evince-common firmware-sof-signed fwupd gcc-13-base gcc-14-base
  ghostscript gir1.2-glib-2.0 gir1.2-gnomebluetooth-3.0 gir1.2-gstreamer-1.0 gir1.2-gtk-3.0
  gir1.2-javascriptcoregtk-4.1 gir1.2-javascriptcoregtk-6.0 gir1.2-mutter-14 gir1.2-nm-1.0
  gir1.2-packagekitglib-1.0 gir1.2-soup-3.0 gir1.2-webkit-6.0 gir1.2-webkit2-4.1
  gnome-bluetooth-3-common gnome-bluetooth-sendto gnome-control-center-data
  gnome-control-center-faces gnome-initial-setup gnome-shell gnome-shell-common
  gnome-shell-extension-appindicator gnome-shell-extension-ubuntu-dock gstreamer1.0-alsa
  gstreamer1.0-gl gstreamer1.0-packagekit gstreamer1.0-pipewire gstreamer1.0-plugins-base
  gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good gstreamer1.0-tools gstreamer1.0-x
  gtk-update-icon-cache heif-gdk-pixbuf heif-thumbnailer initramfs-tools initramfs-tools-bin
  initramfs-tools-core intel-microcode ipp-usb krb5-locales ldap-utils libacl1 libapparmor1
  libarchive13t64 libatomic1 libaudit-common libaudit1 libcryptsetup12 libcups2t64
  libcupsfilters2-common libcupsfilters2t64 libcupsimage2t64 libcurl3t64-gnutls libcurl4t64
  libdevmapper1.02.1 libegl-mesa0 libevdocument3-4t64 libevview3-3t64 libexpat1 libfwupd2 libgbm1
  libgcc-s1 libgl1-mesa-dri libglapi-mesa libglib2.0-0t64 libglib2.0-bin libglib2.0-data
  libglx-mesa0 libgnome-bluetooth-3.0-13 libgnome-bluetooth-ui-3.0-13 libgomp1 libgs-common
  libgs10 libgs10-common libgsf-1-114 libgsf-1-common libgssapi-krb5-2 libgstreamer-gl1.0-0
  libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgstreamer1.0-0 libgtk-3-0t64
  libgtk-3-bin libgtk-3-common libheif-plugin-aomdec libheif-plugin-aomenc libheif-plugin-libde265
  libheif1 libipa-hbac0t64 libjavascriptcoregtk-4.1-0 libjavascriptcoregtk-6.0-1 libk5crypto3
  libkrb5-3 libkrb5support0 libldap-common libldap2 libmpg123-0t64 libmutter-14-0 libnm0
  libnss-sss libopenjp2-7 libpackagekit-glib2-18 libpam-sss libpipewire-0.3-0t64
  libpipewire-0.3-common libpipewire-0.3-modules libppd2 libppd2-common libproc2-0
  libpython3.12-minimal libpython3.12-stdlib libpython3.12t64 libsoup-2.4-1 libsoup-3.0-0
  libsoup-3.0-common libsoup2.4-common libspa-0.2-bluetooth libspa-0.2-modules libspeex1
  libssl3t64 libsss-certmap0 libsss-idmap0 libsss-nss-idmap0 libstdc++6 libsysmetrics1 libtiff6
  libudisks2-0 libwebkit2gtk-4.1-0 libwebkitgtk-6.0-4 libxatracker2 linux-firmware linux-libc-dev
  linux-tools-common login mesa-vulkan-drivers mtr-tiny mutter-common mutter-common-bin nano
  network-manager network-manager-config-connectivity-ubuntu openssl openvpn packagekit
  packagekit-tools passwd pipewire pipewire-alsa pipewire-audio pipewire-bin pipewire-pulse procps
  python3-apport python3-pkg-resources python3-problem-report python3-software-properties
  python3-sss python3-update-manager python3-urllib3 python3.12 python3.12-minimal snapd
  software-properties-common software-properties-gtk ssh-import-id sssd sssd-ad sssd-ad-common
  sssd-common sssd-ipa sssd-krb5 sssd-krb5-common sssd-ldap sssd-proxy systemd-hwe-hwdb thermald
  ubuntu-advantage-desktop-daemon ubuntu-drivers-common ubuntu-pro-client ubuntu-pro-client-l10n
  ubuntu-report ubuntu-settings udisks2 unzip update-manager update-manager-core vim-common
  vim-tiny xdg-desktop-portal xserver-common xserver-xephyr xserver-xorg-core xserver-xorg-legacy
  xwayland xxd zip
226 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 718 MB of archives.
After this operation, 23.7 MB of additional disk space will be used.
N: Some packages may have been kept back due to phasing.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 login amd64 1:4.13+dfsg1-4ubuntu3.2 [202 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libexpat1 amd64 2.6.1-2ubuntu0.2 [87.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libpython3.12t64 amd64 3.12.3-1ubuntu0.3 [2,333 kB]
0% [3 libpython3.12t64 1,322 kB/2,333 kB 57%]

 

업그레이드가 완료 될때까지 기다립니다. 

kevin@kevin-VMware-Virtual-Platform:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
kevin@kevin-VMware-Virtual-Platform:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
  python3-distupgrade ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
The following packages have been kept back:
  gnome-control-center linux-generic-hwe-24.04 linux-headers-generic-hwe-24.04
  linux-image-generic-hwe-24.04
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
N: Some packages may have been kept back due to phasing.
kevin@kevin-VMware-Virtual-Platform:~$

 

더이상 업데이트 할것이 없습니다.

 

지금까지 [ZABBIX][#3]-Ubuntu 24.04.01 update/upgrade 글을 읽어주셔서 감사합니다.

 

'NMS Tools > ZABBIX' 카테고리의 다른 글

[ZABBIX][#4]-Zabbix 7.2 Install  (1) 2024.12.26
[ZABBIX][#2]-Ubuntu 24.04.01 ssh install  (0) 2024.12.25
[ZABBIX][#1]-Ubuntu 24.04.01 LTS Install  (0) 2024.12.25

안녕하세요.

 

오늘은 Ubuntu 24.04.01에 ssh server를 설치해서 PC에서 Putty 또는 CRT통해서 접속 하겠습니다.

 

1. 아래처럼 openssh-server를 설치 합니다. 

sudo apt-get install openssh-server

 

2. 재부팅 되어도 자동으로 ssh server가 실행되도록 아래 명령어를 입력 합니다. 

sudo systemctl enable ssh
sudo systemctl status ssh

 

 

3. PC에서 putty를 이용해서 192.168.10.117 SSH 접속하면 아래와 같이 접속 가능 합니다.

 

지금까지 [ZABBIX][#2]-Ubuntu 24.04.01 ssh install 글을 읽어주셔서 감사합니다. 

'NMS Tools > ZABBIX' 카테고리의 다른 글

[ZABBIX][#4]-Zabbix 7.2 Install  (1) 2024.12.26
[ZABBIX][#3]-Ubuntu 24.04.01 update/upgrade  (0) 2024.12.25
[ZABBIX][#1]-Ubuntu 24.04.01 LTS Install  (0) 2024.12.25

+ Recent posts