관리-도구
편집 파일: ipXtables.cpython-36.opt-1.pyc
3 @)�f�� � @ s( d dl Zd dlZd dlmZ d dlmZ d dlmZm Z m Z mZmZm Z mZmZ d dlmZ d dlmZmZmZmZmZ d dlmZmZmZmZmZmZmZ d dl Z dZ!d d dgdd gdd d d dgdd d gd d dgd�Z"ddd�Z#ddd�Z$dd� Z%dd� Z&dd� Z'G dd� de(�Z)G dd� de)�Z*dS )� N)�runProg)�log)�tempFile�readfile� splitArgs� check_mac�portStr�check_single_address� check_address�normalizeIP6)�config)� FirewallError�INVALID_PASSTHROUGH�INVALID_RULE� UNKNOWN_ERROR�INVALID_ADDR)�Rich_Accept�Rich_Reject� Rich_Drop� Rich_Mark�Rich_Masquerade�Rich_ForwardPort�Rich_IcmpBlock� �INPUT�OUTPUT�FORWARD� PREROUTING�POSTROUTING)�security�raw�mangle�nat�filterzicmp-host-prohibitedzicmp6-adm-prohibited)�ipv4�ipv6�icmpz ipv6-icmpc C s� ddddddd�}| dd� }x~|D ]v}y|j |�}W n tk rL w$Y nX |d kr�yt||d � W n tk r~ Y nX |j|d � || ||<