Jochen Demmer wrote:
> I installed openVPN. My plan is to connect two LAN, both using the same
> subnet (192.168.0.0/24).
So you cannot use the routed tunnel, you have to use the bridged
ethernet tunnel as described in
http://openvpn.sourceforge.net/bridge.html
> Both LAN are connected to the I-Net via an ADSL-Router doing Network Adress
> Translation.
As long as you can forward the used port(s) at the serverside from the
ADSL-Router to your OpenVPN Gateway this is no problem.
> Both ISP disconnect/reconnect every 24h and are giving a new IP-Address to
> the Routers.
This is also no problem. You will have to configure the ADSL-Router at
the serverside to register it's new IP-Adress into some DynDNS service.
You use this DynDNS-Adress in the "remote <myserver.dyndns.org>" line of
your client. Of course you will have to make sure that your serverside
is connected to the internet all the time (immediate reconnect after the
disconnection after 24h)
> In my LAN there is the the Linux-Server with OpenVPN. In The other LAN there
> is 'only' a windows (xp)-client which should get in my subnet by connecting
> to my Linux-Server.
>
That is no problem at all. This is the typical roadwarrior/homeoffice
situation. OpenVPN runs fine in this configuration.
A word of advice: since most ADSL-connections use PPPOE and PPPOE
decreases the maximum allow paket size you will have the use
link-mtu 1500
mssfix 1400
fragment 1400
However I never used to TAP-Mode (always the TUN-Mode), so I am not sure
if this is required in your setup. Leave it out and try if your tunnel
works. If "pings" work, but filetransfer or terminalserver-access
doesn't, these lines will probably correct it.
> I should do "Routed IP Tunnel", not "Bridged Ethernet Tunnels", should I?
>
No, the Routed IP-Tunnel will not work if your lokal network and the
remote one are the same. You will have the use the TAP-Mode which is
basically a very long virtual ethernet cable through the internet
between your client and the OpenVPN-Server.
The advantage of the TAP-Device-Mode is, that you can use it to
transport protocols other than IP and that it supports broadcasts (which
is also bad since this means that the broadcasts from your
office-network are transmitted through your VPN but usually this won't
use too much bandwidth).
The faq at
http://openvpn.sourceforge.net/faq.html tells you more on
this subject.
Uli