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

    Selective inbound port nat based on source ip

    Scheduled Pinned Locked Moved NAT
    3 Posts 3 Posters 2.3k 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.
    • S
      scheidell
      last edited by

      I have a situation on a SIP product that insists on splitting up the sip traffic.
      port 5060 if for phones, port 5080 is for SIP trunks. (I think they do it to get around needing a separate ip/box for the SBC)

      What I would like to do is take everything from the SIP trunk provider that hits port 5060 and fwd it internally to port 5080.
      (easy enough with proxy arp, and port forwarding).

      BUT, I want everything the works sends to that same port 5060 to go to port 5060 internally.

      I tried this:
      Firewall rules:
      inbound:
      allow siptrunk to sipprivate:5080
      allow any to sipprivate:5060
      Two port forward nat rules.

      nat external port 5060 to sipprivate:5080
      nat external port 5060 to sipprivate:5060

      (just describing it shows me it shouldn't work)

      1 Reply Last reply Reply Quote 0
      • D
        danswartz
        last edited by

        what does 'the works' mean?

        1 Reply Last reply Reply Quote 0
        • E
          Efonnes
          last edited by

          This was added in 2.0, which is currently in beta.

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