cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
960
Views
10
Helpful
6
Replies

ISR 4331 cannot add ip port-map user define port

Rusty Gadberry
Level 1
Level 1

Trying to add user defined port on ISR 4331 and I get the following:

(config)#ip port-map user-as-admin port tcp from 2001 to 2011
                                  ^
% Invalid input detected at '^' marker.

This was possible on a Cisco 2921.
ISR 4331 Cisco IOS XE Software, Version 17.03.02
Has this feature been dropped or is there alternative way of adding user defined ports.

6 Replies 6

balaji.bandi
Hall of Fame
Hall of Fame

(config)#ip port-map  ? (can you post output - as per I know you can only use predefined one)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Here is an example from one of my customer's 2921 router. Can't to the same on a 4331. 
ip port-map user-http-8443 port tcp 8443 description allow http(s) on 8443
ip port-map user-lync-online port udp 3478 description Lync Online outbound audio and video ses
ip port-map user-http-8081 port tcp 8081 description allow http(s) on 8081
ip port-map user-lync-mobile port tcp 5223 description Lync mobile client push notifications
ip port-map user-http-8080 port tcp 8080 description allow http(s) on 8080
ip port-map user-Media-Port-Ofc port tcp 9001 description Office video recorder media port
ip port-map http port tcp 8057 list 4 description dbch.dbsquared.biz

(config)#ip port-map  ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

ip nat service ........

if I am right you use port-map for static NAT ??
can you try above  command 

I don't think ip nat service will get the job done.
Following is example of how port-map is used on a working 2921 router.

ip port-map user-Media-Port-Ofc port tcp 9001 description Office video recorder media port
class-map type inspect match-all Office-Cameras.class
  match protocol user-Media-Port-Ofc
  match access-group name Cameras-ACL
ip access-list extended Cameras-ACL
  permit tcp any object-group Cameras
policy-map type inspect Internet.in.policy
  class type inspect Office-Cameras.class
    inspect

This link Understand the Zone-Based Policy Firewall Design - Cisco has an example of configuring PAM with a user-defined entry for X Windows.

Apparently, this feature has been dropped in IOS XE Software, Version 17.03.02 or there is a software bug.

Review Cisco Networking for a $25 gift card