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

    SSH works of pfSense but fail Linux server.

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 4 Posters 1.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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      Can we get a basic diagram of how these systems are connected?

      1 Reply Last reply Reply Quote 0
      • F
        F1Fish
        last edited by

        network diagram.png

        1 Reply Last reply Reply Quote 0
        • F
          F1Fish @bingo600
          last edited by

          Have you routed the 10.0.0.0/17 network on the game machine to 192.168.0.5 , in order to enable return packets.

          If I'm understanding this correctly. A static routeon the game server will only give me Lan accses and no wan accses

          From your description , the ssh packages does not even pass the pfSense fw , in a functional setup.

          I can't ssh the game server. I see nothing in firewall log file for a failed attempt. But I can login to pfSense using ssh.

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

            So your transit network is is this 192.168.0/24 ? You do not put hosts on a transit network.. This comes up like every day it seems..

            And your trying to access the game server from some downstream network..

            This is asymmetrical.. So no its not going to work without routes on the game server.

            asymettrical.png

            And take you don't even have default route on this game server, so it can not even send the syn,ack back??? Even with default route to 192.168.0.1 - pfsense would not allow it because it would be out of state.

            You need a route on the gameserver saying hey to get to 10.0/17 talk to 192.168.0.5

            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.8, 24.11

            F 1 Reply Last reply Reply Quote 0
            • F
              F1Fish @johnpoz
              last edited by

              johnpoz thank you for your help

              The solution I used on game server was.
              up /sbin/route add -net 10.0.0.0 netmask 255.255.128.0 gw 192.168.0.5
              down /sbin/route del -net 10.0.0.0 netmask 255.255.128.0
              Added to /etc/network/interfaces file.

              The DSL router (CenturyLink C1900A) I use did this automatically.
              So I’m still looking for a solution I can implement on the firewall.

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                If it was setup exactly like that then it probably did it 'automatically' by being a bad stateful firewall. 😉

                If it did not track TCP states for example that traffic would be allowed.

                You can try setting Bypass firewall rules for traffic on the same interface in System > Adv > Firewall&NAT. Or you can force the traffic to be passed by allowing out of state TCP traffic.
                https://docs.netgate.com/pfsense/en/latest/firewall/troubleshooting-blocked-log-entries-due-to-asymmetric-routing.html#manual-fix

                Steve

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

                  Or the actual correct solution which would be to remove asymmetrical traffic flow! ;)

                  While allowing out of state traffic can be a life saver in say an enterprise where something broken, and we can get it working like this - until proper fix/redesign can be done.

                  The correct solution is to not setup asymmetrical networks.. Just no point to it, other than lack of basic networking skills.

                  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.8, 24.11

                  F 1 Reply Last reply Reply Quote 1
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Yup. That.

                    If you add workarounds to allow the traffic it will probably come back to bite you at some point.

                    1 Reply Last reply Reply Quote 0
                    • F
                      F1Fish @johnpoz
                      last edited by

                      @johnpoz

                      So your saying I should go with a router on a stick. Or move the game server tto a vlan routed by the switch. To clear up the asymmetrical network.

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

                        You need to take your server off the transit network... Be it you want it to be a vlan hanging off your downstream router, or a vlan off of your edge router (pfsense)..

                        But currently that network is transit (a network between 2 routers) putting hosts on it that need to talk or get talked too from network via one of the routers lead to asymmetrical traffic flow.

                        Throw another vlan on your pfsense and put your game server there, now you can actually firewall between your downstream networks and the server..

                        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.8, 24.11

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