관리-도구
편집 파일: fw_zone.cpython-36.pyc
3 @)�fy� � @ s� d dl Z d dlZd dlmZmZmZ d dlmZ d dlm Z d dl mZ d dlm Z mZmZmZmZmZmZmZmZ d dlmZmZmZ d dlmZ d d lmZ d d lmZ G dd� de �Z!dS ) � N)� SHORTCUTS�DEFAULT_ZONE_TARGET�SOURCE_IPSET_TYPES)�FirewallTransaction)�Policy)�log) �Rich_Service� Rich_Port� Rich_Protocol�Rich_SourcePort�Rich_ForwardPort�Rich_IcmpBlock� Rich_IcmpType�Rich_Masquerade� Rich_Mark)�checkIPnMask� checkIP6nMask� check_mac)�errors)� FirewallError)�LastUpdatedOrderedDictc @ sN e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zd�dd �Zd!d"� Zd#d$� Zd%d&� Zd�d'd(�Zd)d*� Zd+d,� Zd-d.� Zd�d/d0�Zd�d1d2�Zd3d4� Zd5d6� Zd7d8� Zd9d:� Zd;d<� Z d=d>� Z!d�d@dA�Z"dBdC� Z#d�dDdE�Z$d�dFdG�Z%d�dHdI�Z&dJdK� Z'dLdM� Z(dNdO� Z)d�dQdR�Z*d�dSdT�Z+d�dUdV�Z,dWdX� Z-d�dYdZ�Z.d�d[d\�Z/d]d^� Z0d_d`� Z1dadb� Z2d�dcdd�Z3dedf� Z4dgdh� Z5didj� Z6dkdl� Z7dmdn� Z8dodp� Z9d�dqdr�Z:dsdt� Z;dudv� Z<dwdx� Z=d�dydz�Z>d{d|� Z?d}d~� Z@dd�� ZAd�d�d��ZBd�d�� ZCd�d�� ZDd�d�� ZEd�d�� ZFd�d�d��ZGd�d�� ZHd�d�� ZId�d�� ZJd�d�d��ZKd�d�� ZLd�d�� ZMd�d�� ZNd�d�d��ZOd�d�� ZPd�d�� ZQd�d�d��ZRd�d�d��ZSd�d�d��ZTd�d�� ZUd�d�d��ZVd�d�� ZWd�d�� ZXd�d�� ZYd�d�d��ZZd�d�� Z[d�d�� Z\d�d�� Z]d�d�� Z^d�d�� Z_d�d�d��Z`d�d�� Zad�d�dZbd�dĄ Zcd�dƄ ZddS )��FirewallZoner c C s || _ i | _i | _d S )N)�_fw�_zones�_zone_policies)�self�fw� r �/usr/lib/python3.6/fw_zone.py�__init__&