This is my first time posting here - hope I'm asking in the appropriate place :) I am training now with computer networking concepts, and one thing that I was curious about is configuring VPN tunnel through the internet using Dynamic DNS on both ends. I would like to see if anyone will be able to help me with this task. I'm using GNS3 and Cisco router GNS3 appliances. I've found the way to configure IPsec with DDNS on a Cisco's IOS CLI, but one of the conditions is to connect the outbound interface to the ISP. In my domestic situation, I use a consumer router (Asus CM-32 AC2600) which is connected to my ISP. I used the Cloud appliance on GNS3 and I managed to connect my virtual GNS3 router to the internet via the cloud, enabling "IP address DHCP" on the Cisco's interface - it gets an IP from my Asus (primary domestic router) as any other LAN device, and it has access to the internet. I created an account on http://freedns.afraid.org/ and created a subdomain to use for my Cisco router. I tried to configure DDNS on the Cisco router according to some instructions I've found:
R1(config)#ip ddns update method Method_name
R1(DDNS-update-method)#http
R1(DDNS-HTTP)#add http://user:password@freedns.afraid.org/nic/update?hostname=<h>&myip=<a>
R1(DDNS-HTTP)#exit
R1(DDNS-update-method)#interval minimum 0 12 0 0
R1(DDNS-update-method)#exit
R1(config)#int e0/0
R1(config-if)#ip ddns update DNS_SERVICE_NAME
R1(config-if)#ip ddns update hostname subdomain.domain.com
R1(config-if)#ip address dhcp
R1(config-if)#no shutdown
R1(config-if)#do debug ip ddns update
然后,我得到了以下消息:
*Mar 1 02:46:43.310: DYNUPD: SWIF comingup 'Ethernet0/0'
*Mar 1 02:46:43.318: DYNUPD: SWIF comingup 'Ethernet0/0'
*Mar 1 02:46:45.305: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
*Mar 1 02:46:46.307: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/0, changed state to up
*Mar 1 02:46:48.811: %DHCP-6-ADDRESS_ASSIGN: Interface Ethernet0/0 assigned DHCP address 10.0.3.16, mask 255.255.255.0, hostname subdomain.domain.com
Translating "freedns.afraid.org"
% Bad IP address for host freedns.afraid.org
*Mar 1 02:46:50.634: DYNDNSUPD: Adding DNS mapping for subdomain.domain.com <=> 10.0.3.16
*Mar 1 02:46:50.634: HTTPDNS: Update add called for subdomain.domain.com <=> 10.0.3.16
*Mar 1 02:46:50.634: HTTPDNSUPD: Session ID = 0x4
*Mar 1 02:46:50.634: HTTPDNSUPD: URL = 'http://user:password@freedns.afraid.org/nic/update?hostname=subdomain.domain.com&myip=10.0.3.16'
*Mar 1 02:46:50.634: HTTPDNSUPD: Sending request... status='Host name resolution failed', tid=0
如果有人可以与我分享解决方案的方向,那将是非常不错的
- 我必须提到,我的首要目标是将FQDN映射到我的Cisco路由器,上面的配置不包括任何IPsec / VPN问题,仅包括动态DNS。
干杯!