gtm_add failed

I’m planning to join new GTM to existing GTM sync group. Both GTM have same big3d version. Existing GTM external interface is set to allow default. When I try to type gtm_add in new GTM it showed error message as below.

root@(NEWGTM)(cfg-sync Standalone)(Active)(/Common)(tmos) run gtm gtm_add X.X.Y.Y Retrieving remote and installing local BIG-IP’s SSL certs … Enter root password for X.X.Y.Y if prompted ssh: connect to host X.X.Y.Y port 22: Connection refused

ERROR: Can’t read remote cert via /usr/bin/ssh.

==> Done <== root@(NEWGTM)(cfg-sync Standalone)(Active)(/Common)(tmos)

TCP port 22 need to be allowed on the existing GTM to allow ssh. Certificates exchange is made via ssh.

Please check the Self-IP configuration for the interface/VLAN and confirm whether the Port Lockdown setting is allowed ssh.

Please check the Self-IP configuration for the interface/VLAN and confirm whether the Port Lockdown setting is allowed ssh.

Self IP port lockdown is set to allow default.

Self IP port lockdown is set to allow default.

what version you are running on GTM devices?

what version you are running on GTM devices?

I hope bash shell is enabled on both F5 devices.

I hope bash shell is enabled on both F5 devices.

Both running in version 12.1.3.2. I can ssh to mgmt IP using root account. If I ssh to external IP of existing GTM, it was failed. I have try telnet port 22 from outside to external IP of existing GTM and run tcpdump. Below are the output.

[root@GTM:Active:Standalone] config tcpdump -nni 1.1 -vv host X.X.Y.Y and port 22 tcpdump: listening on 1.1, link-type EN10MB (Ethernet), capture size 65535 bytes 17:48:40.688104 IP (tos 0x0, ttl 121, id 4122, offset 0, flags [DF], proto TCP (6), length 52) 210.195.27.234.63179 > X.X.Y.Y.22: Flags [S], cksum 0x9dcc (correct), seq 3434528005, win 17520, options [mss 1440,nop,wscale 8,nop,nop,sackOK], length 0 in slot1/tmm0 lis= 17:48:43.688044 IP (tos 0x0, ttl 121, id 4123, offset 0, flags [DF], proto TCP (6), length 52) 210.195.27.234.63179 > X.X.Y.Y.22: Flags [S], cksum 0x9dcc (correct), seq 3434528005, win 17520, options [mss 1440,nop,wscale 8,nop,nop,sackOK], length 0 in slot1/tmm0 lis= 17:48:49.688832 IP (tos 0x0, ttl 121, id 4124, offset 0, flags [DF], proto TCP (6), length 52) 210.195.27.234.63179 > X.X.Y.Y.22: Flags [S], cksum 0x9dcc (correct), seq 3434528005, win 17520, options [mss 1440,nop,wscale 8,nop,nop,sackOK], length 0 in slot1/tmm0 lis=

^C 3 packets captured 3 packets received by filter 0 packets dropped by kernel

Both running in version 12.1.3.2. I can ssh to mgmt IP using root account. If I ssh to external IP of existing GTM, it was failed. I have try telnet port 22 from outside to external IP of existing GTM and run tcpdump. Below are the output.

[root@GTM:Active:Standalone] config tcpdump -nni 1.1 -vv host X.X.Y.Y and port 22 tcpdump: listening on 1.1, link-type EN10MB (Ethernet), capture size 65535 bytes 17:48:40.688104 IP (tos 0x0, ttl 121, id 4122, offset 0, flags [DF], proto TCP (6), length 52) 210.195.27.234.63179 > X.X.Y.Y.22: Flags [S], cksum 0x9dcc (correct), seq 3434528005, win 17520, options [mss 1440,nop,wscale 8,nop,nop,sackOK], length 0 in slot1/tmm0 lis= 17:48:43.688044 IP (tos 0x0, ttl 121, id 4123, offset 0, flags [DF], proto TCP (6), length 52) 210.195.27.234.63179 > X.X.Y.Y.22: Flags [S], cksum 0x9dcc (correct), seq 3434528005, win 17520, options [mss 1440,nop,wscale 8,nop,nop,sackOK], length 0 in slot1/tmm0 lis= 17:48:49.688832 IP (tos 0x0, ttl 121, id 4124, offset 0, flags [DF], proto TCP (6), length 52) 210.195.27.234.63179 > X.X.Y.Y.22: Flags [S], cksum 0x9dcc (correct), seq 3434528005, win 17520, options [mss 1440,nop,wscale 8,nop,nop,sackOK], length 0 in slot1/tmm0 lis=

^C 3 packets captured 3 packets received by filter 0 packets dropped by kernel

Check routes, firewalls and routers. Port 22 need to be allowed across all the way from GTM1 to GTM2

Check routes, firewalls and routers. Port 22 need to be allowed across all the way from GTM1 to GTM2

Do you have the AFM module / packet filters / another firewall device in between the GTMs that may be blocking this traffic?

From the bash prompt try doing a netcat from one GTM to the peer GTM device to see if it can connect.

nc -v X.X.Y.Y 22

The tcpdump was taken from existing GTM. Existing GTM was able to receive the telnet on port 22 but it did not reply.

The tcpdump was taken from existing GTM. Existing GTM was able to receive the telnet on port 22 but it did not reply.

Is sshd running? ps aux|grep sshd

I found the root cause. The old GTM configured packet filter rule and only allow few ip to ssh. Thank you for all your effort. Really appreciate.

I am glad you found the root cause :smiley: