Client to Network - Using the networks DHCP-Server?

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
qupfer
OpenVpn Newbie
Posts: 8
Joined: Sat Feb 05, 2011 9:24 am

Client to Network - Using the networks DHCP-Server?

Post by qupfer » Tue Feb 26, 2013 11:06 am

First, I'm sorry for my english.

In my home-network, I have a normal consumer router+modem+switch device with DHCP, DNS and so on. Additional, I have installed on a computer (debian squeeze) a openvpn-server.
At the moment, I use the tun-device and route my local subnet (192.168.178.0/24).

But I want that my client use the dhcp/dns and become a "LAN-Member" including samba-access, name resolution and other "LAN-Only-Features". (hope you understand what I mean)

What I need in the server/client configurtion for this setup? (of course I know that I must create a bridge device and can't use anymore the tun-mode)

Thank you and again: I hope you understand me. :mrgreen:

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Client to Network - Using the networks DHCP-Server?

Post by maikcat » Tue Feb 26, 2013 11:21 am

yes you need to switch your setup in bridging mode...

check the docs section ,there are bridge based examples there...


Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

brendan
OpenVPN Power User
Posts: 110
Joined: Wed Oct 19, 2011 1:19 am

Re: Client to Network - Using the networks DHCP-Server?

Post by brendan » Tue Feb 26, 2013 6:07 pm

i have repeatedly asked about DHCP and TAP configs, but have found little help. I am not the only one to have issues getting it working, but sadly i still cant get it working. i found the below link, and it hasn't helped me very much. maybe you will fare better than i. http://hans.fugal.net/blog/2009/01/06/p ... its-place/

i constantly get the error:

Code: Select all

MULTI: no dynamic or static remote --ifconfig address is available for ...
it does not matter what combination of server-bridge directives i give.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: Client to Network - Using the networks DHCP-Server?

Post by maikcat » Wed Feb 27, 2013 7:38 am

a very good book with various examples is janjusts openvpn cookbook...

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply