03-08-2007 02:06 PM - edited 03-09-2019 05:34 PM
Hi,
I have a 1721 router with tcp21 port open for incoming ftp requests.
This router is connected to headquarters using a vpn aes256 connection and then at headquarters is the ftp server.
How do i have to configure my router to redirect requests made to my router to the ftp server using the vpn connection?
Best regards
03-08-2007 03:12 PM
Is the ftp server a public ip or private ip address ?
Requests coming from internet must be estined for public ip, so I assume the ftp server has a public ip and is located on the far end of the tunnel.
Try using policy based routing.
You need to configure the crypto acl on the tunnel as :
access-list 101 permit ip any host
Create an ACl for PBR :
access-list 102 permit tcp any
access-list 102 permit tcp any
Create a loopback intf:
int loopback 1
ip address 1.1.1.1 255.255.255.0
exit
Create a route-map for PBR :
route-map pol permit 10
match ip address 102
set ip next-hop 1.1.1.2
exit
Apply the route-map to the Outside Interface of the router:
int fasteth0/0
ip policy route-map pol
exit
ip route
So, this way, any request for the ftp server ip address, will be frst checked against the policy , and will be routed to loopback, and then back to outside interfae, without natting.
It will be then encrypted and will be sent aross the tunnel.
*Please rate if this helped.
-Kanishka
03-09-2007 09:02 AM
Hi,
Now we are working only with one public ip, ftp.mycompany.com, but I?ve to implement a second ip address ftp2.mycompany.com to an another router.
These routers are connected by vpn line, first is 192.168.156.254 and the second one(ftp2)has 192.168.154.254.
The second router has no nats configured..only it?d have 21 for ftp2.
what would be the best configuration??
03-09-2007 04:53 PM
Adding to Kanishka's suggestion, the crypto ACL for the tunnel should include the following rule :
access-list
and its reflection on the other end.
HTH,
Please rate if it helps,
Regards,
Kamal
03-10-2007 01:14 AM
04-14-2007 04:24 AM
Hi,
Any answer here about my problem??
Best regards
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: