[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1351
  • Last Modified:

Remove static nat mapping

I want to remove a static mapping because the server IP has changed. I have the new mapping, I just can not seem to get the old one out.

I used this

no static (inside,outside) tcp x.x.x.x ftp x.x.x.x ftp netmask x.x.x.x 0 0

Obviously it didn't work :)

Whats the correct method to remove the mapping and add the new one?
0
bhnmi
Asked:
bhnmi
  • 2
1 Solution
 
2PiFLCommented:
You need to be in config mode, then copy the line you want removed, paste it at the promt, then add the no.
0
 
bhnmiAuthor Commented:
I got it out now.

But now, my new mapping is not working correctly.
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface 3390 192.168.100.11 3390 netmask 255.255.255.255 0 0 
static (inside,outside) tcp interface 3389 192.168.100.20 3389 netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x www 192.168.100.25 www netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x https 192.168.100.25 https netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x 3389 192.168.100.28 3389 netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x ftp 192.168.100.27 ftp netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x www 192.168.100.30 www netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x https 192.168.100.30 https netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x 3389 192.168.100.29 3389 netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x https 192.168.100.10 https netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x www 192.168.100.9 www netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x https 192.168.100.9 https netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x telnet 192.168.254.1 telnet netmask 255.255.255.255 0 0 
static (inside,outside) tcp x.x.x.x ftp 192.168.100.12 ftp netmask 255.255.255.255 0 0 
access-group outside_in in interface outside

Open in new window

0
 
bhnmiAuthor Commented:
The new one is the last mapping

static (inside,outside) tcp x.x.x.x ftp 192.168.100.12 ftp netmask 255.255.255.255 0 0

Everything is the same except for the private IP....
0

Featured Post

Choose an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now