Routing

Expand all | Collapse all

Problem in NAT for through the internet from MX-104

Jump to Best Answer
  • 1.  Problem in NAT for through the internet from MX-104

    Posted 01-09-2019 18:50
    Hi,
    I am facing problem to through the internet to users from MX104.

    Topology:-
    Pc(192.168.50.2/24)--(ge-0/0/2(192.168.0.2)Router(ge-0/0/1) - isp

    I have done the configuration like this:-

    set chassis fpc 0 pic 0 inline-services

    set chassis fpc 0 pic 0 adaptive-services service-package layer-3

    set chassis network-services enhanced-ip

    set services service-set sset1 stateful-firewall-rules sf-rule1

    deactivate services service-set sset1 stateful-firewall-rules sf-rule1

    set services service-set sset1 nat-rules nat-rule1

    set services service-set sset1 interface-service service-interface ms-0/0/0.1

    set services stateful-firewall rule sf-rule1 match-direction input

    set services stateful-firewall rule sf-rule1 term sf-term1 from source-address 192.168.50.0/24

    set services stateful-firewall rule sf-rule1 term sf-term1 then accept

    set services nat pool napt-pool address 115.200.43.15/32

    set services nat pool napt-pool port automatic

    set services nat rule nat-rule1 match-direction input

    set services nat rule nat-rule1 term nat-term1 from source-address 192.168.50.0/24

    set services nat rule nat-rule1 term nat-term1 then translated source-pool napt-pool

    set services nat rule nat-rule1 term nat-term1 then translated translation-type napt-44

    set services nat rule nat-rule1 term nat-term2 then no-translation

    set interfaces ms-0/0/0 unit 1 family inet

    set interfaces ge-1/0/1 unit 0 family inet service input service-set sset1

    set interfaces ge-1/0/1 unit 0 family inet service output service-set sset1

    set interfaces ge-1/0/1 unit 0 family inet address 192.168.50.1/24

    set interfaces ge-1/0/2 speed 100m

    set interfaces ge-1/0/2 unit 0 family inet address 115.200.43.15/30

    set routing-options static route 0.0.0.0/0 next-hop 115.200.43.14

    set routing-options static route 192.168.50.0/24 next-hop 192.168.50.1

    Please advise what is the issue .
    Regards,


  • 2.  RE: Problem in NAT for through the internet from MX-104
    Best Answer

     
    Posted 01-09-2019 19:01

    Hi,

     

    PIC0 is MS-PIC

    You're doing interface style NAT.

    Public IP is configured in interface as well.

     

    Kindly do the following.

     

    1. Remove inline-service from PIC0.

    2. Configure public IP which is not part of interface configuration.

     

    Regards,
    Rahul



  • 3.  RE: Problem in NAT for through the internet from MX-104

    Posted 01-10-2019 19:51

    Thanks Rahul ...

     

     

    I will check it ..