Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Cisco > Haven't used a Cisco in years...

Reply
Thread Tools

Haven't used a Cisco in years...

 
 
MeTed
Guest
Posts: n/a
 
      06-23-2005
I'm trying to re-introduce myself to a Cisco 1710 (Pix 6.3). Everything is
already configured from a previous admin. Here are my questions:

I need to open up a port and forward it to a private IP (192.168.1.25) on my
LAN. Is the below the right config?

access-list inbound permit tcp any host [PUBLIC_IP] eq 3000
access-list outbound permit tcp any any eq 3000
static (inside,outside) tcp [PUBLIC_IP] 192.168.1.25 3000 netmask
255.255.255.255 0 0

Next question, and this is what I can't remember, can I simply add these
entries into the Cisco, or, when I want to make a change do I have to
re-enter the entire config?

Last question: How do I backup the configuration so I have a legitimate way
to restore in the event of disaster?


Thanks for helping out my aging brain....


 
Reply With Quote
 
 
 
 
Walter Roberson
Guest
Posts: n/a
 
      06-23-2005
In article <8LednYDDjLEMlSffRVn->, MeTed <> wrote:
:I'm trying to re-introduce myself to a Cisco 1710 (Pix 6.3).

I'm confused. The 1700 series runs IOS, not PIX software.

:Everything is
:already configured from a previous admin. Here are my questions:

:I need to open up a port and forward it to a private IP (192.168.1.25) on my
:LAN. Is the below the right config?

:access-list inbound permit tcp any host [PUBLIC_IP] eq 3000

That looks like PIX, not IOS. For IOS you would have needed the
word 'extended' in order to use a named access-list .

:access-list outbound permit tcp any any eq 3000

It isn't clear why you would want that line, unless you are trying
to connect to -other- system's tcp 3000 instead of trying to
configure inward access on tcp 3000 to your own systems.

You will need to add

access-group inbound in interface outside

If you are being restrictive about what you allow out, then you
will also need

access-group outbound in interface inside

but if you do that then you start running into issues about
(e.g.) needing to also explicitly configure outbound DNS queries,
outbound http and https and smtp and ...

:static (inside,outside) tcp [PUBLIC_IP] 192.168.1.25 3000 netmask 255.255.255.255 0 0

You need to add a 3000 between [PUBLIC_IP] and the internal IP.


:Next question, and this is what I can't remember, can I simply add these
:entries into the Cisco, or, when I want to make a change do I have to
:re-enter the entire config?

New access-list entries normally go at the end of the list, so if
you have 'deny' further up in the list, you could run into trouble
unless you take special steps to put the entry before the appropriate
'deny'.

In PIX 6.2 and before, the only way to add an entry in the middle
of an access-list is to remove the list and rebuild it with the
new entry in it's proper place. You would not need to change the
-whole- configuration of the PIX, just the access-list (and
after you remove an access-list and put it back, you need to
redo any access-group or nat or static or crypto map command that
referred to it.)


In PIX 6.3, a method was added to do insertions in place. You
"show" the access-list and you will see line numbers. For example,
it might display

access-list inbound line 17 permit tcp any host [PUBLIC_IP] eq smtp
access-list inbound line 18 permit udp any host [PUBLIC_IP] eq dns

In order to add a new entry in place, put it in with the infix
line number that it is to be inserted *before*. For example to put
the new entry between lines 17 and 18, you would use

access-list inbound line 18 permit tcp any host [PUBLIC_IP] eq 3000

The existing line 18 would get pushed down to line 19.

The order of 'static' commands only matters in obscure circumstances
involving "policy static": other than that, the order does not
matter because you are not permitted to form overlapping static's
in most cases (and when you are, it is longest-match.) You *do*,
though, need to be aware that different kind of static and
nat commands have different priorities -- static mentioning a
port number is lower priority that a static that applies to
the entire IP. [Personally I think it would have been better
the other way around, so that you could easily redirect a
particular port to one place and have all other ports go
to a different place.]


:Last question: How do I backup the configuration so I have a legitimate way
:to restore in the event of disaster?

Go into configuration mode ( config terminal ), use
the tftp-server configuration command if you haven't done so,
and then "write net". NB "write net" will only when you are
in configuration mode! WHich makes it easy to overlook the command
or to think it has disappeared.
--
"[...] it's all part of one's right to be publicly stupid." -- Dave Smey
 
Reply With Quote
 
 
 
 
MeTed
Guest
Posts: n/a
 
      06-23-2005
