How to change the range from 2 to 25 or above?

There are two ways to increase range - more power or more directional aerials.

However highly direction aerials like a Yagi rely on line-of-sight paths, which is
unlikely for 25km.

The regulations for transmitter power typically limit ERP, not just total output
power, so a higher gain transmitter aerial wouldn't normally be legal. Higher
gain receiver such as a large Yagi or dish is perfectly valid though.