cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1543
Views
15
Helpful
2
Replies

Routing https traffic with FQDN

Brian Taylor
Level 1
Level 1

Is it possible with CISCO IOS (15.5) to route https traffic based on the FQDN?

For example:

- direct mail.abc.com:443 to host 192.168.1.1

- direct abc.com:443 or www.abc.com:443 to host 192.168.1.2

 

 

2 Replies 2

Hello,

 

check if the below works:

 

ip domain-lookup
ip name server 8.8.8.8
!
access-list 101 permit tcp host mail.abc.com any eq 443
access-list 102 permit tcp host www.abc.com any eq 443
access-list 103 permit tcp host abc.com any eq 443
!
route-map FQDN_REDIRECT permit 10
match ip address 101
set ip next 192.168.1.1
!
route-map FQDN_REDIRECT permit 20
match ip address 102
set ip next 192.168.1.2
!
route-map FQDN_REDIRECT permit 30
match ip address 103
set ip next 192.168.1.2

That looks nice however when typing the permit the IOS says "Translating 'mail.abc.com'...domain server (8.8.8.8) [OK]" and the access reads "permit tcp host 1.2.3.4 any eq 443". This won't work in my example because the abc.com hosts resolve to the same IP address.

I found this explanation: https://blog.ipspace.net/2008/11/using-hostnames-in-ip-access-lists.html

Review Cisco Networking for a $25 gift card