Hi,
On Fri, 08 Jun 2007 11:31:50 +0100, Chris Davies wrote:
> Oliver Joa <(E-Mail Removed)> wrote:
>> i try to connect 2 LANs over a openvpn-Connection. It looks like this:
>
>> | client a |
>> | LAN a
>> | openvpn a |
>> | Internet
>> | openvpn b |
>> | LAN b
>> | client b |
>
>
>> I can ping from openvpn a to openvpn b and client b.
>> I can ping from openvpn b to openvpn a and client a.
>> But i can not ping from client a to client b.
>
> You need routing information on client a and client b.
>
>> Here is the config of openvpn a:
>> route 10.0.0.0 255.255.255.0
>
> So on client a you need a route to 10.0.0.0/24 via openvpn a
openvpn a is the default-gw for LAN a
openvpn b is the default-gw for LAN b
this should be enough, isn't it?
As i told you, when i ping from client a to client b, the packet arrives
at tun-device at openvpn b, but not at eth-device of openvpn b.
>> Here is config of openvpn b:
>> ifconfig 20.12.0.2 20.12.0.1
>
> Do you really own 20.12.0.[12]? If not, quit using them and use
> 192.168.{whatever} instead
i know this, i used it only temporarily to check that it is not a problem
of routing.
>> route 192.168.10.0 255.255.255.240
>
> On client b you need a route to 192.168.10.0/28 via openvpn b
default-route?
>> When I ping from a client to a other client, i can see in tcpdump on the
>> tun-device of the opposite-openvpn that the packet arrives. it should be
>> sent to eth0 but it does not. What is wrong?
>
> The routing's wrong, or else the IP addresses and/or netmasks for the A
> and B networks are wrong.
the netmasks are ok.
any other idea?
olli
>
> Chris
|