관리-도구
편집 파일: zone.cpython-36.pyc
3 @)�f�M � @ s d ddgZ ddljZddlZddlZddlZddlmZ ddlm Z m Z mZmZm Z mZmZ ddlmZmZ ddlmZmZmZmZ dd lmZmZmZmZ dd lmZ ddlm Z ddlm!Z! dd l"m#Z# G dd � d e�Z$G dd� de�Z%ddd�Z&ddd�Z'dS )�Zone�zone_reader�zone_writer� N)�config)�checkIPnMask� checkIP6nMask�checkInterface�uniqify�max_zone_name_len� u2b_if_py2� check_mac)�DEFAULT_ZONE_TARGET�ZONE_TARGETS)�PY2� IO_Object�IO_Object_ContentHandler�IO_Object_XMLGenerator)�common_startElement�common_endElement�common_check_config� common_writer)�rich)�log)�errors)� FirewallErrorc sf e Zd ZdZd@dAdBdCdDd dgfd dEgfddgfdFd dGgfddgfddgfddgfddgfddHgfdIdJfZdddgZddddgddgdgdgdddgdgddddgddgddddddgdgdd�Zddddgd gd!d"gd#d$gd%d&d'd#d(gd%d'd(gd)d*gd+gd,gd-� Zed.d/� �Z � fd0d1�Z d2d3� Zd4d5� Z� fd6d7�Z � fd8d9�Zd:d;� Z� fd<d=�Zd>d?� Z� ZS )Kr z Zone class �version� �short�description�UNUSEDF�target�services�ports�icmp_blocks� masquerade� forward_ports� interfaces�sources� rules_str� protocols�source_ports�icmp_block_inversion�forward�_�-�/N�name�port�protocol�value�set)r r �zone�servicer1 z icmp-blockz icmp-typer, zforward-port� interface�rule�source�destinationr2 zsource-portr ZauditZaccept�rejectZdropZmark�limitzicmp-block-inversion� immutableZenabledzto-portzto-addr�familyZpriority�address�mac�invert�ipset�prefix�level�typeZburst) r5 r$ zforward-portr8 r9 r: r r; r<