Ssh connection hangs with static route



  • 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



  • 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



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



  • 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


Log in to reply