Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NATing/Port forwarding between two locations (between two country)

    Scheduled Pinned Locked Moved NAT
    15 Posts 3 Posters 956 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NogBadTheBadN
      NogBadTheBad
      last edited by

      https://www.netgate.com/resources/videos/site-to-site-vpns-on-pfsense.html

      Andy

      1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

      1 Reply Last reply Reply Quote 0
      • ejajE
        ejaj
        last edited by

        Site to Site tunnel already there.

        You first understand the question i want to access website from A location network (hosted website on B location)

        first traffic hit A location firewall,A location forward traffic to B location firewall where our application hosted.

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          OpenVPN or IPsec?

          IPsec will not do this.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • ejajE
            ejaj
            last edited by

            @derelict

            yes we know it.now what can we do next to make it successful

            1 Reply Last reply Reply Quote 0
            • DerelictD
              Derelict LAYER 8 Netgate
              last edited by Derelict

              OpenVPN.

              https://www.youtube.com/watch?v=ku-fNfJJV7w

              I'd watch the whole thing. But the specific issue you need to address is the reply-to discussion on assigned interfaces that starts at about 31 minutes in.

              In a nutshell (example addresses used):

              Establish OpenVPN tunnel from A to B so A can access B at 192.168.16.0/24
              A port forwards WAN connections to 67.88.75.26:80 to 192.168.16.100:80
              On the B side you must:

              1. Assign an interface to the OpenVPN instance
              2. Be sure the traffic to 192.168.16.100:80 IS NOT matched by rules on the OpenVPN tab
              3. Be sure the traffic to 192.168.16.100:80 IS matched by rules on the assigned interface tab

              Chattanooga, Tennessee, USA
              A comprehensive network diagram is worth 10,000 words and 15 conference calls.
              DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
              Do Not Chat For Help! NO_WAN_EGRESS(TM)

              ejajE 2 Replies Last reply Reply Quote 0
              • ejajE
                ejaj @Derelict
                last edited by

                @derelict

                Thanks buddy !

                let me try it,get back to you with an update and if you get any other idea please share,Thanks again.

                1 Reply Last reply Reply Quote 0
                • ejajE
                  ejaj @Derelict
                  last edited by

                  @derelict Thanks for the information.I have somehow got success to forward the request from Location A to Location B. But reverse is not working.i mean request serve from location B to A location.

                  scenario as below

                  Location A

                  front end :- A location Public IP - 67.88.75.26:80
                  Backend :- B location Public IP - 88.85.75.87

                  Location B :-

                  Front end :- Location B Public IP :- 88.85.75.87
                  Backend : location B private IP : - 192.168.16.100:80

                  Additional info in IPsec we allow all traffic on all ports.

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    IPsec? You have to use OpenVPN.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    1 Reply Last reply Reply Quote 0
                    • ejajE
                      ejaj
                      last edited by

                      @derelict

                      Thanks Sir, for your support.

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        Did you get it working?

                        Chattanooga, Tennessee, USA
                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                        ejajE 1 Reply Last reply Reply Quote 0
                        • ejajE
                          ejaj @Derelict
                          last edited by

                          @derelict

                          No, We have to postpone it.as we are new in it so. by the way thanks again Sir.Thank you so so much for your kind support and help.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.