CPUG: The Check Point User Group

Resources for the Check Point Community, by the Check Point Community.


Tim Hall has done it again! He has just released the 2nd edition of "Max Power".
Rather than get into details here, I urge you to check out this announcement post.
It's a massive upgrade, and well worth checking out. -E

 

Results 1 to 6 of 6

Thread: SSH Access to Gateway works only on Mgmt interface

  1. #1
    Join Date
    2012-07-10
    Location
    Zurich, Switzerland
    Posts
    241
    Rep Power
    6

    Default SSH Access to Gateway works only on Mgmt interface

    Just replaced a 12400 Cluster with new 15400 HW.
    All is fine, except that the cluster member accept ssh connection only on the Mgmt interface.

    When I log in to the gateway and try to do a local loop I get:

    Expert@mygateway:0]# ssh -l admin localhost
    socket: Address family not supported by protocol
    ssh: connect to host localhost port 22: Address family not supported by protocol

    When I try to connect from a remote host I get:

    The remote system refused the connection.

    When I look for a listener on port 22, there is none

    Expert@mygateway:0]# netstat -na | grep "0.0.0.0:22"
    Expert@mygateway:0]#

    Any hints are welcome

  2. #2
    Join Date
    2011-08-02
    Location
    http://spikefishsolutions.com
    Posts
    1,608
    Rep Power
    8

    Default Re: SSH Access to Gateway works only on Mgmt interface

    Is this r80.10?
    ps axuw | grep sshd

    Show anything?

    Also netstat -anp | grep sshd

    /etc/ssh/sshd_config

    Should be master config file. Check for strange listen or bind lines maybe? Post th contents if your unsure.

  3. #3
    Join Date
    2011-08-02
    Location
    http://spikefishsolutions.com
    Posts
    1,608
    Rep Power
    8

    Default Re: SSH Access to Gateway works only on Mgmt interface

    Something else. Ssh into the working interface then run netstat -anp | grep ip

    Where ip is remote systems ip.

    Oh could this be vsx?

  4. #4
    Join Date
    2012-07-10
    Location
    Zurich, Switzerland
    Posts
    241
    Rep Power
    6

    Default Re: SSH Access to Gateway works only on Mgmt interface

    It's a new 15400 cluster running standard fw and R77.30 Jumbo Take 292

    Here is some more stuff:
    Expert@mygateway:0]# netstat -anp | grep :22
    tcp 0 0 172.16.100.102:22 0.0.0.0:* LISTEN 27769/sshd
    tcp 0 0 172.16.100.102:22 172.16.100.8:47810 ESTABLISHED 5494/2
    [Expert@mygateway:0]#

    [Expert@mygateway:0]# ps -auxw | grep sshd
    5494 ? 00:00:00 sshd
    27769 ? 00:00:00 sshd

    [Expert@mygateway:0]# more /etc/ssh/sshd_config
    # $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $

    # This is the sshd server system-wide configuration file. See
    # sshd_config(5) for more information.

    # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin

    # The strategy used for options in the default sshd_config shipped with
    # OpenSSH is to specify options with their default value where
    # possible, but leave them commented. Uncommented options change a
    # default value.

    Port 22
    #Protocol 2,1
    Protocol 2
    AddressFamily any
    ListenAddress 172.16.100.102
    #ListenAddress ::

    # HostKey for protocol version 1
    #HostKey /etc/ssh/ssh_host_key
    # HostKeys for protocol version 2
    HostKey /etc/ssh/ssh_host_rsa_key
    HostKey /etc/ssh/ssh_host_dsa_key

    # Lifetime and size of ephemeral version 1 server key
    #KeyRegenerationInterval 1h
    #ServerKeyBits 768

    # Logging
    # obsoletes QuietMode and FascistLogging
    #SyslogFacility AUTH
    SyslogFacility AUTHPRIV
    #LogLevel INFO

    # Authentication:

    #LoginGraceTime 2m
    PermitRootLogin yes
    StrictModes yes
    #MaxAuthTries 6

    RSAAuthentication yes
    PubkeyAuthentication yes
    AuthorizedKeysFile .ssh/authorized_keys

    # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
    #RhostsRSAAuthentication no
    # similar for protocol version 2
    #HostbasedAuthentication no
    # Change to yes if you don't trust ~/.ssh/known_hosts for
    # RhostsRSAAuthentication and HostbasedAuthentication
    IgnoreUserKnownHosts yes
    # Don't read the user's ~/.rhosts and ~/.shosts files
    IgnoreRhosts yes

    # To disable tunneled clear text passwords, change to no here!
    #PasswordAuthentication yes
    #PermitEmptyPasswords no
    PasswordAuthentication yes

    # Change to no to disable s/key passwords
    #ChallengeResponseAuthentication yes
    ChallengeResponseAuthentication no

    # Kerberos options
    #KerberosAuthentication no
    #KerberosOrLocalPasswd yes
    #KerberosTicketCleanup yes
    #KerberosGetAFSToken no

    # GSSAPI options
    #GSSAPIAuthentication no
    ##GSSAPIAuthentication yes
    #GSSAPICleanupCredentials no
    ##GSSAPICleanupCredentials yes

    # Set this to 'yes' to enable PAM authentication, account processing,
    # and session processing. If this is enabled, PAM authentication will
    # be allowed through the ChallengeResponseAuthentication mechanism.
    # Depending on your PAM configuration, this may bypass the setting of
    # PasswordAuthentication, PermitEmptyPasswords, and
    # "PermitRootLogin without-password". If you just want the PAM account and
    # session checks to run without PAM authentication, then enable this but set
    # ChallengeResponseAuthentication=no
    #UsePAM no
    UsePAM yes

    # Accept locale-related environment variables
    AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
    AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
    AcceptEnv LC_IDENTIFICATION LC_ALL
    AllowTcpForwarding no
    #GatewayPorts no
    X11Forwarding no
    #X11Forwarding yes
    #X11DisplayOffset 10
    #X11UseLocalhost yes
    PrintMotd yes
    #PrintLastLog yes
    TCPKeepAlive yes
    #UseLogin no
    #UsePrivilegeSeparation yes
    #PermitUserEnvironment no
    #Compression delayed
    #ClientAliveInterval 0
    #ClientAliveCountMax 3
    #ShowPatchLevel no
    #UseDNS yes
    #PidFile /var/run/sshd.pid
    MaxStartups 10:30:100
    #PermitTunnel no
    #ChrootDirectory none

    # no default banner path
    #Banner /some/path
    Banner /etc/issue

    # override default of no subsystems
    #Subsystem sftp /usr/libexec/openssh/sftp-server

    DenyUsers root shutdown halt nobody ntp pcap rpm
    # ckp - CR00596011
    #AllowGroups root
    [Expert@mygateway:0]#

  5. #5
    Join Date
    2012-07-10
    Location
    Zurich, Switzerland
    Posts
    241
    Rep Power
    6

    Default Re: SSH Access to Gateway works only on Mgmt interface

    Got it finally, the listen address in the sshd_config file needs to be commented out:

    ListenAddress 172.16.100.102 --> does not work

    #ListenAddress 172.16.100.102 --> does work

  6. #6
    Join Date
    2011-08-02
    Location
    http://spikefishsolutions.com
    Posts
    1,608
    Rep Power
    8

    Default Re: SSH Access to Gateway works only on Mgmt interface

    Quote Originally Posted by slowfood27 View Post
    Got it finally, the listen address in the sshd_config file needs to be commented out:

    ListenAddress 172.16.100.102 --> does not work

    #ListenAddress 172.16.100.102 --> does work
    Well thatís strange. Are you sure someone else over there didnít do that? I donít remember seeing a ssh listen option in clish but maybe there is one.

Similar Threads

  1. Change IP-address on Mgmt-interface
    By Nilsan in forum Firewall Blade
    Replies: 3
    Last Post: 2016-03-08, 09:44
  2. Smart-1 no access on MGMT interface
    By bollano in forum Advanced Networking & Clustering Blade
    Replies: 2
    Last Post: 2013-02-17, 22:25
  3. Unable to access SSL Websites using IE8 on Windows 7/Vista. XP works fine.
    By Soccer8 in forum IPS Blade (Formerly SmartDefense)
    Replies: 4
    Last Post: 2010-04-08, 06:32
  4. MGMT Interface Significance
    By rmmagow in forum Clustering (Security Gateway HA and ClusterXL)
    Replies: 2
    Last Post: 2010-03-26, 13:08
  5. cluster works on one interface, but fails on another interface
    By shmilyh in forum Clustering (Security Gateway HA and ClusterXL)
    Replies: 1
    Last Post: 2009-08-20, 02:22

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •