PIX site-to-site using PAT to Static

本文详细介绍了两台Cisco PIX防火墙的配置细节,包括接口设置、安全级别定义、地址转换规则、访问控制列表及IPSec隧道配置等。通过这些配置,实现了内外网之间的安全通信。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

出处:bu.cublog.cn

pix1(config)# wr t
: Saved
:
PIX Version 7.0(1)
names
!
interface Ethernet0
nameif outside
security-level 0
ip address 172.29.6.1 255.255.255.0
!
interface Ethernet1
nameif inside
security-level 100
ip address 10.1.1.1 255.255.255.0
!
interface Ethernet2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet3
shutdown
no nameif
no security-level
no ip address
!
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pix1
ftp mode passive
access-list BIGRADISH extended permit ip host 172.29.6.101 host 172.29.6.202
pager lines 24
mtu outside 1500
mtu inside 1500
no failover
monitor-interface outside
monitor-interface inside
no asdm history enable
arp timeout 14400
nat (inside) 0 access-list BIGRADISH
static (inside,outside) 172.29.6.101 100.1.1.254 netmask 255.255.255.255
route outside 172.29.1.0 255.255.255.0 172.29.6.254 1
route outside 172.29.6.202 255.255.255.255 172.29.6.2 1
route inside 100.1.1.0 255.255.255.0 10.1.1.254 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00
timeout mgcp-pat 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp
crypto ipsec transform-set TCY esp-aes-256 esp-none
crypto map BXZ 10 match address BIGRADISH
crypto map BXZ 10 set peer 172.29.6.2
crypto map BXZ 10 set transform-set BXZ
crypto map BXZ interface outside
isakmp enable outside
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption aes-256
isakmp policy 10 hash md5
isakmp policy 10 group 2
isakmp policy 10 lifetime 86400
isakmp policy 65535 authentication pre-share
isakmp policy 65535 encryption 3des
isakmp policy 65535 hash sha
isakmp policy 65535 group 2
isakmp policy 65535 lifetime 86400
telnet timeout 5
ssh timeout 5
console timeout 0
tunnel-group 172.29.6.2 type ipsec-l2l
tunnel-group 172.29.6.2 ipsec-attributes
pre-shared-key *
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map global_policy
class inspection_default
inspect dns maximum-length 512
inspect ftp
inspect h323 h225
inspect h323 ras
inspect netbios
inspect rsh
inspect rtsp
inspect skinny
inspect esmtp
inspect sqlnet
inspect sunrpc
inspect tftp
inspect sip
inspect xdmcp
================================================== ===

pix202(config)# wr t
: Saved
:
PIX Version 7.0(1)
names
!
interface Ethernet0
nameif outside
security-level 0
ip address 172.29.6.2 255.255.255.0
!
interface Ethernet1
nameif inside
security-level 100
ip address 20.1.1.1 255.255.255.0
!
interface Ethernet2
shutdown
no nameif
no security-level
no ip address
!
interface Ethernet3
shutdown
no nameif
no security-level
no ip address
!
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pix202
domain-name pix202
ftp mode passive
access-list nonat extended permit ip host 172.29.6.202 host 172.29.6.101
pager lines 24
mtu outside 1500
mtu inside 1500
no failover
monitor-interface outside
monitor-interface inside
no asdm history enable
arp timeout 14400
global (outside) 1 172.29.6.202
nat (inside) 0 access-list nonat
nat (inside) 1 20.0.0.0 255.0.0.0
route outside 10.1.1.0 255.255.255.0 172.29.6.1 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00
timeout mgcp-pat 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp
crypto ipsec transform-set test esp-aes-256 esp-none
crypto map test 20 match address nonat
crypto map test 20 set peer 172.29.6.1
crypto map test 20 set transform-set test
crypto map test interface outside
isakmp enable outside
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption aes-256
isakmp policy 10 hash md5
isakmp policy 10 group 2
isakmp policy 10 lifetime 80000
telnet timeout 5
ssh timeout 5
console timeout 0
tunnel-group 172.29.6.1 type ipsec-l2l
tunnel-group 172.29.6.1 ipsec-attributes
pre-shared-key *
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值