Socks server - gateway

Hey there.

Is there some (hacky) way to specify a gateway IP (force the traffic via a specific gateway) for socks server?
The gateway is in IPSec tunnel (NordVPN).

Regards,
DB