SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
Expand all | Collapse all

publish web server through juniper srx

  • 1.  publish web server through juniper srx

    Posted 09-22-2012 08:29

    hi every one

    I have problem in publishing rules through tmg then juniper srx 240 to to the internet users

    I created publishing rule on tmg to web server and it work perfectly

    but when I connect juniper to external NIC of tmg with default gateway the juniper it self

    the publishing cannot work

    I created destination nat to nat between public IP of web site and external NIC TMG server to accept the request and redrect it to web server

    then created proxy arp that link between the public ip and interface of  juniper

     

    of course policies are as followes

    1- from trust to trust allow

    2- from trust to untrust allow

    3- from untrust to trust application junos-http allow , otherwise deny

     

    final note: I created previously firewall filter (fbf) and applied them on vlan.0 interface to load sharing between multiple ISPs based on source IP and it work ok

     

    please help me in publishing the rule because every thing is ok and destination nat receive hits but I didnot know where is the drop

    thanks



  • 2.  RE: publish web server through juniper srx

    Posted 09-23-2012 02:40

    Hi

     

    Can you post your config?

     

    Part of the complication may be down to the multiple links.  Set this up for just one WAN link.  Otherwise you may be having an issue between traffic coming in from one interface but return traffic going via another.

     



  • 3.  RE: publish web server through juniper srx

    Posted 09-29-2012 00:42
      |   view attached

    Hello ,

    sorry for the lating reply

    I attached my config. I hope you trouble shoot the problem with me

    thanks

    Attachment(s)

    docx
    test.docx   31 KB 1 version


  • 4.  RE: publish web server through juniper srx
    Best Answer

    Posted 09-29-2012 00:52
    without reading the whole config, i can see one major problem.

    on the untrust securityzone, remove the system services http. The SRX will be trying to respond instead of allowing any nat/polcy rule to work.

    You also need to be more explicit on the source nat rule. specify the internal network and external ip address, not just interface.


  • 5.  RE: publish web server through juniper srx

    Posted 09-29-2012 02:11

    thanks sir, when I removed host inbound trafiic from untrust zone, the published website worked ok

    I will publish another rdp and sql server and isa will ask you if there is any problem

    thanks again



  • 6.  RE: publish web server through juniper srx

    Posted 10-02-2012 01:51

    hello sir,

    the web server and RDP and SQL publishing rules worked ok for 2 days then it stopped working although translation hits increase continusly 

    all I did that after web server rule worked , I add another 2 rule in the same rule-set one for publishing RDP and the other for SQL

    and in policy from untrust to trust I addedd RDP and SQL applications

    it was working but now it didnot , I didnot know the reason

    I appreciate your reply

     

     



  • 7.  RE: publish web server through juniper srx

    Posted 10-02-2012 02:03

    please post your updated config.



  • 8.  RE: publish web server through juniper srx

    Posted 10-02-2012 04:37
      |   view attached

    I attached my updated config.

    thanks

    Attachment(s)

    docx
    test.docx   30 KB 1 version


  • 9.  RE: publish web server through juniper srx

    Posted 10-02-2012 04:43

    Under the destination NAT rule add the protocol for traffic.

     

    E.G.

     

          match {
                            destination-address xxx.xxx.xxx.xx7/32;
                            destination-port 443;
                            protocol tcp;
                        }

     

    Also on the policy

            from-zone untrust to-zone trust {
                policy HTTP {
                    match {
                        source-address any;
                        destination-address any;
                        application [ junos-https junos-http RDP1 SQL RDP ];
                    }
                    then {
                        permit {
                            destination-address {
                                drop-untranslated;
                            }
                        }
                    }
                }

     

     

    Create seperate rules for the application, not just under one policy.  Group RDP together, and seperate the other out.  You can remove the JUNOS HTTPS as you have not setup a matching NAT rule.

     

     

     



  • 10.  RE: publish web server through juniper srx

    Posted 10-02-2012 07:33

    this rules some times work for me and then close after that

    it work before remove host inbound traffic , but suddenly it is stopped

    then return to work after remove host in bound traffic

    now it is stopped again , I donot know the issue

    I didnot find protocol to choise in destination nat , only destination address and port in this version,

    , also I created seperate policies for web, sql,rdp and removed https but no luck

     



  • 11.  RE: publish web server through juniper srx

    Posted 10-03-2012 00:57

    Hello ,

    I feel that FBF (filter) that I applied on vlan.0 block the traffic some how or as I use multiple ISP modems

    what is your opinion ?



  • 12.  RE: publish web server through juniper srx

    Posted 10-03-2012 01:04

    I dont use virtual routing instances, so I cannot offer advice.

     

    However I would suggest that you upgrade your Junor version to 10.4R11.4 or 1.xx1 or even 12.xx



  • 13.  RE: publish web server through juniper srx

    Posted 10-03-2012 03:06

    I donot use virtual routing instance, it is forwarding instance type

    also thanks for your effort