Thanks for all the info. You're right, I don't need to open outbound
traffic on 3000. So, just to rehash, this is what I need to do:

access-list inbound [LINE#] permit tcp any host [PUBLIC_IP] eq 3000


static (inside,outside) tcp [PUBLIC_IP] 3000 192.168.1.25 3000 netmask
255.255.255.255 0 0
-OR-
Were you saying there is another way to forward the public ip/port to a
private ip/port?



"Walter Roberson" <> wrote in message
news:d9dpn2$h3a$...
> In article <8LednYDDjLEMlSffRVn->, MeTed <>
> wrote:
> :I'm trying to re-introduce myself to a Cisco 1710 (Pix 6.3).
>
> I'm confused. The 1700 series runs IOS, not PIX software.
>
> :Everything is
> :already configured from a previous admin. Here are my questions:
>
> :I need to open up a port and forward it to a private IP (192.168.1.25) on
> my
> :LAN. Is the below the right config?
>
> :access-list inbound permit tcp any host [PUBLIC_IP] eq 3000
>
> That looks like PIX, not IOS. For IOS you would have needed the
> word 'extended' in order to use a named access-list .
>
> :access-list outbound permit tcp any any eq 3000
>
> It isn't clear why you would want that line, unless you are trying
> to connect to -other- system's tcp 3000 instead of trying to
> configure inward access on tcp 3000 to your own systems.
>
> You will need to add
>
> access-group inbound in interface outside
>
> If you are being restrictive about what you allow out, then you
> will also need
>
> access-group outbound in interface inside
>
> but if you do that then you start running into issues about
> (e.g.) needing to also explicitly configure outbound DNS queries,
> outbound http and https and smtp and ...
>
> :static (inside,outside) tcp [PUBLIC_IP] 192.168.1.25 3000 netmask
> 255.255.255.255 0 0
>
> You need to add a 3000 between [PUBLIC_IP] and the internal IP.
>
>
> :Next question, and this is what I can't remember, can I simply add these
> :entries into the Cisco, or, when I want to make a change do I have to
> :re-enter the entire config?
>
> New access-list entries normally go at the end of the list, so if
> you have 'deny' further up in the list, you could run into trouble
> unless you take special steps to put the entry before the appropriate
> 'deny'.
>
> In PIX 6.2 and before, the only way to add an entry in the middle
> of an access-list is to remove the list and rebuild it with the
> new entry in it's proper place. You would not need to change the
> -whole- configuration of the PIX, just the access-list (and
> after you remove an access-list and put it back, you need to
> redo any access-group or nat or static or crypto map command that
> referred to it.)
>
>
> In PIX 6.3, a method was added to do insertions in place. You
> "show" the access-list and you will see line numbers. For example,
> it might display
>
> access-list inbound line 17 permit tcp any host [PUBLIC_IP] eq smtp
> access-list inbound line 18 permit udp any host [PUBLIC_IP] eq dns
>
> In order to add a new entry in place, put it in with the infix
> line number that it is to be inserted *before*. For example to put
> the new entry between lines 17 and 18, you would use
>
> access-list inbound line 18 permit tcp any host [PUBLIC_IP] eq 3000
>
> The existing line 18 would get pushed down to line 19.
>
> The order of 'static' commands only matters in obscure circumstances
> involving "policy static": other than that, the order does not
> matter because you are not permitted to form overlapping static's
> in most cases (and when you are, it is longest-match.) You *do*,
> though, need to be aware that different kind of static and
> nat commands have different priorities -- static mentioning a
> port number is lower priority that a static that applies to
> the entire IP. [Personally I think it would have been better
> the other way around, so that you could easily redirect a
> particular port to one place and have all other ports go
> to a different place.]
>
>
> :Last question: How do I backup the configuration so I have a legitimate
> way
> :to restore in the event of disaster?
>
> Go into configuration mode ( config terminal ), use
> the tftp-server configuration command if you haven't done so,
> and then "write net". NB "write net" will only when you are
> in configuration mode! WHich makes it easy to overlook the command
> or to think it has disappeared.
> --
> "[...] it's all part of one's right to be publicly stupid." -- Dave Smey



 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      06-23-2005
In article <3LCdndUZju46VCffRVn->, MeTed <> wrote:
:So, just to rehash, this is what I need to do:

:access-list inbound [LINE#] permit tcp any host [PUBLIC_IP] eq 3000

:static (inside,outside) tcp [PUBLIC_IP] 3000 192.168.1.25 3000 netmask 255.255.255.255 0 0

Right.

:-OR-
:Were you saying there is another way to forward the public ip/port to a
rivate ip/port?

If [PUBLIC_IP] is *not* the IP of your outside interface, then

static (inside,outside) [PUBLIC_IP] 192.168.1.25 netmask 255.255.255.255

would allow all ports to be forwarded, with the actual actively
forwarded ports being restricted by the access-group applied to the
outside interface (i.e., the 'inbound' ACL.)

What I was indicating was that you cannot mix these two forms.

There is a related third form, a static command with an access-list
that has a different priority yet...
--
"[...] it's all part of one's right to be publicly stupid." -- Dave Smey
 
Reply With Quote
 
MeTed
Guest
Posts: n/a
 
      06-24-2005
Thanks again...now, one last issue. I know we spoke about adding to the
access list without having to re-enter all previous entries. Does the same
hold true for the static entry I need to make?



"Walter Roberson" <> wrote in message
news:d9eo7d$6v0$...
> In article <3LCdndUZju46VCffRVn->, MeTed <>
> wrote:
> :So, just to rehash, this is what I need to do:
>
> :access-list inbound [LINE#] permit tcp any host [PUBLIC_IP] eq 3000
>
> :static (inside,outside) tcp [PUBLIC_IP] 3000 192.168.1.25 3000 netmask
> 255.255.255.255 0 0
>
> Right.
>
> :-OR-
> :Were you saying there is another way to forward the public ip/port to a
> rivate ip/port?
>
> If [PUBLIC_IP] is *not* the IP of your outside interface, then
>
> static (inside,outside) [PUBLIC_IP] 192.168.1.25 netmask 255.255.255.255
>
> would allow all ports to be forwarded, with the actual actively
> forwarded ports being restricted by the access-group applied to the
> outside interface (i.e., the 'inbound' ACL.)
>
> What I was indicating was that you cannot mix these two forms.
>
> There is a related third form, a static command with an access-list
> that has a different priority yet...
> --
> "[...] it's all part of one's right to be publicly stupid." -- Dave Smey



 
Reply With Quote
 
MeTed
Guest
Posts: n/a
 
      06-24-2005
Looking at the 'configure memory' command, it's my understanding that I can
do this:

:config t
:access-list inbound [LINE#] permit tcp any host [PUBLIC_IP] eq 3000
:static (inside,outside) tcp [PUBLIC_IP] 3000 192.168.1.25 3000 netmask
255.255.255.255 0 0
:configure memory

Will that effectively merge those changes into NVRAM?

Thanks again for all the help...


"Walter Roberson" <> wrote in message
news:d9eo7d$6v0$...
> In article <3LCdndUZju46VCffRVn->, MeTed <>
> wrote:
> :So, just to rehash, this is what I need to do:
>
> :access-list inbound [LINE#] permit tcp any host [PUBLIC_IP] eq 3000
>
> :static (inside,outside) tcp [PUBLIC_IP] 3000 192.168.1.25 3000 netmask
> 255.255.255.255 0 0
>
> Right.
>
> :-OR-
> :Were you saying there is another way to forward the public ip/port to a
> rivate ip/port?
>
> If [PUBLIC_IP] is *not* the IP of your outside interface, then
>
> static (inside,outside) [PUBLIC_IP] 192.168.1.25 netmask 255.255.255.255
>
> would allow all ports to be forwarded, with the actual actively
> forwarded ports being restricted by the access-group applied to the
> outside interface (i.e., the 'inbound' ACL.)
>
> What I was indicating was that you cannot mix these two forms.
>
> There is a related third form, a static command with an access-list
> that has a different priority yet...
> --
> "[...] it's all part of one's right to be publicly stupid." -- Dave Smey



 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      06-24-2005
In article <w9CdnTKRWYepkCHfRVn->, MeTed <> wrote:
:now, one last issue. I know we spoke about adding to the
:access list without having to re-enter all previous entries. Does the same
:hold true for the static entry I need to make?

New static entries are added to the end of the group of the same kind
of static entries, and you can use "no" to remove any one existing
static entry you want.

The order of static entries almost never matters: it is important
*only* for "policy static", as all other kinds of static and nat
do not permit you to have overlapping entries, or else use
"longest match" to resolve overlaps. "policy static" is the only
case in which overlaps are possible and -not- resolved by
"longest match".
--
"[...] it's all part of one's right to be publicly stupid." -- Dave Smey
 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      06-24-2005
In article <h6mdnWTAPooyiyHfRVn->, MeTed <> wrote:
|Looking at the 'configure memory' command, it's my understanding that I can
|do this:

|:config t
|:access-list inbound [LINE#] permit tcp any host [PUBLIC_IP] eq 3000
|:static (inside,outside) tcp [PUBLIC_IP] 3000 192.168.1.25 3000 netmask 255.255.255.255 0 0
|:configure memory

|Will that effectively merge those changes into NVRAM?

Not quite, no.

When you use "configure terminal" (aka "config t") then anything
you enter is immediately put into effect, as soon as the line is
parsed and analyzed -- the "running config" is immediately changed,
but not the saved "startup config".

When you use "configure memory", the PIX re-reads the startup
config and re-parses it, as if you had typed in each of the lines
one by one into "configure terminal". For example if you were
to clear the current configuration, set up a few things, and then
"configure memory" then the saved settings would be merged into
the running configuration. I have never had a need for this
facility.

You can save the current running configuration into NVRAM as the
startup configuration by using the command "write memory".

You can also use "configure net" or [on older devices]
"configure floppy" to merge in configurations from a tftp server
or floppy disk into the running configuration.

PIX through 6.x only offers these configuration methods. PIX 7.0
offers a real filesystem and a ability to copy configurations
into the filesystem without affecting the running configuration.
--
'The short version of what Walter said is "You have asked a question
which has no useful answer, please reconsider the nature of the
problem you wish to solve".' -- Tony Mantler
 
Reply With Quote
 
MeTed
Guest
Posts: n/a
 
      06-24-2005
Okay...so, ''write memory' would "add" these changes to the running config
and the startup config?



"Walter Roberson" <> wrote in message
news:d9h5nr$cg4$...
> In article <h6mdnWTAPooyiyHfRVn->, MeTed <>
> wrote:
> |Looking at the 'configure memory' command, it's my understanding that I
> can
> |do this:
>
> |:config t
> |:access-list inbound [LINE#] permit tcp any host [PUBLIC_IP] eq 3000
> |:static (inside,outside) tcp [PUBLIC_IP] 3000 192.168.1.25 3000 netmask
> 255.255.255.255 0 0
> |:configure memory
>
> |Will that effectively merge those changes into NVRAM?
>
> Not quite, no.
>
> When you use "configure terminal" (aka "config t") then anything
> you enter is immediately put into effect, as soon as the line is
> parsed and analyzed -- the "running config" is immediately changed,
> but not the saved "startup config".
>
> When you use "configure memory", the PIX re-reads the startup
> config and re-parses it, as if you had typed in each of the lines
> one by one into "configure terminal". For example if you were
> to clear the current configuration, set up a few things, and then
> "configure memory" then the saved settings would be merged into
> the running configuration. I have never had a need for this
> facility.
>
> You can save the current running configuration into NVRAM as the
> startup configuration by using the command "write memory".
>
> You can also use "configure net" or [on older devices]
> "configure floppy" to merge in configurations from a tftp server
> or floppy disk into the running configuration.
>
> PIX through 6.x only offers these configuration methods. PIX 7.0
> offers a real filesystem and a ability to copy configurations
> into the filesystem without affecting the running configuration.
> --
> 'The short version of what Walter said is "You have asked a question
> which has no useful answer, please reconsider the nature of the
> problem you wish to solve".' -- Tony Mantler



 
Reply With Quote
 
Walter Roberson
Guest
Posts: n/a
 
      06-24-2005
In article <xIOdnWilo4-KvCHfRVn->, MeTed <> wrote:
:Okay...so, ''write memory' would "add" these changes to the running config
:and the startup config?

No, changes are added -immediately- to the running config.
"write memory" does not "add" changes to the startup config, it
rewrites the startup configuration with whatever is currently in the
running configuration. ("add" to the startup configuration would
imply that any non-conflicting setting in the startup configuration
would be preserved, which is not the case: the startup config is
overwritten entirely.)
--
"[...] it's all part of one's right to be publicly stupid." -- Dave Smey
 
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
I am buying all of the below Cisco equipment USED OR NEW. NOTE someline items say new or used, but I will buy them in both conditions. network buyer VOIP 0 12-23-2010 01:26 AM
Can Groovy be used in an applet and/or can it generate the Java bytecodes that then can be used in an applet? Casey Hawthorne Java 1 03-18-2009 12:56 AM
Is there a perl package, or data in a form easily used by a perlscript, that can be used to determine when to change to or from daylightsavings time? Ted Byers Perl Misc 23 11-15-2008 05:53 PM
Unreadable file on Canon S 400.I used a I used a Joseph Miller Digital Photography 3 01-13-2004 09:40 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