Selective NAT Rule

I would like to get around the port 25 blocking by my ISP.

At my office, I have an existing NAT rule for private server to a public IP address, on port 25.  For the same server I would like to NAT port 25 to 8025, but only for traffic to/from a specific IP address (home).  On the home side, I'll have only 25>8025 for all traffic.

It will look like this:
Office Server(25) <> Cisco ASA(8025) <> Internet <> Home FW(8025) <> Home Server(25)
Office Server(25) <> Cisco ASA 5510(25) <> Internet <> Everyone Else(25)

This seemed like a simple matter.  But I can’t add the 25>8025 NAT rule because it overlaps the existing 25>25 NAT rule.

Can this be done, or is it simply not possible?
LimeRidge29Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

surbabu140977Commented:
Cisco do support putting this. I do not have an ASA at my disposal, but I tried putting this into my router and it seem to be taking. Assuming your office server is 172.16.1.1 which translates to 1.1.1.1 in public, here is what I used in my router.

ip nat inside source static tcp 172.16.1.1 25 1.1.1.1 25 extendable
ip nat inside source static tcp 172.16.1.1 25 1.1.1.1 8025 extendable

Best,
0
surbabu140977Commented:
Did you try putting----

static (inside,outside) tcp 1.1.1.1 25 172.16.1.1 25
static (inside,outside) tcp 1.1.1.1 8025 172.16.1.1 25  ???

Is it replacing?

Best,
0
LimeRidge29Author Commented:
No. The second NAT rule conflicts with the first one.
"ERROR: duplicate of existing static"

Right now, I have all port 25 traffic NATing to 8025:
static (inside,outside) tcp interface 8025 172.16.1.1 25 netmask 255.255.255.255

So I can reach my home server, but I can't reach any other public SMTP servers.  If my home server public IP addresss is 1.2.3.4, I would like to be able to apply the 25>8025 NAT rule for all traffic to/from 1.2.3.4.  For all other traffic, I want to apply a simple 25>25 NAT rule.
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

surbabu140977Commented:
ASA then will not allow.

Have you considered other options like binding a second IP in your server to smtp service. I am not a typical server person, but hopefully we are advanced enough to bind multiple ip's to a smtp service.

Then 2 different static nat's should not be an issue.

Best,
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikebernhardtCommented:
If your ISP is blocking port 25, why are you bothering with the existing rule? But on a router (I don't have an ASA either) I could do this:
ip nat inside source static tcp 1.1.1.1 25 2.2.2.2 25
ip nat inside source static tcp 1.1.1.1 25 3.3.3.3 8025

By allocating an additional public address you may be able to make it work.
0
LimeRidge29Author Commented:
The existing rule is for my office server - there is no port blocking, so it's just a simple PAT.  This is looking like it can't be done with the ASA.  I may just need to upgrade my home Internet connection to business class.
0
mikebernhardtCommented:
I think you're right as home plans don't come with multiple addresses.
0
LimeRidge29Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for LimeRidge29's comment #a39491069

for the following reason:

Does not provide a definitive answer to the original question.
0
mikebernhardtCommented:
the question was "Can this be done, or is it simply not possible?" We answered the question quite definitively- it's not possible given the user's current capabilities. I will not comment on how to award points- I think both of us said the same thing and it's up to LimeRidge29 to determine whether one answer was more clear or to split points. But it's unfair to simply close the question in my opinion.
0
LimeRidge29Author Commented:
I should not accept my final comment as the solution.
0
mikebernhardtCommented:
Good luck! I think it will be a lot easier if you upgrade.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.