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

    Ssh connection hangs with static route

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 4.4k 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
      giulianoz
      last edited by

      Hello,
      on 1.2.2 I have set a static route to a test network:
      linux client <-> lan:pfsense:lan<-> lan:internal router:lan2<->linux server

      from the client I can start an ssh session ang give commands to the server. after some seconds however the session freezes. If I set a static route on the client (same gateway set on pfsense) the session works fine.

      I've set the Bypass firewall rules for traffic on the same interface, but nothing changes
      No logs on the pfsense :(

      any idea on what's going on ?

      thanks

      giuliano

      1 Reply Last reply Reply Quote 0
      • G
        giulianoz
        last edited by

        I'm sorry to bump, but …

        on the pfsense I have a static route set for network 10.0.1.0/24 -> gw 192.168.1.111

        ssh -i .ssh.old/id_rsa -v root@10.0.1.30          
        OpenSSH_5.2p1, OpenSSL 0.9.8k-fips 25 Mar 2009                           
        debug1: Reading configuration data /etc/ssh/ssh_config                   
        debug1: Applying options for *                                           
        debug1: Connecting to 10.0.1.30 [10.0.1.30] port 22.                     
        debug1: Connection established.                                          
        debug1: identity file .ssh.old/id_rsa type 1                             
        debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2 
        debug1: match: OpenSSH_5.2 pat OpenSSH*                                  
        debug1: Enabling compatibility mode for protocol 2.0                     
        debug1: Local version string SSH-2.0-OpenSSH_5.2                         
        debug1: SSH2_MSG_KEXINIT sent                                            
        debug1: SSH2_MSG_KEXINIT received
        debug1: kex: server->client aes128-ctr hmac-md5 none
        debug1: kex: client->server aes128-ctr hmac-md5 none
        debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
        debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
        debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
        debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
        debug1: Host '10.0.1.30' is known and matches the RSA host key.
        debug1: Found key in /home/giuliano/.ssh/known_hosts:105
        debug1: ssh_rsa_verify: signature correct
        debug1: SSH2_MSG_NEWKEYS sent
        debug1: expecting SSH2_MSG_NEWKEYS
        debug1: SSH2_MSG_NEWKEYS received
        debug1: SSH2_MSG_SERVICE_REQUEST sent
        debug1: SSH2_MSG_SERVICE_ACCEPT received
        debug1: Authentications that can continue: publickey,keyboard-interactive
        debug1: Next authentication method: publickey
        debug1: Offering public key: .ssh.old/id_rsa
        debug1: Server accepts key: pkalg ssh-rsa blen 277
        debug1: read PEM private key done: type RSA
        debug1: Authentication succeeded (publickey).
        debug1: channel 0: new [client-session]
        debug1: Requesting no-more-sessions@openssh.com
        debug1: Entering interactive session.
        debug1: Sending environment.
        debug1: Sending env LANG = it_IT.utf8
        debug1: Sending env LANGUAGE =
        --- hangs forever. can't kill with ctrl+c, only with kill command ---
        
        

        if I add a static route to the client (route add -net 10.0.1.0 netmask 255.255.255.0 gw 192.168.1.111) everything works

        thanks

        giuliano

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

          can you give this linux client <-> lan:pfsense:lan<-> lan:internal router:lan2<->linux server
          with IP addresses?

          http://ru.doc.pfsense.org

          1 Reply Last reply Reply Quote 0
          • G
            giulianoz
            last edited by

            sorry for the long wait before the answer. I have not noticed the reply :)

            linux client <-> lan:pfsense:lan<-> lan:internal router:lan2<->linux server

            IPs are:
            192.168.1.100/24 (client) <-LAN1-> 192.168.1.254/24 (default GW) <-static route to 10.0.1.0/24-> 192.168.1.111/24 (internal router) 10.0.1.254 <-LAN2-> 10.0.1.30 (server)

            thanks

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