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

    NAT protocol; any way to set something other than in dropdown?

    Scheduled Pinned Locked Moved NAT
    11 Posts 3 Posters 761 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.
    • M
      macNCheeseB
      last edited by

      I really need to support SCTP through a NAT rule. I can build a firewall rule on this protocol, but I need the network translation support in order to port forward to an internal IP address. Is there any way to set the protocol to either override the dropdown (is there a commandline override?), or to allow any or all protocols on a particular port to be forwarded?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by johnpoz

        @macncheeseb said in NAT protocol; any way to set something other than in dropdown?:

        SCTP

        can you not just tunnel it over UDP port?

        https://tools.ietf.org/html/rfc6951
        UDP Encapsulation of Stream Control Transmission Protocol (SCTP) Packets for End-Host to End-Host Communication

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        M 2 Replies Last reply Reply Quote 0
        • M
          macNCheeseB @johnpoz
          last edited by

          @johnpoz Thanks for the response. I will look at that document to see if here is something I can use. My first thought is I have tried workarounds like this before,but run into issues with NAT'ing. If there is any hiding of addresses within other protocols, the NAT only goes one level deep. But I'll look.

          1 Reply Last reply Reply Quote 0
          • M
            macNCheeseB @johnpoz
            last edited by

            @johnpoz So looking at that RFC and doing some searching shows that UDP encapsulation it is not something that is native to most OSs, including Linux (which I am using). There are some third party SW implementations that promise to do that for anybody needing it but most are still immature or no longer supported from what I can see. So I don't think that is really a feasible solution. Is there no way to manually set the protocol number to filter on in pfsense?

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              @jimp would prob be the best guy to answer such a question. I really have almost zero experience with sctp.. To be honest other than reading some info on it - I have never really seen it in production.

              Lets see if jim notices his page and joins us.. I think its a bit more complicated then just adding the protocol number to the dropdown list ;)

              If the underlaying stuff is there then sure they could add that to the dropdown list.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              M 1 Reply Last reply Reply Quote 0
              • M
                macNCheeseB @johnpoz
                last edited by

                @johnpoz OK, thanks for the response. Hopefully @jimp can jump in with some advice.

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  You'd have to edit the source code to add the protocol, or setup 1:1 NAT so everything gets forwarded.

                  Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                  Need help fast? Netgate Global Support!

                  Do not Chat/PM for help!

                  M 2 Replies Last reply Reply Quote 0
                  • M
                    macNCheeseB @jimp
                    last edited by

                    @jimp Thanks for the response. So no real way to support anything other than what is in the drop down generically. I don't really like the 1:1 option, but I will explore that and see if it gets me what I need.

                    1 Reply Last reply Reply Quote 0
                    • M
                      macNCheeseB @jimp
                      last edited by

                      @jimp, @johnpoz I have a 1:1 NAT in place and I can see that SSH traffic gets passed between the two IPs, but it is still blocking SCTP traffic. Is there a specific option to allow all protocols on the 1:1 NAT?

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        1:1 NAT always forwards all protocols. Perhaps you didn't allow it with firewall rules? 1:1 NAT doesn't add firewall rules automatically like port forwards do.

                        Remember: Upvote with the ๐Ÿ‘ button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          macNCheeseB @jimp
                          last edited by

                          @jimp That was it. Had to allow the traffic through the firewall. Thanks for the help, I think this will get me what I need for now.

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