设为首页 收藏本站
查看: 537|回复: 0

[经验分享] Cisco pix515e配置

[复制链接]

尚未签到

发表于 2018-7-15 11:31:55 | 显示全部楼层 |阅读模式
  外网ip  188.188.188.144--151  255.255.255.248
  广播号:151  网络号:144  网关 145
  内网二个网段:199.199.199.0 255.255.255.0
  168.168.0.0  255.255.0.0
  pix# wr t
  Building configuration...
  : Saved
  :
  PIX Version 6.3(5)
  interface ethernet0 auto
  interface ethernet1 auto
  nameif ethernet0 outside security0
  nameif ethernet1 inside security100
  enable password 8Ry2YjIyt7RRXU24 encrypted
  passwd u7sKZqFIgmvnwMCU encrypted
  hostname pix
  domain-name who.com
  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 http 1080
  fixup protocol pptp 1723
  fixup protocol rsh 514
  fixup protocol rtsp 554
  fixup protocol sip 5060
  fixup protocol sip udp 5060
  fixup protocol skinny 2000
  //去除mailguard防护,外网用pop3才不出问题
  no fixup protocol smtp 25
  fixup protocol sqlnet 1521
  fixup protocol tftp 69
  names
  pager lines 24
  logging on
  mtu outside 1500
  mtu inside 1500
  ip address outside 188.188.188.147 255.255.255.248
  ip address inside 199.199.199.147 255.255.255.0
  ip audit info action alarm
  ip audit attack action alarm
  no failover
  failover timeout 0:00:00
  failover poll 15
  no failover ip address outside
  no failover ip address inside
  pdm logging informational 100
  pdm history enable
  arp timeout 14400
  global (outside) 1 interface
  global (outside) 1 188.188.188.146
  nat (inside) 1 0.0.0.0 0.0.0.0 0 0
  route outside 0.0.0.0 0.0.0.0 188.188.188.145 1
  route inside 168.168.0.0 255.255.0.0 168.168.55.3 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 sip-disconnect 0:02:00 sip-invite 0:03:00
  timeout uauth 0:05:00 absolute
  aaa-server TACACS+ protocol tacacs+
  aaa-server TACACS+ max-failed-attempts 3
  aaa-server TACACS+ deadtime 10
  aaa-server RADIUS protocol radius
  aaa-server RADIUS max-failed-attempts 3
  aaa-server RADIUS deadtime 10
  aaa-server LOCAL protocol local
  http server enable
  http 192.168.1.0 255.255.255.0 inside
  no snmp-server location
  no snmp-server contact
  snmp-server community public
  no snmp-server enable traps
  floodguard enable
  telnet 199.199.199.0 255.255.255.0 inside
  telnet timeout 10
  ssh timeout 5
  console timeout 0
  dhcpd ping_timeout 750

  terminal>  静态映射
  ***************************************
  static (inside,outside) udp 188.188.188.146 8044 199.199.199.1 8044 netmask 255.255.255.255 0 0
  //
  static (inside,outside) tcp 188.188.188.146 smtp 199.199.199.151 smtp netmask 255.255.255.255 0 0
  static (inside,outside) tcp 188.188.188.146 pop3 199.199.199.151 pop3 netmask 255.255.255.255 0 0
  static (inside,outside) tcp 188.188.188.146 www 199.199.199.151 www netmask 255.255.255.255 0 0
  static (inside,outside) tcp 188.188.188.146 https 199.199.199.151 https netmask 255.255.255.255 0 0
  //允许ping命令..
  conduit permit icmp any any
  no conduit permit tcp any any
  no conduit permit udp any any
  //
  conduit permit udp host 188.188.188.146 eq 8044 any
  //
  conduit permit tcp host 188.188.188.146 eq smtp any
  conduit permit tcp host 188.188.188.146 eq pop3 any
  conduit permit tcp host 188.188.188.146 eq www any
  conduit permit tcp host 188.188.188.146 eq https any
  访问列表
  access-list 101 permit ip 199.199.199.1 255.255.255.255 any
  access-list 101 permit tcp 199.199.199.151 255.255.255.255 any eq 25
  access-list 101 permit tcp 199.199.199.151 255.255.255.255 any eq 110
  access-list 101 permit tcp 199.199.199.151 255.255.255.255 any eq 80
  access-list 101 permit tcp host 199.199.199.249 any range 442 6902
  access-list 101 permit tcp host 168.168.1.183 any gt 1023
  access-list 101 permit tcp 168.168.1.104 255.255.255.255 host 61.140.3.66 eq www
  access-group 101 in interface inside
  启用pptp和ipsec两种***
  access-list no-nat permit ip 199.199.199.0 255.255.255.0 199.199.199.0 255.255.255.0
  //access-list no-nat permit ip 168.168.0.0 255.255.0.0 199.199.199.0 255.255.255.0
  ip local pool HJY 199.199.199.170-199.199.199.180
  nat (inside) 0 access-list no-nat
  sysopt connection permit-ipsec
  crypto ipsec transform-set AAADES esp-des esp-md5-hmac
  crypto dynamic-map DYNOMAP 10 set transform-set AAADES
  crypto map ***PEER 20 ipsec-isakmp dynamic DYNOMAP
  crypto map ***PEER client authentication LOCALs
  crypto map ***PEER client configuration address initiate
  crypto map ***PEER client configuration address respond
  crypto map ***PEER interface outside
  isakmp enable outside
  isakmp key 预定密码**** address 0.0.0.0 netmask 0.0.0.0
  isakmp client configuration address-pool local HJY outside
  isakmp policy 10 authentication pre-share
  isakmp policy 10 encryption des
  isakmp policy 10 hash md5
  isakmp policy 10 group 2
  isakmp policy 10 lifetime 86400
  ***group 预定用户test address-pool HJY

  ***group 预定用户test>  ***group 预定用户test password 预定密码****
  username 用户1user1 password 用户1密码***
  username 用户2user2 password 用户2密码***
  ....
  sysopt connection permit-pptp
  vpdn group PPTP-VPDN-GROUP accept dialin pptp
  vpdn group PPTP-VPDN-GROUP ppp authentication chap
  vpdn group PPTP-VPDN-GROUP ppp authentication mschap
  vpdn group PPTP-VPDN-GROUP ppp encryption mppe auto
  vpdn group PPTP-VPDN-GROUP client configuration address local HJY
  vpdn group PPTP-VPDN-GROUP pptp echo 60
  vpdn group PPTP-VPDN-GROUP client authentication local
  vpdn enable outside
  vpdn username 用户pptpuser1 password 密码****
  vpdn username 用户pptpuser2 password 密码****
  ....
  Cryptochecksum:e73eb163f54804a716a5f444c09e17bd
  : end
  [OK]

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-537354-1-1.html 上篇帖子: cisco下***配置步骤 下篇帖子: cisco 6509 link-flag error
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表