Finally I found it. You must add routeback option to wg0 interface in /etc/shorewall/interfaces file.