cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
393
Views
0
Helpful
0
Replies

Cisco C892FSP -Port forwarding problem

Hello.

I have trouble with some unusual port forwarding on a Cisco C892FSP router. 

So, I have a lan with addresses from 192.168.31.0/24. I'm using dynamic nat with overload because i have only one ip address from isp. 

ip nat inside source list 1 interface GigabitEthernet8 overload

access-list 1 permit 192.168.31.0 0.0.0.255

 

Now, I have two servers let's say Server1(192.168.31.1) and Server2(192.168.31.2). Both of them run ftp service on port 21. This port must not be changed.

If i do the classic port forwarding, something like this: ip nat inside source static tcp 192.168.0.1 21 171.68.1.1 21,  where 171.68.1.1 is my external ip, I can only redirect all the traffic that arrives at 171.68.1.1:21 to one and only one of the servers.

This is not what i need. I have to clients. Client1 with IP: X, and Client2 with IP: Y. I need to forward all the traffic that comes from Client1's IP address and on port 21 to Server1 and all the traffic that comes from Client2's IP address to Server2.

To sum up, I need to make a port forwarding that besides the port number it take in consideration the Source IP too. This is very easly done from a router with GUI, but i can't find how to do this from CLI.

I would really appreciate some help from you.

0 Replies 0
Review Cisco Networking products for a $25 gift card