> On Oct 15, 2018, at 11:20, Erling Westenvik <[email protected]> 
> wrote:
> 
> On Mon, Oct 15, 2018 at 01:05:28PM -0400, Sonic wrote:
>> Have setup a site-to-site VPN using alias addresses which works fine
>> for systems inside the network, however, when attempting to connect
>> from the routers themselves to the remote network the fact that they
>> use the default address on the external interface and not the chosen
>> alias address appears to be preventing a connection.
>> How does one tell the router to use the chosen outbound alias address
>> instead of the default address when sending to the specific remote
>> network?
> 
> Way out of my league, but on my ipsec/isakmpd setup I do:
> 
> # cat /etc/hostname.fxp0
> dhcp
> !route add -net <remote.lan.range>/24 <remote-gateway>

Not sure I’m understanding your question, but is this not 
application-dependent?  So for an internal interface mec0 and ssh, you could,

  $ ssh -B mec0 [email protected]

and for ping,

  $ ping -I mec0 example.com

and so on.

// Cheers; Johan

Reply via email to