CISCO ASA5505在只有一个公网地址的情况下,做内部服务器端口映射供外网访问!!


      之前在网上找了很多资料,也没能解决。怎么没人说要做映射呢?今天半天时间终于搞定了。端口映射要做双向的,也就是做了内问到外部的映射后,反过来还得做外部到内部的映射。
以下是ASA 5505的配置资料,希望对大家有用:
ciscoasa# sh run
ciscoasa# sh running-config
: Saved
:
ASA Version 8.2(1)
!
hostname ciscoasa
enable password 2KFQnbNIdI.2KYOU encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
names
!
interface Vlan1
 nameif inside
 security-level 100
 ip address 192.168.1.254 255.255.255.0   //内网口地址
!
interface Vlan2
 nameif outside
 security-level 0
 ip address 192.168.0.222 255.255.255.0   //外网口地址
!
interface Ethernet0/0
 switchport access vlan 2                //将接口加入到区域VLAN 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
int
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值