JuniperForum.com
July 29, 2010, 07:49:52 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: If you have an interesting idea for an article or knowledgebase entry, please submit it!
 
  Home Help Login Register  
* *
Pages: [1]
  Print  
Author Topic: Destination NAT, SRX240 problems  (Read 1009 times)
willroute4food
Newbie
*
Posts: 1


View Profile
« on: January 19, 2010, 03:26:23 PM »

Guys, how does this config look?  Basically wanting to nat anything coming from my untrusted zone on ports 443 and 25 to a specific server in the trusted zone.  Heres the config:

 


destination {
    pool exchange-int {
        address 172.16.x.x/32 port 25;
    }
    pool Exchange-OWA {
        address 172.16.x.x/32 port 443;
    }
    rule-set exchange-rs {
        from interface reth1.0;
    }
    rule-set SMTP_TEST {
        from zone untrust;
        rule Exchange-SMTP {
            match {
                destination-address 1.1.1.1/32;
                destination-port 25;
            }
            then {
                destination-nat pool exchange-int;
            }
        }
    }

     rule-set OWA_TEST {
        from zone untrust;
        rule XCHANGE-OWA {
            match {
                destination-address 1.1.1.1/32;
                destination-port 443;
            }
            then {
                destination-nat pool Exchange-OWA;
            }
        }
    }
}

 

 

Heres my security policy from zone untrust to zone trust

 

policy exchange-pol {
    match {
        source-address any;
        destination-address exchange-server;
        application junos-smtp;
    }
    then {
        permit;
        log {
            session-init;
        }
    }
}

policy exchange-owa {
    match {
        source-address any;
        destination-address exchange-server;
        application junos-https;
    }
    then {
        permit;
        log {
            session-init;
            session-close;
        }
        count;
    }
}

 

So I am getting NAT translation hits, but nothing happens.  Nothing is logged under my security policies...its almost as if its natting, and then never hitting my security policies at all!?!? Any help is appreciated fellas (and gals!)

 

So my reth1.0 inter is programmed as say 1.1.1.1/29

When I try to configure proxy-arp I get this:


[edit security nat proxy-arp interface reth1.0]
  'address 1.1.1.1/32'
    Proxy ARP IP address range [1.1.1.1 1.1.1.1] overlaps with interface IP address range [1.1.1.1 1.1.1.1] defined on interface 'reth1.0'
error: configuration check-out failed

Whats up with that?    I thought I followed the config doc exactly??

Logged
jonas-itp
Newbie
*
Posts: 6


View Profile WWW
« Reply #1 on: February 16, 2010, 03:42:14 PM »

Hi.

I will try to move your:
from interface reth1.0; (under "rule-set exchange-rs")

To;  rule-set SMTP_TEST
and; rule-set OWA_TEST

You can't make an proxy arp on an IP you allready are using.

Best regards
Jonas Ø. Pedersen

Juniper networks specialist
(Juniper - Master of systems Engineering Award 2010)
EX, SSG, SRX, UAC, and SA

www.itplaneten.dk / www.jnpr.dk
Logged

Juniper networks specialist
(Juniper - Master of systems Engineering Award 2010)
EX, SSG, SRX, UAC, and SA

www.itplaneten.dk / www.jnpr.dk
Pages: [1]
  Print  
 
Jump to:  

Navigation

Donate

Please consider donating if we've saved you time or money. It helps pay for the bandwidth, equipment, and hosting charges to keep this site running

Tools

Submit Article/KB - Do not submit questions here.

Recent

Stats

Members
Stats
  • Total Posts: 39593
  • Total Topics: 10459
  • Online Today: 72
  • Online Ever: 393
  • (August 06, 2008, 07:40:57 AM)
Users Online
Users: 1
Guests: 33
Total: 34
TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!

Sponsored in part by CollarWise

Page created in 0.211 seconds with 37 queries.