软讯网络 > 冲浪宝典 > 冲浪技巧 > pix 单ip做nat及端口重定向
【标 题】:pix 单ip做nat及端口重定向
【关键字】:
pix,ip,nat
【来 源】:http://blog.chinaunix.net/article.php?articleId=5654&blogId=385
pix 单ip做nat及端口重定向
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 ouside security0
nameif ethernet1 inside security100
no fixup protocol skinny 2000
ip address outside 外网ip 掩码
ip address inside 内网ip 掩码
global (ouside) 1 interface
nat (inside) 1 0 0
static (inside,outside) tcp interface 25 内网ip 25 netmask 255.255.255.255
static (inside,outside) tcp interface 110 内网ip 110 netmask 255.255.255.255
access-list 101 permit any any
access-list 102 permit tcp any host xxxxx eq 25
access-list 102 permit tcp any host xxxxx eq 110
access-group 102 in interface outside
access-group 101 in interface inside
route outside 0 0 isp给你的网关地址
route inside 内网网段 内网路由器或者inside接口所在vlan的ip地址
telnet inside 0 0 //或是具体ip或网段均可