OpenVPN-Roadwarrior-Config?

Dirk Alberti <[email protected]>
Newsgroups spline.fli4l.opt
Organization spline
Message-ID <[email protected]>
Hallo Gemeinde,


ich verzweifle seit Umstieg zu Fli4l-4 langsam an der Einrichtung einer 
Konfig für einen (Linux-)Roadwarrior, der von außerhalb per opt_openvpn 
so ins LAN integriert werden soll, als wäre er direkt angeschlossen, 
also quasi Vollzugriff, inklusive surfen durch den Tunnel, Samba und DNS.

Hätte mal bitte jemand eine funktionierende Konfig für mich?



Meine nicht funktionierende Konfig:


tunnel.ovpn auf dem Roadwarrior:


remote <mein_noip_zugang>
rport 10041
secret einwahl.secret
dev tun
ifconfig 192.168.0.2 192.168.0.1
route 192.168.1.0 255.255.255.0
comp-lzo
persist-tun
persist-key
ping-timer-rem
ping-restart 60
proto udp
tun-mtu 1500
fragment 1300
mssfix


openvpn.txt auf dem Fli4l-4.x:


OPENVPN_4_NAME='Tunnel'                 # Name des Clients
OPENVPN_4_LOCAL_PORT='10041'             # Eingehender Port fuer die 
Verbindu
OPENVPN_4_SECRET='einwahl.secret'        # Key-Datei des Clients
OPENVPN_4_TYPE='tunnel'
OPENVPN_4_REMOTE_VPN_IP='192.168.0.2'       # Client-IP-Adresse
OPENVPN_4_LOCAL_VPN_IP='192.168.0.1'        # Server-IP-Adresse
OPENVPN_4_ROUTE_N='1'
OPENVPN_4_ROUTE_1='192.168.1.0/24'
OPENVPN_4_PF_INPUT_N='2'
OPENVPN_4_PF_INPUT_1='ACCEPT'
OPENVPN_4_PF_INPUT_2='if:VPNDEV:any tmpl:dns ACCEPT'
OPENVPN_4_PF_FORWARD_N='1'
OPENVPN_4_PF_FORWARD_1='IP_NET_2 ACCEPT BIDIRECTIONAL'


Ich erhalte bei mkfli4l folgende Fehlermeldung:

Error: OpenVPN: You can't use OPENVPN_4_LOCAL_VPN_IP='192.168.0.1' as
        a local vpn ip since it is routed with
        OPENVPN_4_ROUTE_1='192.168.0.0/24'!
Error: OpenVPN: You can't use OPENVPN_4_REMOTE_VPN_IP='192.168.0.2' as
        a remote vpn ip since it is routed with
        OPENVPN_4_ROUTE_1='192.168.0.0/24'!

Probiert habe ich es auch schon mit OPENVPN_4_ROUTE_1='192.168.0.0/24' , 
mit demselben Ergebnis.

Mein LAN ist 192.168.1.0/24, der Fli4l hat die 192.168.1.1 auf 
eth0/br0/IP_NET_1 und die 192.168.2.2 auf eth1/IP_NET_2 internetseitig 
vom Speedport her.


OPENVPN_1_x  bis OPENVPN_3_x sind Bridges, die seit Fli4l-4 auch nicht 
mehr laufen, die ich aber eh nicht mehr wirklich nutzen will.


Gruß

Dirk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.