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

Port forward to UDP 10000 is NOT working

NAT
7
56
7.5k
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
    JeGr LAYER 8 Moderator
    last edited by JeGr Jun 10, 2020, 7:30 AM Jun 10, 2020, 7:29 AM

    Without showing your NAT and Rule entries, no one can but guess, what is going on in your setup! So please add some information and screens to your post :)

    We are running multiple Jitsi and Jitsi Dev installations ourselves and have no problem forwarding necessary ports at all so it has to be something with your ruleset or configuration.

    Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

    If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

    1 Reply Last reply Reply Quote 0
    • R
      raviktiwari
      last edited by raviktiwari Jun 10, 2020, 8:21 AM Jun 10, 2020, 8:13 AM

      Thanks for getting back to me @JeGr and I completely agree with you for the lack of screenshot.

      So here we go (Blue one is Test Config and Red is Prod.)

      login-to-view login-to-view

      login-to-view login-to-view

      Hope this helps.

      As usual, any help will be highly appreciated.

      Many Thanks,
      Rav

      L 1 Reply Last reply Jun 11, 2020, 7:58 AM Reply Quote 0
      • R
        raviktiwari
        last edited by Jun 10, 2020, 10:07 PM

        Any idea, what I am doing wrong?

        Any hint or help to check/ensure port 10000 (UDP) is actually open or port forwarded, will be highly appreciated.

        Many Thanks,
        Rav

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Jun 10, 2020, 10:28 PM

          Troubleshooting nat should take you all of 2 minutes tops...

          Its really simple.. Does the traffic hit your wan IP? Sniff - do you see traffic hit your wan IP on port 10k? If you don't its not pfsense.

          If it does - then sniff on the interface your trying to send it to.. say your lan.. Do you see pfsense send the traffic on 10k? If so then its not pfsense.

          Example - I don't even have anything running on 192.168.9.100 on 10k, but I will setup a port forward rule..

          You need to test from a location online - say https://www.ipvoid.com/udp-port-scan/

          So created a port forward for 10k..
          login-to-view

          Now sniffing on wan for port 10k, and then sending traffic to 10k..

          My wan sees it
          login-to-view

          Now sniffing on my lan where this 192.168.9.100 device sits.. Sending traffic again..
          login-to-view

          Pfsense did exactly what you told it to do.. It sent the traffic on to the client - if the client is not listening, or does not answer there is nothing pfsense can do about it.. If the traffic never hits your pfsense wan - pfsense can not send it on.. If you spend more than 2 minutes trying to figure out what step you missed or where the problem is with port forwarding..To be honest you shoudln't be doing port forwarding because you do not understand it at a basic level and your just clicking shit hoping something works.

          /rant.. Sorry been drinking with buddies via virtual happy hour.. But its like every other hour we see the same exact thing about port forwarding.. Where everything you need to try and figure it out is right here
          https://docs.netgate.com/pfsense/en/latest/book/nat/troubleshooting.html

          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

          1 Reply Last reply Reply Quote 0
          • R
            raviktiwari
            last edited by raviktiwari Jun 11, 2020, 2:43 AM Jun 11, 2020, 1:44 AM

            Generally, I get angry with such posts, but this one brought a smile on my face - great sense of humour. :-)

            You are right, when you know your stuff, it is a 2 min job but when you don't even 2 weeks is less (as in my case). I always thought networking is not my cup of tea as my core strength is Sys Admin, but then I was able to do a lot of stuff and got 2 environments up and running pretty well which gave me a false hope that I can do this sh!t... but clearly I am still not there - not yet.

            I have been drinking as well and so I don't think this is the right time to touch the Prod environment, so I will give it a go tomorrow morning.

            However, just so you know I tried packet capturing but I was unable to open the output file, it asks for some weird file type association and I am not able to open it at all. But never mind, I will try it again and report back to you SIR. Need to go back to my drinks - it's not nice to keep someone waiting... :-)

            Thanks for getting back to me and give some pointers - appreciate it mate.

            Thx: Rav

            1 Reply Last reply Reply Quote 0
            • C
              chpalmer
              last edited by chpalmer Jun 11, 2020, 2:22 AM Jun 11, 2020, 2:15 AM

              @raviktiwari said in Port forward to UDP 10000 is NOT working:

              I have been drinking as well and so I don't think this is the right time to touch the Prod environment, so I will give it a go tomorrow morning.

              That's a prerequisite in my shop... :)

              But seriously.. pfsense port forwarding works just fine and is fairly easy to implement. So when someone comes along everyone here will and should get very matter of factly arrogant and corrective.. (to a point). There is no- it doesn't work on my implementation even if it does on every body else's. That said..

              Remember-- Specifically WIndows but maybe others.. built in firewalls treat any "out of subnet address" as "public" and will block anything incoming. Yes if 192.168.2.1 is not in your subnet then it is public and untrusted. even if you think that firewall is off it is often not.

              /diag_packet_capture.php is your friend.. Get to know it well. :)

              Triggering snowflakes one by one..
              Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

              1 Reply Last reply Reply Quote 0
              • R
                raviktiwari
                last edited by Jun 11, 2020, 2:41 AM

                Alright then, @chpalmer provoked me and I took a peek on Production systems....

                ipvoid shows all good on WAN port... so WAN port is listening and pfsense is doing what it has been asked to do (PFA the SS).

                login-to-view

                However, when I go to packet capture (WAN or LAN), I am unable to see any details in the box below and download has a .cap extension, which I am not sure how to open - does not open in notepad. PFA the SS for that as well.

                login-to-view

                I am trying to install Wireshark assuming the downloaded files can be viewed in wireshark... but any idea how I can get the captured data displayed in the box below?

                Thx: Rav

                1 Reply Last reply Reply Quote 0
                • C
                  chpalmer
                  last edited by chpalmer Jun 11, 2020, 2:59 AM Jun 11, 2020, 2:54 AM

                  It should show up easily in the box below.

                  Im using GRC.com to try some connections inbound and doing a packet capture but that resource stops at 1055. But my screen capture will show you what to expect.

                  Triggering snowflakes one by one..
                  Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                  1 Reply Last reply Reply Quote 0
                  • R
                    raviktiwari
                    last edited by Jun 11, 2020, 3:03 AM

                    But it's not... I think I might have some browser issue... some extension, java whatever (despite the fact that I even changed browser).

                    I am saying this because I know my test server along with test pfsense has UDP port 10K working... so I just tried capturing traffic for that.... but I can't see anything.

                    Do I need to leave the capturing on for few mins, like 2-5 mins before I can actually see any captured packets?

                    Thx: Rav

                    1 Reply Last reply Reply Quote 0
                    • C
                      chpalmer
                      last edited by Jun 11, 2020, 3:05 AM

                      login-to-view

                      If you see nothing I would bet your ISP is blocking that port.

                      Triggering snowflakes one by one..
                      Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                      1 Reply Last reply Reply Quote 0
                      • R
                        raviktiwari
                        last edited by Jun 11, 2020, 3:15 AM

                        How is that possible?

                        Just tried port 80 as well as 443 (TCP) and we all know it IS working, so why there is nothing for these port in the box below - as you can see it (in your ss).

                        Do I need to capture traffic from another Ip address.. as in my public IP is: 1.2.3.4 and both me and my server is connected to this same issue (via different interface at pfsenses) so can I do packet capture from this laptop or should I use another laptop whose public ip is: 5.6.7.8?

                        Many Thx: Rav
                        Many Thanks,
                        Rav

                        1 Reply Last reply Reply Quote 0
                        • C
                          chpalmer
                          last edited by Jun 11, 2020, 3:20 AM

                          Assuming your IP address is indeed public.. Not 100.xx.xx.xx or any of the others... Your ISP can block stuff. Especially if you are a residential customer.. Look at your TOS. They probably say no servers.

                          Don't feel shy to ask them.

                          Triggering snowflakes one by one..
                          Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                          1 Reply Last reply Reply Quote 0
                          • R
                            raviktiwari
                            last edited by Jun 11, 2020, 3:32 AM

                            Yes I truly have a public IP: 62...* and this is a commercial ISP. When I signed the contract I gave them MY ToS saying I will be hosting servers. They even support me with my issues, for example in changing my reverse DNS and so on.

                            Reason I am arguing is that when I give command on Test Server:
                            nc -l 10000 -u

                            And then from Prod machine (should have Internet access):
                            echo "123" | nc -u my.public.ip.address 10000

                            I do get "123" displayed on my test server... so that means I can forward the port and it is working, listening and displaying everything.

                            So why it is not working only in pfsense packet capture box? And worst-case scenario, what will ISP block? A port right? Even if they block UDP port 10K, they cannot block port 80 and 443 on TCP... but I cannot see anything even for those ports?

                            Many Thanks,
                            Rav

                            T 1 Reply Last reply Jun 11, 2020, 4:06 AM Reply Quote 0
                            • C
                              chpalmer
                              last edited by Jun 11, 2020, 3:58 AM

                              Well.. commercial so you should be open.

                              Ive never had issues with the packet capture page on both Fireflop and Chrome.. But that is the limit of my testing..

                              Triggering snowflakes one by one..
                              Intel(R) Core(TM) i5-4590T CPU @ 2.00GHz on an M400 WG box.

                              1 Reply Last reply Reply Quote 0
                              • T
                                taz3146 @raviktiwari
                                last edited by taz3146 Jun 11, 2020, 4:08 AM Jun 11, 2020, 4:06 AM

                                @raviktiwari
                                are you trying from a network behind the router itself? if yes do you have some form of NAT reflection enabled?
                                system > advanced ? firewall & nat > Network Address Translation section.

                                R 1 Reply Last reply Jun 11, 2020, 2:16 PM Reply Quote 0
                                • L
                                  ldiciolla @raviktiwari
                                  last edited by ldiciolla Jun 11, 2020, 8:02 AM Jun 11, 2020, 7:58 AM

                                  @raviktiwari
                                  All comes down to the way you define your rules: The wildcard to wildcard (all to all) rules should go into the floating rules as they should be applied to every network in your domain...

                                  Hope it helps

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    Gertjan
                                    last edited by Jun 11, 2020, 8:27 AM

                                    A part of the test pfSense :

                                    login-to-view

                                    The "10000" rule send over 1.16 Giga bytes.
                                    The second rule shows a whopping 3 Gb being handled by this rule.

                                    All this traffic didn't made it into the "Jitsi" process, or it was on the LAN .... probably it hit the "wall" between it ; the OS firewall of the "Jitsi" server.

                                    Byw : I'm not sure, but this does not look "ok" to me :
                                    You have two identical rules that have a port "10000" as a source address..
                                    What about change the range for the second rule : 10001 - 20000 ?

                                    No "help me" PM's please. Use the forum, the community will thank you.
                                    Edit : and where are the logs ??

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      raviktiwari
                                      last edited by Jun 11, 2020, 2:08 PM

                                      Thanks everyone... I don't know how and why ut it seems to be working... trust me, I did not make any changes other than the testing that @johnpoz and @chpalmer asked me to do yesterday... yes, I did restart the server as there were some bionic security and kernel upgrade that was pushed on the server and a restart was needed at the end of the update.

                                      I am going to take a backup of the configuration and keep it safe somewhere as this configuration issue has troubled be quite a few times and for a long time. So Thanks to everyone once again.

                                      However, the other issue, which actually delayed the troubleshooting of this issue (Unable to see the packet capture in the box below) is still something that I would like to get resolved.

                                      Many Thanks,
                                      Rav

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        raviktiwari @taz3146
                                        last edited by Jun 11, 2020, 2:16 PM

                                        Hi @taz3146
                                        Yes I am trying from a network behind the router itself?

                                        I checked system > advanced ? firewall & nat > Network Address Translation section and it was set to disabled, because I thought I will never need it. However, I have now changed it to: Nat+proxy.

                                        And I am still unable to see any packet captured details in the box below.
                                        P.S: UDP port 10K has already started working without making this NAT reflection changes. Do you still want me to make this change - I mean for the data capture box to display me the content?

                                        @Gertjan, that is in the plan, I wanted to get 10K work first and then change the other one from 10K1-20K now that it is working, I plan to make that changes.

                                        Thanks for your time, help and support.

                                        Thx: Rav

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by Jun 11, 2020, 3:16 PM

                                          If you can not see traffic in diag.. Yeah you have an issue there..

                                          As to firewall&nat set to disabled? What did you change?

                                          NAT Reflection mode for port forwards?

                                          You have zero use for that unless your actually doing the abomination that is nat reflection.. Which your port forwards would have zero to do with..

                                          As to your sniffing - you sure your sniffing on the correct interface?

                                          So from ssh, just do a tcpdump... Do you see flow of traffic?

                                          login-to-view

                                          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

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