免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2687 | 回复: 2
打印 上一主题 下一主题

求教:怎么映射这个IP??? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-12 18:55 |只看该作者 |倒序浏览
没法固定ip只有一个。

主要是想在222.222.222.222这台pix上发布192.168.101.6 的www,smtp,pop3这些端口。但怎么也发布不了,如果改成发布192.168.104.0这个网段的IP,就都可以发布。路由器之间没有做任何限制,pix和服务器可以互ping,谢谢了。






fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
no fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
names
access-list 120 permit tcp any host 222.222.222.222 eq smtp
access-list 120 permit tcp any host 222.222.222.222 eq pop3
access-list 120 permit tcp any host 222.222.222.222 eq domain
access-list 120 permit tcp any host 222.222.222.222 eq www
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 222.222.222.222 255.255.255.0
ip address inside 192.168.102.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 192.168.101.0 255.255.255.0 0 0
nat (inside) 1 192.168.102.0 255.255.255.0 0 0
nat (inside) 1 192.168.104.0 255.255.255.0 0 0
static (inside,outside) tcp 222.222.222.222 smtp 192.168.101.6 smtp netmask 255.255
.255.255 0 0
static (inside,outside) tcp 222.222.222.222 pop3 192.168.101.6 pop3 netmask 255.255
.255.255 0 0
static (inside,outside) tcp 222.222.222.222 ftp 192.168.104.16 ftp netmask 255.255.
255.255 0 0
static (inside,outside) tcp 222.222.222.222 www 192.168.101.6 www netmask 255.255.2
55.255 0 0
conduit permit icmp any any
conduit permit tcp host 222.222.222.222 eq smtp any
conduit permit tcp host 222.222.222.222 eq pop3 any
conduit permit tcp host 222.222.222.222 eq ftp any
conduit permit tcp host 222.222.222.222 eq www any
route outside 0.0.0.0 0.0.0.0 222.222.222.1 1
route inside 192.168.100.0 255.255.255.0 192.168.102.2 1
route inside 192.168.101.0 255.255.255.0 192.168.102.2 1
route inside 192.168.103.0 255.255.255.0 192.168.102.2 1
route inside 192.168.104.0 255.255.255.0 192.168.102.2 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server RADIUS protocol radius
aaa-server LOCAL protocol local
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
telnet 192.168.104.0 255.255.255.0 inside
telnet 192.168.101.10 255.255.255.255 inside
telnet timeout 5
ssh timeout 5
console timeout 0
terminal width 80
: end

未命名.jpg (19.67 KB, 下载次数: 13)

未命名.jpg

论坛徽章:
0
2 [报告]
发表于 2005-10-17 19:49 |只看该作者

求教:怎么映射这个IP???

搞定了。由于两边的服务器走的是各自的外网。在192.168.100.1路由器上做路由策略就可以了。两边的路由器都是华为的。

  acl 150 match-order auto
    rule normal permit ip source 192.168.101.6 0.0.0.0 destination any
  !
  acl 151 match-order auto
    rule normal permit ip source any destination any
  !
  interface Aux0
    async mode flow
    link-protocol ppp
  !
  interface Ethernet0
    ip address 192.168.101.10 255.255.255.0
    ip policy route-policy mailout
  !
  interface Ethernet1
    ip address 192.168.100.2 255.255.255.0
    firewall packet-filter 101 outbound
  !
  interface Serial0
    link-protocol ppp
  !
  interface Serial1
    clock DTECLK1
    link-protocol ppp
    ip address 192.168.103.1 255.255.255.0
  !
  quit
  route-policy mailout permit 10
    if-match ip address 150
    apply ip next-hop 192.168.103.2
  !
  quit

论坛徽章:
0
3 [报告]
发表于 2005-10-18 12:20 |只看该作者

求教:怎么映射这个IP???

多谢楼主分享你的成果和经验。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP