Live Support My forum, my way! Il forum dei newsgroup: Linux » OpenVPN che non va oltre al server...
My forum, my way! Il forum dei newsgroup
Fast Uncompromising Discussions.Newsgroup FUDforum will get your users talking.

Loading
Utenti      F.A.Q.    Registrati    Login    Home
Home » Computer » Linux » OpenVPN che non va oltre al server...
OpenVPN che non va oltre al server... [messaggio #41006] ven, 05 agosto 2011 16:52 Messaggio successivo
GbMax78  è attualmente disconnesso GbMax78
Messaggi: 1475
Registrato: dicembre 2010
Senior Member
Salve,

ho configurato un server con OpenVPN seguendo questa guida:

http://library.linode.com/networking/openvpn/debian-6-squeez e

Morale della favola riesco a collegarmi in remoto, mi viene assegnato
l'indirizzo 10.8.0.6, riesco ad accedere al server 10.8.0.1 ma non
riesco a navigare la rete a cui il server vpn è connesso in classe
192.168.1.x !

Dove posso metter mano ?

Saluti !
GbMax78
Re: OpenVPN che non va oltre al server... [messaggio #41009 è una risposta a message #41006] sab, 06 agosto 2011 08:40 Messaggio precedenteMessaggio successivo
GbMax78  è attualmente disconnesso GbMax78
Messaggi: 1475
Registrato: dicembre 2010
Senior Member
> Dove posso metter mano ?

Stando al link http://leaf.sourceforge.net/doc/bucu-openvpn.html nella
sezione server trovo:

Annouce the routes to the client to allow it to reach other private
subnets over the openvpn server with the push statement. 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.25.0 255.255.255.0"
push "route 192.168.23.0 255.255.255.0"

E questo riguarda il file server.conf su cui aggiungo le varie sotto
reti poi però non ho capito come attivare i seguenti passaggi:

Add the routes to the subnets to the OpenVPN server:

route 192.168.25.0 255.255.255.0 vpn_gateway
route 192.168.23.0 255.255.255.0 vpn_gateway

Dove devo aggiungere questa route ?

To allow machines in the subnets behind the OpenVPN clients to access
the vpn as well you need to define the client-config-dir an add the
route as well:

client-config-dir ccd
route 192.168.25.0 255.255.255.0
route 192.168.23.0 255.255.255.0

Given your client-names are vpn-client1 and vpn-client2 add a file for
each client with the clients name ("vpnclient1" and "vpn-client2") in
/etc/openvpn/ccd and add a statement like:

iroute 192.168.23.0 255.255.255.0

for the client providing the 192.168.23.0 subnet

and

iroute 192.168.25.0 255.255.255.0

for the client providing the 192.168.25.0 subnet

If you want to have the clients and subnets behind seeing each other,
enable client-to-client.

Backup ovpn20z.lrp.

Saluti !
GbMax78
Re: OpenVPN che non va oltre al server... [messaggio #41011 è una risposta a message #41009] sab, 06 agosto 2011 12:07 Messaggio precedente
GbMax78  è attualmente disconnesso GbMax78
Messaggi: 1475
Registrato: dicembre 2010
Senior Member
On 06/08/2011 08:40, GbMax78 wrote:
>
>> Dove posso metter mano ?

Ho risolto da solo e se a qualcuno dovesse servire indico i vari passaggi:

1) Ho seguito passo passo questa guida
http://library.linode.com/networking/openvpn/debian-6-squeez e
2) Da quest'altra guida
http://www.secure-computing.net/wiki/index.php/OpenVPN/Routi ng ho tratto
giovamento, per il file server.conf, da queste specifiche:

Every machine with a LAN behind it must have IP forwarding enabled. In
this example that means the server, and client1/client2.
The user needed the following in his server.conf:

route 10.10.1.0 255.255.255.0
route 10.10.3.0 255.255.255.0
push "route 10.10.2.0 255.255.255.0"
push "route 10.10.1.0 255.255.255.0"
push "route 10.10.3.0 255.255.255.0"
client-to-client

Ovviamente ho sostituito la route con il range di ip che vengono
assegnati ai client remoti ovvero 10.8.0.0 e il push con il range della
lan ovvero 192.168.1.0

Morale della favola non avevo inserito la route dal server vpn verso gli
ip della lan tant'è che quando avviavo il client openvpn ricevevo nei
log proprio un errore di route che non avevo notato verso la classe di
ip della mia lan !

Che figata openvpn ora bisognerà capire come installarlo su android
quindi sul Galaxy S2 ! :D

Saluti !
GbMax78
Argomento precedente:copiare escludendo alcuni files
Argomento successivo:forzare uso del proxy in Gnome
Vai al forum:
  


Ora corrente: ven apr 19 17:59:43 CEST 2024

Tempo totale richiesto per generare la pagina: 0.01329 secondi
.:: Contatti :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Live Support