Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2009-02-15 19:04:18
Size: 651
Editor: PieterSmit
Comment:
Revision 4 as of 2009-02-15 19:22:14
Size: 721
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Setup of OpenVpn on multihome box.
 * Problem is Openvpn answers udp packets back using default Gw, and selects different ip than incoming ip.
===Setup of OpenVpn on multihome box.===
Problem is Openvpn answers udp packets back using default Gw, and selects different ip than incoming ip.
Line 8: Line 8:
 2. OpenVpn: Bind to lo:127.0.0.2, use nat to nat incoming on udp:1194 to 127.0.0.2.
    * Kernel bug ? Still selecting wrong source
 3. OpenVpn: Multiple instances each bound to specific ext ip.
 1. OpenVpn: Bind to lo:127.0.0.2, use nat to nat incoming on udp:1194 to 127.0.0.2.
    * X-( Kernel bug ? Still selecting wrong source
 1. OpenVpn: Multiple instances each bound to specific ext ip.
Line 12: Line 12:
    * (!) Setup OpenVpn to add host routes as they activate ?

Linux multihome openvpn

===Setup of OpenVpn on multihome box.=== Problem is Openvpn answers udp packets back using default Gw, and selects different ip than incoming ip.

  1. OpenVpn: Bind to all interfaces.

    • Linux selects int/ip based on routing. Local gen packets select int before mangle can replace fwmark.
  2. OpenVpn: Bind to lo:127.0.0.2, use nat to nat incoming on udp:1194 to 127.0.0.2.

    • X-( Kernel bug ? Still selecting wrong source

  3. OpenVpn: Multiple instances each bound to specific ext ip.

    • WORKS! but need separate subnet for each instance, thus client ip changes when re-connects.
    • (!) Setup OpenVpn to add host routes as they activate ?


linux/multihome/openvpn (last edited 2017-11-03 21:54:26 by PieterSmit)