Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > IOS NAT

Reply
Thread Tools

IOS NAT

 
 
Todd Bennett
Guest
Posts: n/a
 
      03-31-2009
I need to NAT a range of ports from a public IP to a private IP. I
typically use the form:

ip nat inside source static tcp i1.i2.i3.i4 22 p1.p2.p3.p4 22 extendable


I could make quite a few of these statements and have it work, but I want to
specify a range of ports. Does anyone know the syntax to do this?

_________________________________
Todd Bennett
BennTech


 
Reply With Quote
 
 
 
 
bod43
Guest
Posts: n/a
 
      04-01-2009
On 31 Mar, 19:12, "Todd Bennett" <tabennett(nospam)@benntech.net>
wrote:
> I need to NAT a range of ports from a public IP to a private IP. *I
> typically use the form:
>
> ip nat inside source static tcp i1.i2.i3.i4 22 p1.p2.p3.p4 22 extendable
>
> I could make quite a few of these statements and have it work, but I want to
> specify a range of ports. *Does anyone know the syntax to do this?


I have not needed to do this and have not researched it
however I don't believe that this is available.

If your lists are complex perhaps you might manage them
in Excel and copy paste into the router.

Such a facility is available for address ranges but not
as far as I know for port ranges.

 
Reply With Quote
 
 
 
 
Todd Bennett
Guest
Posts: n/a
 
      04-02-2009
Thank you for your reply. I may have gotten a solution from another source.
I'm not yet sure if this will work until I test it.

To permit a range through the firewall:
access-list 120 permit <tcp/udp> any any range 10000 20000
int <outside interface>
ip access-group 120 in

To NAT the range of ports:
ip nat inside source static 1.1.1.1 2.2.2.2 route-map NAME extendable
access-list 130 permit tcp any any range 10000 20000
route-map NAME permit 10
match ip address 130

_________________________________
Todd Bennett
BennTech

"bod43" <> wrote in message
news:c8b45c2b-bcb1-4439-8c38-...
On 31 Mar, 19:12, "Todd Bennett" <tabennett(nospam)@benntech.net>
wrote:
> I need to NAT a range of ports from a public IP to a private IP. I
> typically use the form:
>
> ip nat inside source static tcp i1.i2.i3.i4 22 p1.p2.p3.p4 22 extendable
>
> I could make quite a few of these statements and have it work, but I want
> to
> specify a range of ports. Does anyone know the syntax to do this?


I have not needed to do this and have not researched it
however I don't believe that this is available.

If your lists are complex perhaps you might manage them
in Excel and copy paste into the router.

Such a facility is available for address ranges but not
as far as I know for port ranges.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
instructions on how to perform an IOS upgrade on a Catalyst 6500 switch (IOS to IOS) Mike Rahl Cisco 1 05-30-2007 05:22 PM
IOS NAT (PAT) - dynamicstatic nat subnet mask spec Cisco 2 05-25-2006 06:11 PM
Replace a non IOS 350 Cisco Aironet bridge with IOS Mr Corbett Cisco 5 08-19-2005 09:40 PM
"ip addr dhcp" is not available for my IOS release, who has latest IOS for 2514 and 2509? Ed Kideys, Tech-Train Cisco 3 04-30-2004 07:51 PM
IOS to IOS VPN Problem Evan Mann Cisco 0 02-11-2004 04:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57