RAK7268&7289 can't be connected at 1km distance

The end device rak3172 is able to connect to the gateway in ClassA mode at a distance of 10m from the gateway. However, it does not connect at a distance of about 1km (the terminal device is placed indoors and the gateway is placed outdoors with a view of the sky). The band and other parameters are CN470 channel single 487500000 SF12 bw125k.