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

    Inside -> outside then outside -> inside

    NAT
    3
    6
    3.2k
    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.
    • A
      alavik
      last edited by

      not soutch a good topik and i spell like crap…

      im tired and i hate my firewall right now...

      what i whant is then a open a connection from the inside of the network i want to open a nat forwarding to the same port from outside -> inside

      first

      inside:XXX -> outside:XXX

      and then it shoud open at nat forwardin like

      outside:XXX -> inside:XXX

      i hope some one  understnds what i need....

      what i need to get working is man Cisco 7961G IP Phone hwo connects to an asterisk on the outside of the firewall...

      thx and god night...

      1 Reply Last reply Reply Quote 0
      • H
        hoba
        last edited by

        What you are looking for is a "static port". Enable advanced outbound nat at firewall>nat, outbound tab. Then copy the automatically created rule for LAN and change it to only use source <cisco ip="" phone="">/32 and make sure to check the "static port" option. Move this rule above the automatically created nat rule for LAN. Then go to diagnostics>states, reset states and reset the states. Maybe reboot the phone to make sure it reestalishes all states.</cisco>

        1 Reply Last reply Reply Quote 0
        • GruensFroeschliG
          GruensFroeschli
          last edited by

          i dont think he means a static port mapping but rather something what is called on some routers "port triggering"

          a software opens a connection on a certain port to a certain port.
          (–> above: inside:XXX -> outside:XXX)

          a package would have to see that and then map the
          outside port to the inside port and source
          (--> above: outside:XXX -> inside:XXX)
          after some time the mapping (or after the connection is closed) will be deleted.

          We do what we must, because we can.

          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

          1 Reply Last reply Reply Quote 0
          • H
            hoba
            last edited by

            He's talking about an IP-Phone, it must be the static port option ;-)

            1 Reply Last reply Reply Quote 0
            • A
              alavik
              last edited by

              @hoba:

              What you are looking for is a "static port". Enable advanced outbound nat at firewall>nat, outbound tab. Then copy the automatically created rule for LAN and change it to only use source <cisco ip="" phone="">/32 and make sure to check the "static port" option. Move this rule above the automatically created nat rule for LAN. Then go to diagnostics>states, reset states and reset the states. Maybe reboot the phone to make sure it reestalishes all states.</cisco>

              Thx… It works great!

              now i love pfSense again!

              1 Reply Last reply Reply Quote 0
              • H
                hoba
                last edited by

                Btw, scrambling ports during NAT is a security feature and not meant to piss people off. However some applications/protocols don't like this behaviour but you can work around it with the outband nat rules.

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