六个基本命令
static:Configure a persistent one-to-one address translation rule by mapping a local IP address to a global IP address. This is also known as Static Port Address Translation (Stat ic PAT). (Configuration mode.)
static [(prenat_interface, postnat_interface)] {mapped_address| interface} real_address [dns] [netmask mask] [norandomseq]
[connection_limit [em_limit]]
show staticEBELinux联盟
EBELinux联盟
nameif,Name interfaces and assign security level. (Configuration mode.)EBELinux联盟
nameif hardware_id if_name security_levelEBELinux联盟
show nameif /clear nameifEBELinux联盟
EBELinux联盟
interface:Identify network interface speed and duplex. (Configuration mode.)EBELinux联盟
interface hardware_id [hardware_speed] [shutdown]EBELinux联盟
show interface hardware_id [hardware_speed] [shutdown]EBELinux联盟
EBELinux联盟
ip address:Identifies addresses for network interfaces, and enables you to set the number of times the PIX Firewall will
poll for DHCP information. (Configuration mode.)EBELinux联盟
ip address if_name ip_address [netmask]EBELinux联盟
ip address outside dhcp [setroute] [retry retry_cnt]EBELinux联盟
ip address if_name pppoe [setroute]EBELinux联盟
ip address if_name ip_address netmask pppoe [setroute]
show ipEBELinux联盟
Displays IP addresses assigned to the network interfaces.EBELinux联盟
show ip address if_name dhcpEBELinux联盟
Displays detailed information about the DHCP lease.EBELinux联盟
show ip address if_name pppoeEBELinux联盟
Displays detailed information about the PPPOE connection.EBELinux联盟
EBELinux联盟
global:Create or delete entries from a pool of global addresses. (Configuration mode.)EBELinux联盟
global [(if_name)] nat_id {global_ip [-global_ip] [netmask global_mask]} | interfaceEBELinux联盟
global [(if_name)] nat_id {{global_ip} [netmask global_mask] | interface}EBELinux联盟
show globalEBELinux联盟
EBELinux联盟
nat:Associate a network with a pool of global IP addresses. (Configuration mode.)EBELinux联盟
nat [(if_name)] id address [netmask [outside] [dns] [norandomseq] [timeout hh:mm:ss] [conn_limit [em_limit]]]EBELinux联盟
nat [(if_name)] 0 access-list acl_nameEBELinux联盟
show natEBELinux联盟
EBELinux联盟
routeEBELinux联盟
Enter a static or default route for the specified interface. (Configuration mode.)EBELinux联盟
route if_name ip_address netmask gateway_ip [metric]EBELinux联盟
show routeconduit..EBELinux联盟
联合使用static和conduit命令来只允许http访问。EBELinux联盟
pixfirewall(config)#static (inside,outside) 192.168.1.101 10.0.1.10 netmask 255.255.255.255EBELinux联盟
pixfirewall(config)#conduit per tcp any eq www host 172.16.1.1EBELinux联盟
conduit语法;EBELinux联盟
conduit deny|permit protocol | object-group protocol_obj_grp_id global_ip global_mask | object-group network_obj_grp_id
[operator port [port] | object-group service_obj_grp_id] foreign_ip foreign_mask | object-group network_obj_grp_id [operator
port [port] | object-group service_obj_grp_id]
作者:freebeme 出处:胜利的大熊猫
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论