03-17-2012 06:02 AM
Hello everybody! )
At first, I’ll describe my task.
Device - SRX-100-LM with 10.0R1.8 release of JunOS.
Networks:
-LAN with address space 192.168.5.0
-WAN network from ISP xxx.xxx.19.234/29
-two internal servers: 192.168.5.104:80 and 192.168.5.130:80
I’d like to make port mapping:
- xxx.xxx.19.234:80 -> 192.168.5.104:80
- xxx.xxx.19.234:8081 -> 192.168.5.130:80
Here is a listing of my current Security Nat configuration:
security {
nat {
source {
rule-set trust-to-untrust {
from zone trust;
to zone untrust;
rule source-nat-rule {
match {
source-address 0.0.0.0/0;
}
then {
source-nat {
interface;
}
}
}
}
}
destination {
pool dst-nat-pool-mp80 {
address 192.168.5.104/32 port 80;
}
rule-set rs-mp80 {
from zone untrust;
rule r-mp80 {
match {
destination-address xxx.xxx.19.234/32;
destination-port 80;
}
then {
destination-nat pool dst-nat-pool-mp80;
}
}
}
}
}
So I understand that for this task I have to use Destination NAT. I’ll try to configure my device according to this manual
But when I try to apply this command:
set security nat proxy-arp interface fe-0/0/0 address xxx.xxx.19.234
device returns message:
[edit security nat proxy-arp interface fe-0/0/0.0]
'address xxx.xxx.19.234/32'
Proxy APsP IP address range [xxx.xxx.19.234 xxx.xxx.19.234] overlaps with interface IP address range [xxx.xxx.19.234 xxx.xxx.19.234] defined on interface ‘fe-0/0/0.0’
error: configuration check-out failed
So, please, tell me what's the problem?
Solved! Go to Solution.
03-17-2012 07:07 AM
03-17-2012 07:46 AM - edited 03-17-2012 07:49 AM
Thank you for your rapid reply! )
An error occured when I try to upgrade device, but this item in my todo list.
Yes, IP xxx.xxx.19.234 is defined on external int.
Here it's full configuration:
03-17-2012 08:42 AM
03-17-2012 11:11 AM
You mean that my config is correct and not configured proxy arp is not a reason of my problem? Then please show me the way of troubleshooting.
03-19-2012 05:03 AM
fe-0/0/0 is your external WAN interface. You have DHCP running on on this interface?
03-20-2012 01:50 AM
Hi Dymmon,
Have you run traceoptions to see if translation is happening properly or not. Can you provide output of traceresult to see what is causing issue as configuration is looking just fine and yes there is no need to configure proxy-arp as ip is already configured on Interface, it is only required if you use any other IP from this same pool to make srx respond for these ip addresses.
Regards,
Hassan
10-11-2012 01:58 AM - edited 10-11-2012 02:06 AM
Sorry for the long silence, I could not go back to this issue.
fe-0/0/0 is your external WAN interface. You have DHCP running on on this interface?
No, I have static addresses on this int.
Have you run traceoptions to see if translation is happening properly or not...
Yes, I've run traceoptions. Here's traceresult for one of my effort:
Sep 1 16:52:51 SRX100 clear-log[3800]: logfile cleared
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT:<176.xx.xx.xxx/1874->2xx
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: packet [52] ipid = 30685, @4088929a
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT:---- flow_process_pkt: (thd 1): flow_ctxt type 13, common flag 0x0, mbuf 0x40889100
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: flow process pak fast ifl 69 in_ifp fe-0/0/0.0
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: fe-0/0/0.0:176.xx.xx.xxx/1874->2xx.xxx.xxx.xxx/642
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: find flow: table 0x428fef10, hash 61480(0xffff), sa 176.xx.xx.xxx, da 2xx.xxx.xxx.xxx, sp 1874, dp 6422, proto 6, tok 448
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: no session found, start first path. in_tunnel - 0, from_cp_flag - 0
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT:check self-traffic on fe-0/0/0.0, in_tunnel 0x0
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: flow_first_create_session
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: flow_first_in_dst_nat: in <fe-0/0/0.0>, out <N/A> dst_adr 2xx.xxx.xxx.xxx, sp 1874, dp 6422
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: chose interface fe-0/0/0.0 as incoming nat if.
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: packet dropped: for self but not interested
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: packet dropped, packet dropped: for self but not interested.
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: flow find session returns error.
Sep 1 16:53:48 16:53:47.1145228:CID-0:RT: ----- flow_process_pkt rc 0x7 (fp rc -1)
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT:<176.xx.xx.xxx/1874->2xx
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: packet [52] ipid = 30733, @4089de1a
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT:---- flow_process_pkt: (thd 1): flow_ctxt type 13, common flag 0x0, mbuf 0x4089dc80
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: flow process pak fast ifl 69 in_ifp fe-0/0/0.0
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: fe-0/0/0.0:176.xx.xx.xxx/1874->2xx.xxx.xxx.xxx/642
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: find flow: table 0x428fef10, hash 61480(0xffff), sa 176.xx.xx.xxx, da 2xx.xxx.xxx.xxx, sp 1874, dp 6422, proto 6, tok 448
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: no session found, start first path. in_tunnel - 0, from_cp_flag - 0
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT:check self-traffic on fe-0/0/0.0, in_tunnel 0x0
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: flow_first_create_session
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: flow_first_in_dst_nat: in <fe-0/0/0.0>, out <N/A> dst_adr 2xx.xxx.xxx.xxx, sp 1874, dp 6422
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: chose interface fe-0/0/0.0 as incoming nat if.
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: packet dropped: for self but not interested
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: packet dropped, packet dropped: for self but not interested.
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: flow find session returns error.
Sep 1 16:53:51 16:53:50.1057965:CID-0:RT: ----- flow_process_pkt rc 0x7 (fp rc -1)
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT:<176.xx.xx.xxx/1874->2xx
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: packet [52] ipid = 30818, @40879c1a
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT:---- flow_process_pkt: (thd 1): flow_ctxt type 13, common flag 0x0, mbuf 0x40879a80
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: flow process pak fast ifl 69 in_ifp fe-0/0/0.0
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: fe-0/0/0.0:176.xx.xx.xxx/1874->2xx.xxx.xxx.xxx/642
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: find flow: table 0x428fef10, hash 61480(0xffff), sa 176.xx.xx.xxx, da 2xx.xxx.xxx.xxx, sp 1874, dp 6422, proto 6, tok 448
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: no session found, start first path. in_tunnel - 0, from_cp_flag - 0
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT:check self-traffic on fe-0/0/0.0, in_tunnel 0x0
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: flow_first_create_session
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: flow_first_in_dst_nat: in <fe-0/0/0.0>, out <N/A> dst_adr 2xx.xxx.xxx.xxx, sp 1874, dp 6422
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: chose interface fe-0/0/0.0 as incoming nat if.
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: packet dropped: for self but not interested
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: packet dropped, packet dropped: for self but not interested.
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: flow find session returns error.
Sep 1 16:53:57 16:53:56.1092753:CID-0:RT: ----- flow_process_pkt rc 0x7 (fp rc -1)
So, my solution of this problem is to make changes in the configuration (DST NAT), and then reboot the device. And it works on multiport\multiaddress Destanation NAT. Guess I need to update the software of my Juniper SRX100.