NAT/PAT sur un Cisco 1841 : SMTP & VPN

NAT/PAT sur un Cisco 1841 : SMTP & VPN - Sécurité - Systèmes & Réseaux Pro

Marsh Posté le 27-11-2008 à 15:56:25    

Bonjour,
 
Jai un Cisco 1841, utilisé pour faire du load balancing sur deux HWIC (2 FAIs différents), et je souhaite forcer le SMTP à sortir par un seul FAI, comment faire ?
 
J'ai également derrière mon routeur un serveur VPN, comment faire pour rediriger le port 1194 des deux WANs vers mon interface LAN ?
 
Merci !

Reply

Marsh Posté le 27-11-2008 à 15:56:25   

Reply

Marsh Posté le 27-11-2008 à 15:59:05    

pour le premier point il faut faire du policy based routing
 
http://www.cisco.com/en/US/docs/io [...] apter.html


---------------
"Parceque toi tu fracasses du migrant à la batte de baseball, c'est ça ?" - Backbone-
Reply

Marsh Posté le 11-12-2008 à 15:28:43    

Up !

 

Quelqu'un aurait des exmples plus concret ???
Merci

 

Voila une config similaire à la mienne (et le meme probleme de SMTP)

 
Code :
  1. resource policy
  2. !
  3. clock timezone BXL 1
  4. ip subnet-zero
  5. ip cef
  6. !
  7. ! OpenDNS server om dns queries nog te versnellen.
  8. !
  9. ip name-server 208.67.222.222
  10. ip name-server 208.67.220.220
  11. !!
  12. ! Het Dual Wan gedeelte begint hieronder.
  13. !
  14. !
  15. track timer interface 5
  16. !
  17. ! Configure timers on route tracking
  18. !
  19. track 123 rtr 1 reachability
  20. delay down 15 up 10
  21. !
  22. track 345 rtr 2 reachability
  23. delay down 15 up 10
  24. !
  25. ! Use “ip dhcp client route track [number]”
  26.    ! to monitor route on DHCP interfaces
  27. ! Define ISP-facing interfaces with “ip nat outside”
  28. !
  29. ! Deze interface hieronder hangt aan de telenet kabelmodem
  30. ! This is the iface to the cable modem
  31. interface BRI0
  32. ip address dhcp
  33. ip dhcp client route track 345
  34. ip nat outside
  35. ip virtual-reassembly
  36. mac-address 0050.BFB7.772C
  37. !
  38. !
  39. interface FastEthernet0
  40. !
  41. interface FastEthernet1
  42. !
  43. interface FastEthernet2
  44. !
  45. interface FastEthernet3
  46. !
  47. !
  48. ! Define LAN-facing interfaces with “ip nat inside”
  49. ! This is the Lan iface
  50. !
  51. interface Vlan1
  52. description LAN Interface
  53. ip address 192.168.0.254 255.255.255.0
  54. ip nat inside
  55. ip virtual-reassembly
  56. ip tcp adjust-mss 1452
  57. !
  58. ! Define ISP-facing interfaces with “ip nat outside”
  59. ! this is the ADSL line to Skynet
  60. !
  61. interface ATM0
  62. description *** DSL line ***
  63. ip address ****snip********    255.255.255.192
  64. ip nat outside
  65. ip virtual-reassembly
  66. no atm ilmi-keepalive
  67. pvc 0/35
  68.   protocol ip *snip*******   broadcast
  69.   encapsulation aal5snap
  70.   dsl operating-mode auto
  71. !
  72. ip route 0.0.0.0 0.0.0.0 ATM0 track 123
  73. !
  74. ! Configure NAT overload (PAT) to use route-maps
  75. !
  76. ip nat inside source route-map fixed-nat
  77.    interface ATM0 overload
  78. ip nat inside source route-map dhcp-nat
  79.    interface BRI0 overload
  80. !
  81. ! Configure an OER tracking entry
  82.    ! om de eerste verbinding van de ADSL i-line te monitoren, ATM0
  83.    ! We doen dit door af en toe de DNS van Skynet te pingen.
  84. !
  85. ip sla 1
  86. icmp-echo 195.238.2.21 source-interface ATM0
  87. timeout 1000
  88. threshold 40
  89. frequency 3
  90. !
  91. ! Configure a second OER tracking entry
  92.    ! Monitoren van de Telenet verbinding. BRI0
  93.    ! Hierbij pingen we de DNS van Telenet
  94. !
  95. ip sla 2
  96. icmp-echo 195.130.130.11 source-interface BRI0
  97. timeout 1000
  98. threshold 40
  99. frequency 3
  100. !
  101. ! Set the SLA schedule and duration
  102. !
  103. ip sla schedule 1 life forever start-time now
  104. ip sla schedule 2 life forever start-time now
  105. !
  106. ! Define ACLs for traffic that
  107.    ! will be NATed to the ISP connections
  108. !
  109. !!! is is this right ? for smtp traffic
  110. !access-list 100 permit ip 192.168.0.0 0.0.0.255 any eq smtp
  111. access-list 110 permit ip 192.168.0.0 0.0.0.255 any
  112. !
  113. ! Route-maps associate NAT ACLs with NAT
  114.    ! outside on the ISP-facing interfaces
  115. !
  116. route-map fixed-nat permit 10
  117. match ip address 110
  118. match interface ATM0
  119. !
  120. route-map dhcp-nat permit 10
  121. match ip address 110
  122. match interface BRI0
  123. !!! is is this right ?
  124. !route-map smtp-static permit 10
  125. ! match ip address 100
  126. ! set interface BRI0
  127. ip dns server


Message édité par iwak le 11-12-2008 à 16:07:52
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed