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

    NAT Ports to VLANS

    Scheduled Pinned Locked Moved NAT
    12 Posts 2 Posters 2.1k 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.
    • J
      Jamerson
      last edited by

      Hi Guys.
      We need to NAT a group of ports on the WAN to a specifies VLANS.
      is this possible on the pfsense ?

      like we want to NAT port 5060 to the VLAN 20 over the WAN.

      thank you

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

        https://doc.pfsense.org/index.php/How_can_I_forward_ports_with_pfSense

        https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

        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
        • J
          Jamerson
          last edited by

          Thank you for your answer,
          I have forwarded the ports to VLAN as descript however when I check for open ports using this link http://www.yougetsignal.com/tools/open-ports/  its shows that its the ports stills closed.
          please see attached screenshots of the forwarded rules.

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

            No screenshots.

            The list of things to check is here:

            https://doc.pfsense.org/index.php/Port_Forward_Troubleshooting

            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
            • J
              Jamerson
              last edited by

              please see screenshot thank you

              ![Port Forward.png](/public/imported_attachments/1/Port Forward.png)
              ![Port Forward.png_thumb](/public/imported_attachments/1/Port Forward.png_thumb)

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

                Great where is the screen shot of the port forward?

                You cannot just NAT WAN address:5060 to the LAN. You either need 1:1 NAT which requires an outside IP address for every inside address or port forward WAN address:5060 to a specific Inside Address:5060

                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
                • J
                  Jamerson
                  last edited by

                  @Derelict:

                  Great where is the screen shot of the port forward?

                  You cannot just NAT WAN address:5060 to the LAN. You either need 1:1 NAT which requires an outside IP address for every inside address or port forward WAN address:5060 to a specific Inside Address:5060

                  on the VLAN we have like 10 Phones,
                  does it means I have to nat each phone ip ?
                  please see the rules on the WAN side (screenshots is attached)

                  ![Screen Shot 2017-05-17 at 23.36.14.png](/public/imported_attachments/1/Screen Shot 2017-05-17 at 23.36.14.png)
                  ![Screen Shot 2017-05-17 at 23.36.14.png_thumb](/public/imported_attachments/1/Screen Shot 2017-05-17 at 23.36.14.png_thumb)

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

                    With one outside IP address you can forward port 5060 inbound to exactly one place, not like 10.

                    Describe your VoIP environment completely? Where are the phones, where is the PBX, and where are the SIP trunks (if any).

                    Who is the provider and what is their port forward/NAT guidance?

                    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
                    • J
                      Jamerson
                      last edited by

                      @Derelict:

                      With one outside IP address you can forward port 5060 inbound to exactly one place, not like 10.

                      Describe your VoIP environment completely? Where are the phones, where is the PBX, and where are the SIP trunks (if any).

                      Who is the provider and what is their port forward/NAT guidance?

                      Thank you for your answer,
                      the PBX is hosted outside the office in a google datacentre which need incoming ports.
                      according to the manual we need those ports to be open.

                      Remote provisioning of devices
                      Incoming:
                      443 TCP (default) or another external secure port (SIP-RTP page);
                      5060 UDP – 5061 TCP for SIP registration
                      RTP: from 10000 to 15000 (SIP-RTP page)

                      outgoing is any to any rules applied.

                      edit :
                      when we call out stuff works fine however when people calls us the quality is poor.
                      i've changed the outgoing NAT rules from Automatically to Manually however the issue still exisit.

                      Can someone please advice !

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

                        If all calls are completing reliably to/from multiple phones and you have two-way audio it is probably not NAT.

                        when people calls us the quality is poor.

                        Usually voice quality in one direction is the issue and that is generally you speaking to them because your upload is asymmetric compared to your download.

                        You probably need to better-describe what you are seeing.

                        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
                        • J
                          Jamerson
                          last edited by

                          @Derelict:

                          If all calls are completing reliably to/from multiple phones and you have two-way audio it is probably not NAT.

                          when people calls us the quality is poor.

                          Usually voice quality in one direction is the issue and that is generally you speaking to them because your upload is asymmetric compared to your download.

                          You probably need to better-describe what you are seeing.

                          we managed to fix the issue,
                          when we use ISP 1 as default WAN the problem with the voice come back
                          when we use ISP 2 as default WAN the problem disappear the phone quality is fine.

                          the phones are running on VLAN30 and the Computers on VLAN1.

                          we are using a Load balancing with one Tire 1 and packet loss or high latency ,when I check whatismyip sometimes I get the ISP1 and others I get the ISP2 IP.
                          I want to use ISP2 as default WAN and Gateway and ISP 1 only when the ISP 2 total down.
                          do I have to change the Trigger Level to member Down ?

                          Thank you

                          ![Screen Shot 2017-05-19 at 01.19.41.png](/public/imported_attachments/1/Screen Shot 2017-05-19 at 01.19.41.png)
                          ![Screen Shot 2017-05-19 at 01.19.41.png_thumb](/public/imported_attachments/1/Screen Shot 2017-05-19 at 01.19.41.png_thumb)

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

                            I can imagine load balancing with VoIP would be unsatisfactory.

                            I would create a failover gateway group and policy route the VoIP traffic to that instead of the load balance group. Both can coexist and you can have different outbound connections use different gateway groups.

                            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
                            • First post
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.