How to forward an destination ip ranges to a socket5 proxy

Hi, All
I want to forward some ip addresses to a local socket5 proxy port. How to do it in vyos?

Hello!
I’m not sure, that this is what you are want, but, you may try to create DNAT rule instead REDIRECT:

set nat destination rule 10 inbound-interface eth2
set nat destination rule 10 source address 192.168.55.0/24
set nat destination rule 10 translation address 192.168.1.1

where:
eth2 - interface from which traffic must be redirected;
192.168.55.0/24 - source address, from which traffic must be redirected. You can setup also destination address, or whatever you want;
192.168.1.1 - address of this router.