Controlling which interface named uses

Grant Taylor gtaylor at tnetconsulting.net
Tue Jun 27 18:35:38 UTC 2023


On 6/12/23 2:48 AM, Matus UHLAR - fantomas wrote:
> note that query-source settings affects source IP of packet, while "ip 
> rule" affects outgoing interface (unless you also configure SNAT for 
> those packets), so they are not exactly the same.

Late comment:  `ip route` can have some influence on what the source IP 
is for traffic via it's `from` stanza.

This is commonly needed when you have things like VPNs between sites and 
you want the VPN gateway to originate traffic to the remote LAN from the 
local LAN interface, not the internet connection, thereby causing the 
traffic to match LAN to LAN configuration in the VPN.

(LAN A)---[.1 R1 .83]---(Internet)---[.77 R2 .1]---(LAN B)

Something like / from memory:

r1# ip route add $LANB via $GW from $LANA.1



Grant. . . .


More information about the bind-users mailing list