From: Christian <chr...@ce...> - 2005-02-21 16:10:51
|
On Monday 21 February 2005 16:49, Vincent Bernat wrote: > Hello ! > > I have a box with two Internet connections and I have an OpenVPN > listening to all interfaces. I have a default route to one of the > connections and I use iproute2 to ensure that what is sent with the > address of the second connection is really sent to the second > connection : > > 200: from 82.67.232.xxx lookup ADSL > > And in table ADSL : > > default via 82.67.232.254 dev eth2 > > Therefore, when I connect through ssh to 82.67.232.xxx, all is working > fine, even if the default route uses another IP. ICMP and UDP are also > working fine (I don't know the magic behind since they are > connection-less). However, with OpenVPN, if I connect to > 82.67.232.xxx, OpenVPN always answers with the other IP and therefore, > the answer is sent via the default interface. > > I use OpenVPN 2.0rc12 (from Debian). Any idea ? Assuming that iproute2 setup is working correctly, try running two openvpn servers and bind each server (local parameter in openvpn server configuration) to the ip address for each internet connection. Actually, when using TCP as openvpn carrier this should not necessary, but when using UDP as carrier I have found that I had to use two openvpn servers (one for each line) bound to the apropriate ip address to get traffic to return out the corresponding line. Christian |