Nowadays most tools seem to have an option to specify the local address or local ip to use for a connection.
Surprizingly,
The background: when connecting two machines with
This is very undesireable. It is much nicer to tell the specific programs on the client that they should bind the regular local address. But that works only when the programs support it.
The other, more radical solution might be to always insert a NAT into both ending piers of a tunnel, for rewriting the respective address.
Ideas, improvements, comments, suggestions?
Surprizingly,
git
doesn't (in http mode). So I asked this question here - let's see what comes out of it.The background: when connecting two machines with
openvpn
, for a direct connection between both, the ip routing will select the tunnel address locally because that is the outgoing interface. But this is usually a private 10.x.x.x address - it is not supposed to be used anywhere. So, to make things working, one will likely end up configuring these private addresses everywhere: DNS, firewall, webserver, documentation... This is very undesireable. It is much nicer to tell the specific programs on the client that they should bind the regular local address. But that works only when the programs support it.
The other, more radical solution might be to always insert a NAT into both ending piers of a tunnel, for rewriting the respective address.
Ideas, improvements, comments, suggestions?