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

Port forwarding: Timeout

Scheduled Pinned Locked Moved NAT
16 Posts 4 Posters 3.5k 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.
  • G
    Grimson Banned
    last edited by Aug 22, 2018, 11:14 AM

    https://www.netgate.com/docs/pfsense/nat/port-forward-troubleshooting.html

    1 Reply Last reply Reply Quote 0
    • L
      leof.22
      last edited by leof.22 Aug 22, 2018, 1:27 PM Aug 22, 2018, 11:31 AM

      Thanks. I know this site. But I can't figure out where the problem is.
      The "Packet Capture" output when I try to conntect via ssh (filter port 3022):

      15:27:13.199038 IP 89.244.219.255.40800 > 141.10.55.171.3022: tcp 0
      15:27:14.224421 IP 89.244.219.255.40800 > 141.10.55.171.3022: tcp 0
      15:27:16.237957 IP 89.244.219.255.40800 > 141.10.55.171.3022: tcp 0
      15:27:20.335757 IP 89.244.219.255.40800 > 141.10.55.171.3022: tcp 0
      
      1 Reply Last reply Reply Quote 0
      • R
        Rico LAYER 8 Rebel Alliance
        last edited by Aug 22, 2018, 12:33 PM

        Are you testing from inside or outside of your LAN ?
        Please test outside/external, for example and mostly the easiest way with your Smartphone.

        -Rico

        1 Reply Last reply Reply Quote 0
        • L
          leof.22
          last edited by Aug 22, 2018, 12:41 PM

          This test was from outside.
          89.244.219.255 is outside and 141.10.55.171 ist the ip of the pfsense. 10.1.11.175 is the one server inside.

          1 Reply Last reply Reply Quote 0
          • R
            Rico LAYER 8 Rebel Alliance
            last edited by Aug 22, 2018, 1:06 PM

            Your target 10.1.11.175 is using the pfSense Box as default Gateway?
            Are you in manual NAT mode?

            -Rico

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz Aug 22, 2018, 1:17 PM Aug 22, 2018, 1:14 PM

              So the 141 address is your wan, and your trying to forward to your inside box... So traffic is getting to your wan which is step 1 in figuring out where your problem. So now sniff on the lan side of pfsense to validate pfsense is sending on to your 10.x address..

              All of the info needed to figure out where your problem is documented in the troubleshooting guide.

              BTW your hitting 3024 which is not what you stated as your forwards 3022 is what you state is your forward to ssh

              Sorry but not going to follow some link to some nextcloud of a new poster with a total of 3 posts in this thread ;) Attach your screenshots if you want people to see them.

              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

              L 1 Reply Last reply Aug 22, 2018, 1:51 PM Reply Quote 0
              • L
                leof.22
                last edited by leof.22 Aug 24, 2018, 9:00 AM Aug 22, 2018, 1:37 PM

                Thanks johnpoz... I've edited both answers. Perhaps I should take a break ;-)

                The inside machine is using another gateway (octogate firewall) to go outside. The configuration in the octogate firewall allows all outgoing traffic from this inside machine.

                I tried to set all settings as described in Common Problems

                I will try sniff the lan side...

                J 1 Reply Last reply Aug 22, 2018, 8:14 PM Reply Quote 0
                • R
                  Rico LAYER 8 Rebel Alliance
                  last edited by Aug 22, 2018, 1:39 PM

                  ...set the pfSense Box to default Gateway and give it a shot.

                  -Rico

                  1 Reply Last reply Reply Quote 0
                  • L
                    leof.22
                    last edited by Aug 22, 2018, 1:46 PM

                    good idea! It will try it when I'm back at school (there is the pfsense an octogate)...

                    1 Reply Last reply Reply Quote 0
                    • L
                      leof.22 @johnpoz
                      last edited by Aug 22, 2018, 1:51 PM

                      @johnpoz said in Port forwarding: Timeout:

                      So now sniff on the lan side of pfsense to validate pfsense is sending on to your 10.x address..

                      How does this works? I thought the "Packet Capture" capture also the traffic from pfsense to inside?

                      1 Reply Last reply Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator @leof.22
                        last edited by johnpoz Aug 22, 2018, 8:15 PM Aug 22, 2018, 8:14 PM

                        @leof-22 said in Port forwarding: Timeout:

                        The inside machine is using another gateway (octogate firewall) to go outside.

                        Well how do you think that would work ever??

                        Why would the client ever accept that return traffic? I sent traffic to 1.2.3.4 and get answer back from 5.6.7.8 - doesn't work!!!

                        Packet capture is on the interface you select.

                        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
                        • L
                          leof.22
                          last edited by leof.22 Aug 24, 2018, 2:23 PM Aug 24, 2018, 2:22 PM

                          ok - I've tested the pfsense as default gateway and everything works fine. So far so good.

                          But I can't change the default gateway of our window server from the octogate firewall to the pfsense firewall. What can I do?

                          I don't understand why this depends on the default gateway.
                          Why doesn't the internal server answer directly to the pfsense when the request comes from the pfsense? What do I have to do? I need several changes in the octogate, don't I?

                          Thanks for your help!
                          Leo

                          1 Reply Last reply Reply Quote 0
                          • J
                            johnpoz LAYER 8 Global Moderator
                            last edited by Aug 24, 2018, 2:39 PM

                            There are 2 solutions you can do here, if the server your wanting to talk to uses a different default gateway other than pfsense.

                            Setup a route on the server telling it to get back to the tunnel network your using to use pfsense as the gateway for that dest network.

                            Setup source nat on your vpn connection so that clients talking to this server will be natted to the pfsense IP address in this network. So the server doesn't have to use any gateway to talk back, since the server has an interface on this network.

                            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
                            • L
                              leof.22
                              last edited by leof.22 Aug 24, 2018, 7:52 PM Aug 24, 2018, 7:43 PM

                              Thanks! I've solved the problem. I added a outbound rule (Firewall > NAT > Outbound tab) for the LAN interface:

                              • source of ANY
                              • destination of 10.1.11.175/32
                              • translation = Interface address

                              Now, the next problem appears. More about it in an other thread...

                              1 Reply Last reply Reply Quote 0
                              • J
                                johnpoz LAYER 8 Global Moderator
                                last edited by Aug 24, 2018, 7:44 PM

                                take it that 100 is really a 10 and that just a typo ;)

                                Glad you got it sorted

                                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
                                16 out of 16
                                • First post
                                  16/16
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                  This community forum collects and processes your personal information.
                                  consent.not_received