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
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