Quantcast
Channel: SRX Services Gateway topics
Viewing all articles
Browse latest Browse all 3959

Multiple static NAT to same prefix

$
0
0

Hello

 

I have a need to have 2 static NAT's going to the same server in the same subnet for a few different servers. A example 192.168.5.10 needs to have static NAT of 172.2.2.10 & 172.2.2.100. See config below.

 

There are 3 subnets involved in total: 

172.2.2.0/24
10.8.9.0/24
192.168.5.0/24

 

I there are 6 servers in 10.8.9.0/24 which I need to communicate with but in a particualr way. Se below the bi directional way that should be allowed. In the 192.168.5.X subnet there are about 4 servers I need to have this setup with I have given 2 examples below and the others will be similar. 

 

Server A

172.2.2.10 <-> 10.8.9.10

172.2.2.10 <-> 10.8.9.11

172.2.2.10 <-> 10.8.9.13

172.2.2.10 <-> 10.8.9.14

172.2.2.100 <-> 10.8.9.100

172.2.2.100 <-> 10.8.9.101

 

Server B

172.2.2.11 <-> 10.8.9.10

172.2.2.11 <-> 10.8.9.11

172.2.2.11 <-> 10.8.9.13

172.2.2.11 <-> 10.8.9.14

 

172.2.2.101 <-> 10.8.9.100

172.2.2.101 <-> 10.8.9.101

 

How can I get it to behave this way as from my understanding in the current setup below when 192.168.5.10 goes to communicate with 10.8.9.10 or 10.8.9.100 it will not know which static NAT is should present itself as?

 

 

static {
            rule-set outside_inter {
                from zone outside_inter;
                rule inter1 {
                    description Server1_alpha;
                    match {
                        destination-address 172.2.2.10/32;
                    }
                    then {
                        static-nat {
                            prefix {
                                192.168.5.10/32;
                            }
                        }
                    }
                }
                rule inter2 {
                    description Server1_beta;
                    match {
                        destination-address 172.2.2.100/32;
                    }
                    then {
                        static-nat {
                            prefix {
                                192.168.5.10/32;
                            }
                        }
                    }
                }

 


Viewing all articles
Browse latest Browse all 3959

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>