Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenVPN
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
pherseus
n00b
n00b


Joined: 09 Jun 2005
Posts: 4

PostPosted: Wed Feb 28, 2007 10:30 am    Post subject: OpenVPN Reply with quote

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
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Wed Feb 28, 2007 10:40 am    Post subject: Reply with quote

openvpn haelt sich, wenn du es nicht anders konfiguriert hast, an die normalen routingregeln. sprich default gateway, resolv.conf etc.
Back to top
View user's profile Send private message
pherseus
n00b
n00b


Joined: 09 Jun 2005
Posts: 4

PostPosted: Wed Feb 28, 2007 4:33 pm    Post subject: Reply with quote

wie kann ich die routing regeln denn umstellen, dass die WLAN Karte benutzt wird?
Back to top
View user's profile Send private message
bbgermany
Veteran
Veteran


Joined: 21 Feb 2005
Posts: 1844
Location: Oranienburg/Germany

PostPosted: Wed Feb 28, 2007 5:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Wed Feb 28, 2007 10:14 pm    Post subject: Reply with quote

/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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum