- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 11:50 AM - edited 02-21-2020 08:38 AM
Hi,
I am moving some rules from a checkpoint firewall (r77.30) to an new ASA pair (9.8(2)28
one of the rules I have seen has 2 internal hosts sharing the same external IP on the same ports.
is there anyway to do this on the cisco?
e.g.
outside interface 60.50.40.1 is natted to DMZ hosts 10.10.10.1 and 10.10.10.2 on port 22 on the checkpoint
I can do this
nat (outside,dmz) source static any any destination static NAT_IP_60.50.40.1 GRP-LAN-PUB no-proxy-arp
GRP-LAN-PUB would include hosts 10.10.10.1 and 10.10.10.2
not sure thats going to work though.
Any thoughts would be helpful.
Thanks
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:24 PM
No it is not possible as the users accessing the servers need a way to differenciate which server they are accessing. There are two ways of doing this.
1. use different public IPs for the servers
2. use different ports
Please remember to select a correct answer and rate helpful posts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:04 PM
That’s interesting. Does the server have two nick cards? Or is this a load balancer?
you can try but I am not sure if they will work unless second IP address is kind of backup IP address.
create a object group and bind these two ip addresses in this group. Also make sure your nat rules must be nat(dmz,outside) not nat(outside,dmz)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:08 PM - edited 01-09-2019 12:15 PM
Hi,
Not sure how that would work on the Check Point. Does it make 2 unique fake ports to the real port of 22? Therefore making each connection unique?
You could do something like this:-
object nat SRV1
host 10.10.10.1
nat (inside,outside) static 1.1.1.1 service tcp 80 180
access-list OUTSIDE_IN permit tcp any host 10.10.10.1 eq 80
object nat SRV2
host 10.10.10.2
nat (inside,outside) static 1.1.1.1 service tcp 80 280
access-list OUTSIDE_IN permit tcp any host 10.10.10.2 eq 80
EDIT: the other option would be to create a source based nat.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:13 PM
@Rob Ingram How about creating a object group and put the host in that group instead of creating two object network?
and I never head you can map two RFC1918 ip to one public ip with same ports?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:16 PM
This is not possible. The servers themselves can listen on the same port but clients on the internet would need to access these two servers on different ports.
Please remember to select a correct answer and rate helpful posts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:20 PM
@Marius Gunnerud I have not heard this either. Yes you can change the port no that’s possible but two internal ip with same port with one single public ip that’s doesn’t look possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:24 PM
No it is not possible as the users accessing the servers need a way to differenciate which server they are accessing. There are two ways of doing this.
1. use different public IPs for the servers
2. use different ports
Please remember to select a correct answer and rate helpful posts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:28 PM
Yes I had similar thoughts too. But thought no warm to test this :-)
wonder how it’s possible in check point? I guess this is not possible at all in networks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2019 12:38 PM
from a logical standpoint it is not possible in CheckPoint or any other firewall or router as the requirement still stands that there needs to be a unique IP or unique port. Would need to see the CheckPoint configuration to understand the setup better. Perhaps the CheckPoint is performing loadbalancing between the servers.
Please remember to select a correct answer and rate helpful posts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019 09:10 AM
the checkpoint must be configured incorrectly.
thanks
