Source-address or source-interface for ntp, dns, etc

Hi

Is it possible to bind DNS, NTP, etc VyOS router client requests to specific interface?

like cisco
ip domain lookup source-interface vlan 1
ntp source vlan 1

Try listen-address:

set service snmp listen-address x.x.x.x
set system ntp listen-address x.x.x.x

Sorry, I think that my question was not clear.

I would like to ask about binding source interface for traffic initiated from VyOS to another host. (traceroute, ping and DNS resolving if hostaname used)

We don’t have such bindings.
You can set services to listen to specific addresses.
Or use ping x.x.x.x interface x,x,x,x
Or use PBR rules.

I believe you created good quality items in functions also. Keep working, congrats!

PBR rules could be effective, but I don’t see a way to set a source IP for an outbound connection via that method - only an outbound interface/next-hop. Does changing the egress interface via PBR change the source address of the packets to the IP of that particular interface?

Source port /dest port/mark/protocol/source address/ destination address and other options
Look at “policy local-route”

using sNAT rules, you can overrule the source address. So for instance, syslog message always seem to originate from some loopback address, instead of primary/backup interface IP.

I didnt try that, but theres a comand in CLI:

set service ntp interface lo

Probably its only for configuring a NTP Server on the VyOS router itself