PDA

Bekijk de volledige versie : Bridged OpenVPN?



FastJack
12-10-2007, 10:00
Hallo zusammen,
wollte achfragen ob jemand shcon erfolgreich Bridged OpenVPN im Betrieb hat? Installation war kein Problem, da hab ich mich an das Sprayfly How-To gehalten. Klappt auch soweit alles, das mit den Ca's etc.



openvpn --mktun --dev tap0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up


Das hab ich hier im Forum gefunden. Damit kann ich ja das tap device anlegen und der existierenden br0 Bridge hinzufügen. Oder muss ich ne komplett neue Bridge z.B: br1 das ethx (wlan für mein Home Netz) und tap da einfügen?

Was ich nicht ganz verstehe muss ich dem Tap device ne bestimte Adresse angeben beim ifconfig tap x.x.x.x. promisc up? Wie unten bei der Beispielconfig z.b die 10.8.0.4?
Und wie müsste ensprechend ne Config für den Server aussehen?
Hab schon einiges durchprobiert aber bisher hat noch nichts wirklich geklappt.
Genauso mit den Push Befehlen, da steig icha uh noch nciht so durch.



# Configure server mode for ethernet bridging.
# You must first use your OS's bridging capability
# to bridge the TAP interface with the ethernet
# NIC interface. Then you must manually set the
# IP/netmask on the bridge interface, here we
# assume 10.8.0.4/255.255.255.0. Finally we
# must set aside an IP range in this subnet
# (start=10.8.0.50 end=10.8.0.100) to allocate
# to connecting clients. Leave this line commented
# out unless you are ethernet bridging.
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100

# Push routes to the client to allow it
# to reach other private subnets behind
# the server. Remember that these
# private subnets will also need
# to know to route the OpenVPN client
# address pool (10.8.0.0/255.255.255.0)
# back to the OpenVPN server.
;push "route 192.168.10.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"


Hoffe da kann mir jemand ein paar Tips geben oder weiterhelfen.

Gruß Tobias

r-win
07-12-2007, 12:03
My German is not that good, but according to Google Translate you're looking for a working bridged mode OpenVPN solution. I have that working here, both from my local network as well as from a remote location.

If you need any assistance in setting this up, please let me know.

Regards,

Erwin

legolas
07-12-2007, 16:10
Hi,

schau mal hier:

http://www.vpnforum.de/wiki/index.php/Hauptseite

Sehr gute Wiki-Seite. Da solltest Du finden was Du suchst. Da gibt es auch sehr gute Anleitungen.

Norbert

thE_29
24-01-2008, 14:26
@r-win: can you please post your solution?
i dont get it running with in bridge mode.

And i got many errors with the bridge_start scripts which are on the help sites (and br0 is also defiened by the router..)