[Information]/[Ahnlab] TrustGuard

[Ahnlab] TrustGuard CLI Commands - Address(주소) 생성

starterr 2024. 5. 14. 10:44
반응형

Address 생성

#>conf
- conf 모드로 접근

/conf#>object ip_address
* ip_address 옵션
- ipv4_address : ipv4 주소 관련
- ipv4_group : ipv4 주소 그룹 관련
- ipv6_address : ipv6 주소 관련
- ipv6_group : ipv6 주소 그룹 관련

/conf#>object ip_address ipv4_address MODE
- refcnt : 해당 주소 정책 사용 수 확인
- add : Address add ( 주소 추가 )
- mod : Address mod ( 주소 수정 )
- del : Address del ( 주소 삭제 )
- list : Address list ( 주소 리스트 확인 )
- search : Address Search List ( 주소 검색 )

/conf#>object ip_address ipv4_address add NAME
<name> name : Address명 입력

/conf#>object ip_address ipv4_address add test TYPE
0 type(0:host). Host - host ip 주소 타입(32비트)
1 type(1:CIDR). CIDR - CIDR 방식의 주소 타입
2 type(2:range). Range - 대역 단위의 주소 타입

/conf#>object ip_address ipv4_address add test 0 IP
<ipaddress> ip - IP 입력

/conf#>object ip_address ipv4_address add test 0 100.100.100.100 MASK
32-32 mask_host - 32비트 호스트 아이피 넷마스크 입력

/conf#>object ip_address ipv4_address add test 0 100.100.100.100 32 NIF
<name> nif - 설정할 인터페이스 지정

/conf#>object ip_address ipv4_address add test 0 100.100.100.100 32 eth2 공백
<empty> Empty string - "" 공백 추가

/conf#>object ip_address ipv4_address add test 0 100.100.100.100 32 eth2 "" DESC
<text> desc - Comment에 기입됨("" - empty string 으로 처리 )

/conf#>object ip_address ipv4_address add test 0 100.100.100.100 32 eth2 "" 0 Virtual_id
<name> virtual_id - 처음 생성 시 0으로 생성 or empty string 으로 처리

/conf#>object ip_address ipv4_address add test 0 100.100.100.100 32 eth2 "" 0 0 ZONE
<name> ZONE - 설정을 원하는 ZONE 설정 (ex.외부/내부/ALL 등)

 

반응형


주소 생성 최종 템플릿
/conf#>object ip_address ipv4_address MODE NAME TYPE IP MASK NIF "" DESC Virtual_id ZONE

*예시
/conf#>object ip_address ipv4_address add test 0 100.100.100.100 32 eth2 "" "" 0 ALL
-> 이름 : test
-> IPv4주소 : 100.100.100.100
-> Zone : ALL
-> NIF : eth2
-> 참조수 : 0
-> 설명 : -


* 주소 생성 시 CLI Command 한 줄로 한 개 생성이 가능하므로,
많은 주소 생성 시 상당히 편리한 부분이 있으며, 생성 후, GUI 접근하여 적용-> 정책/설정 동기화 필요

* Address Name 중복 생성 시, 덮어쓰여지지 않고 커맨드는 무시됨

* 주소 생성 시, 커맨드 중간에 empty string ("") 필수 추가 <<<--------- Command Error 주의

 

[Ahnlab] TrustGuard CLI Commands - Service Group (서비스 그룹) 생성

 

[Ahnlab] TrustGuard CLI Commands - Service Group (서비스 그룹) 생성

Service Group 생성#>conf - conf 모드로 접근/conf#>object service - service : service 포트 관련 - group : service group 관련 /conf#>object service group MODE - refcnt : 해당 서비스 그룹 정책 사용 수 확인 - add : Service group add

infoofit.tistory.com

 

[Ahnlab] TrustGuard CLI Commands - Schedule(스케줄) 생성

 

[Ahnlab] TrustGuard CLI Commands - Schedule(스케줄) 생성

Schedule 생성#>conf  - conf 모드로 접근 /conf#>object schedule * schedule 옵션 - refcnt : get schedule object reference count ( 해당 스케줄 정책 사용 수 확인 ) - add : Time add ( 스케줄 추가 )  - m

infoofit.tistory.com

 

 

반응형