View previous topic :: View next topic |
Author |
Message |
pherseus n00b
Joined: 09 Jun 2005 Posts: 4
|
Posted: Wed Feb 28, 2007 10:30 am Post subject: OpenVPN |
|
|
Muss man OpenVPN irgendwie angeben welche Netzwerkkarte er benutztn soll? Ich hab ja einmal normale Netzwerkkarte eth0 und wlan eth1. Über WLan soll er ja connecten. Wenn beide karten aktive sind, meldet openvpn, dass der hostserver nicht erreichbar ist. Wenn ich eth0 also meine normale netzwerkkarte mit /etc/init.d/net.eth0 stop anhalte, meldet openvpn dass das netzwerk nicht erreichbar ist. Also geh ich mal davon aus, dass openvpn versucht über meine nromale netzwerkkarte die verbindung herzustellen, aber da ist ja kein kabel dran.
Weis jemand ob man das irgendwie umstellen muss in openvpn oder ob man unter gentoo was umstellen muss. Hab im manuel leider nix gefunden. |
|
Back to top |
|
|
dakjo Veteran
Joined: 31 Jan 2004 Posts: 1544
|
Posted: Wed Feb 28, 2007 10:40 am Post subject: |
|
|
openvpn haelt sich, wenn du es nicht anders konfiguriert hast, an die normalen routingregeln. sprich default gateway, resolv.conf etc. |
|
Back to top |
|
|
pherseus n00b
Joined: 09 Jun 2005 Posts: 4
|
Posted: Wed Feb 28, 2007 4:33 pm Post subject: |
|
|
wie kann ich die routing regeln denn umstellen, dass die WLAN Karte benutzt wird? |
|
Back to top |
|
|
bbgermany Veteran
Joined: 21 Feb 2005 Posts: 1844 Location: Oranienburg/Germany
|
Posted: Wed Feb 28, 2007 5:47 pm Post subject: |
|
|
Hallo,
Code: |
route del default && route add default gw <ip-adresse> dev eth1
|
Das löscht die Standardroute und setzt eine neue über ein anderes Interface.
MfG. Stefan _________________ Desktop: Ryzen 5 5600G, 32GB, 2TB, RX7600
Notebook: Dell XPS 13 9370, 16GB, 1TB
Server #1: Ryzen 5 Pro 4650G, 64GB, 16.5TB
Server #2: Ryzen 4800H, 32GB, 22TB |
|
Back to top |
|
|
amne Bodhisattva
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Wed Feb 28, 2007 10:14 pm Post subject: |
|
|
/etc/openvpn/myhomelan/local.conf: |
[zuerst das übliche zeug]
up /etc/openvpn/myhomelan/route.sh
|
/etc/openvpn/myhomelan/route.sh: | #!/bin/bash
route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.8.0.1
|
_________________ Dinosaur week! (Ok, this thread is so last week) |
|
Back to top |
|
|
|