vtun, bridging and dhcp

fabrice.gautier_at_gmail.com
Date: 04/30/05


Date: 29 Apr 2005 17:08:59 -0700

Hi,

I'm trying to setup some kind of linux VPN.
The host network IP is (lets says) 192.168.1.x My goal is too have a
remote client computer connected to a virtual interface with an IP
adress in the 192.168.1.x range. Both client and "VPN server" are
running linux.

Right know it works as long as I use a static IP for the remote client.
Here are the details:

Initially I have "VPN server" (Server) in the host network with
eth0=192.168.1.1.

1/ On Server I configure a bridge br0 with only one port (eth0):
   br0=192.168.1.1, eth0=0.0.0.0
2/ I setup a vtun tunnel, ether type, between Server and Client so I
have two virtual interfaces tap0 on Server and tap1 on Client
(unconfigured yet)
3/ I add tap0 port to br0 and bring it up
  tap0=0.0.0.0
4/ I manually configure tap1 on Client :
  ifconfig tap1 192.168.1.101

This works fine, my Client is now seen as being on the host network,
and I can ping anyways...

Now if I replace 4/ by ifup tap1, with tap1 configure for dhcp, its not
working so well. Apparently I get a DHCP lease from a server on the
host network, but then it stalls and eventually the tunnel will
disconnect and I will even loose my ssh connection to the Client.

Any ideas why DHCP is different ?

Thanks

-- F.G.



Relevant Pages

  • Re: VPN clients unable to connect to other resources.
    ... gateway matches the IP of the remote client, and DNS and WINS point to the ... remote (although it takes close to a minute to connect, ... This is just regular Windows VPN, ... VPN server, remote routing and access running on the SBS 2003 server ...
    (microsoft.public.windows.server.sbs)
  • RE: Problems with connectcomputer and active directory
    ... I understand that you would like to join a remote client to the domain. ... If you have hardware VPN tunnel setup using Linksys or others, ... In this scenario you have to configure the SBS Server computer to enable ... Create a VPN connection to ISA/RRAS on the Internet ...
    (microsoft.public.windows.server.sbs)
  • RE: Remote connectivity problems
    ... do you mean you have added a remote client to SBS ... If you have hardware VPN tunnel setup using Linksys or others, ... In this scenario you have to configure the SBS Server computer to enable ...
    (microsoft.public.windows.server.sbs)
  • Re: VPN clients unable to connect to other resources.
    ... Are you saying that an XP Home PC wouldn't be able to connect to a server share over VPN? ... Can ping the SBS but not the client PCs on the same network. ... gateway matches the IP of the remote client, ...
    (microsoft.public.windows.server.sbs)
  • Re: Secure VPN access
    ... with it's security option for the client. ... After getting the VPN connection I check the Ip settings and found the ... point to the head ISP's DNS server. ... > Computer certificates for L2TP/IPSec VPN connections ...
    (microsoft.public.windows.server.sbs)