Vpn - Kubuntu

Fermé
Marc - 18 mai 2010 à 16:09
 Ptrck - 20 mai 2010 à 11:21
Bonjour,

Je viens installer Kubuntu, tout fonctionne, sauf que je n'arrive pas à ajouter de connexion vpn :(

Une aide ?

Bien à vous.


A voir également:

1 réponse

Bonjour,

J'ai une connexion VPN qui marche sur ma machine avec Kubuntu 10.04.

1) installer KVPNC qui se charge de la connexion avec le serveur vpn du réseau sur lequel vous désirez vous connecter.

le fichier paramètre de KVPNC

<?xml version="1.0" encoding="UTF-8"?>
<!-- generated by kvpnc at Oct 7 2009 15:31. Do not edit it. -->
<!-- Kvpnc utilise pptp : a installer avec xxx.xxx.xxx.xxx ip du serveur vpn -->
<!-- puis Krdc avec un rdp://xxx.xxx.xxx.xxx ip du poste client -->
<!-- le Kppp servant lui a la gestion du modem -->
<kvpnc>
<version>
<app>0.9.2</app>
<exportversion>1</exportversion>
</version>
<profiles>
<profile name="Its">
<option name="Connection type" type="string">pptp</option>
<option name="VPN Gateway" type="string">xxx.xxx.xxx.xxx</option>
<option name="VPN ID" type="string"></option>
<option name="Username" type="string">valtimani</option>
<option name="Save user password" type="bool">1</option>
<option name="Save PSK" type="bool">0</option>
<option name="Save private key password" type="bool">0</option>
<option name="Private key" type="string"></option>
<option name="Use advanced settings" type="bool">0</option>
<option name="Application version" type="string"></option>
<option name="Local port" type="int">500</option>
<option name="Remote port" type="int">500</option>
<option name="NT domain name" type="string"></option>
<option name="Perfect forward secrety" type="string"></option>
<option name="IKE group" type="string"></option>
<option name="Use application version" type="bool">0</option>
<option name="Use global IPSec secret" type="bool">0</option>
<option name="Use IKE group" type="bool">0</option>
<option name="Use local port" type="bool">0</option>
<option name="Use remote port" type="bool">0</option>
<option name="Use NT domain name" type="bool">0</option>
<option name="Use single DES" type="bool">0</option>
<option name="Use perfect Forward Secrety" type="bool">0</option>
<option name="Remote net address" type="string"></option>
<option name="Remote net mask" type="string">24</option>
<option name="x509 certificate" type="string"></option>
<option name="Ca certificate" type="string"></option>
<option name="Network device" type="string">ppp0</option>
<option name="Cert path" type="string"></option>
<option name="Auth type" type="string">hybrid</option>
<option name="do ping ip" type="bool">0</option>
<option name="Ping host IP" type="string"></option>
<option name="Use special remote ID" type="bool">0</option>
<option name="Use special local ID" type="bool">0</option>
<option name="Special server certificate" type="string"></option>
<option name="Use special server certificate" type="bool">0</option>
<option name="Special remote ID" type="string"></option>
<option name="Special local ID" type="string"></option>
<option name="Local ID type" type="string">asn1dn</option>
<option name="Remote ID type" type="string"></option>
<option name="Use UDP-protocol" type="bool">0</option>
<option name="Use UDP-port" type="bool">0</option>
<option name="local UDP port" type="int">0</option>
<option name="use DNS_UPDATE" type="bool">1</option>
<option name="use DNS-server" type="bool">0</option>
<option name="DNS server" type="string"></option>
<option name="refuse 40 bit encryption" type="bool">0</option>
<option name="refuse 128 bit encryption" type="bool">0</option>
<option name="require stateless encryption" type="bool">0</option>
<option name="require mppe" type="bool">1</option>
<option name="Disable MPPE compression" type="bool">0</option>
<option name="Local virtual IP" type="string"></option>
<option name="Remote virtual IP" type="string"></option>
<option name="Pre shared key file" type="string"></option>
<option name="Execute command before connect" type="string">0</option>
<option name="Execute command after connect" type="string">0</option>
<option name="Execute command before disconnect" type="string">0</option>
<option name="Execute command after disconnect" type="string">0</option>
<option name="Command before connect" type="string"></option>
<option name="Command after connect" type="string"></option>
<option name="Command before disconnect" type="string"></option>
<option name="Command after disconnect" type="string"></option>
<option name="Use no BSD compression" type="bool">1</option>
<option name="Do not use no IP by default" type="bool">0</option>
<option name="Use no deflate" type="bool">1</option>
<option name="Replace default route" type="bool">1</option>
<option name="Use own MTU" type="bool">0</option>
<option name="Use own MRU" type="bool">0</option>
<option name="MTU for pppd" type="int">1500</option>
<option name="MRU for pppd" type="int">1500</option>
<option name="Use virtual IP" type="bool">0</option>
<option name="Virtual IP" type="string"></option>
<option name="PSK is in file" type="bool">0</option>
<option name="Use additional network routes" type="bool">0</option>
<option name="Hash algorithm" type="string">md5</option>
<option name="Encryption algorithm" type="string">3des</option>
<option name="Authentication algorithm" type="string">hmac_md5</option>
<option name="Tunnel device type" type="string">tun</option>
<option name="Use userdefined port" type="bool">0</option>
<option name="Userdefined port" type="int">10000</option>
<option name="NS cert type" type="string"></option>
<option name="Use NS cert type" type="bool">0</option>
<option name="Use connection status check" type="bool">1</option>
<option name="Connection check success count" type="int">4</option>
<option name="Connection check status interval" type="int">0</option>
<option name="Do reconnect after connection lost" type="bool">1</option>
<option name="Disable LZO compression" type="bool">0</option>
<option name="AuthWithUsernameAndPassword" type="bool">0</option>
<option name="AllowEmptyGroupPassword" type="bool">0</option>
<option name="Use userdefinied cipher" type="bool">0</option>
<option name="Userdefinied cipher" type="string"></option>
<option name="Use redirect gateway" type="bool">0</option>
<option name="Use TLS auth" type="bool">0</option>
<option name="TLS auth file" type="string"></option>
<option name="Use HTTP proxy" type="bool">0</option>
<option name="HTTP proxy host" type="string"></option>
<option name="HTTP proxy port" type="int">3128</option>
<option name="HTTP proxy timeout" type="int">99</option>
<option name="Dont save username" type="bool">0</option>
<option name="Use mode config" type="bool">0</option>
<option name="Exchange mode" type="string"></option>
<option name="Use delay at reconnect" type="bool">0</option>
<option name="Reconnect delay" type="int">5</option>
<option name="Use TLS host" type="bool">0</option>
<option name="TLS remote host" type="string"></option>
<option name="Disable opportunistic encryption" type="bool">1</option>
<option name="Right next hop" type="string"></option>
<option name="Left next hop" type="string"></option>
<option name="Use userdefinied packet size for fragmentation" type="bool">0</option>
<option name="Use userdef packet size" type="bool">0</option>
<option name="Fragment" type="int">1300</option>
<option name="PeerTimeout" type="int">60</option>
<option name="Disable CCP" type="bool">0</option>
<option name="Use smartcard" type="bool">0</option>
<option name="Use Xauth interactive" type="bool">0</option>
<option name="Use HTTP Proxy Authentication" type="bool">0</option>
<option name="Use HTTP Proxy Authtype" type="string">basic</option>
<option name="Use HTTP Proxy Auth user" type="string"></option>
<option name="Use HTTP Proxy Auth pass" type="string"></option>
<option name="Use only CA cert and user auth" type="bool">0</option>
<option name="Use mail address as identifier" type="bool">0</option>
<option name="Use right next hop" type="bool">0</option>
<option name="Use left next hop" type="bool">0</option>
<option name="Pkcs11 providers" type="string"></option>
<option name="Pkcs11 slot type" type="string"></option>
<option name="Pkcs11 slot" type="string"></option>
<option name="Pkcs11 id type" type="string"></option>
<option name="Pkcs11 id" type="string"></option>
<option name="Pkcs11 sign mode" type="string"></option>
<option name="Use Pkcs11 providers" type="bool">0</option>
<option name="Allow empty private key password" type="bool">0</option>
<option name="Allow ip address change of peer" type="bool">0</option>
<option name="Auth method" type="string">chap</option>
<option name="Command after connect delay time" type="string">3</option>
<option name="Use search domain in resolv conf" type="bool">0</option>
<option name="Search domain in resolv conf" type="string"></option>
<option name="Authentication direction" type="string">none</option>
<option name="CiscoNatMode" type="string">natt</option>
<option name="IPSec ESP" type="string">3des-md5,3des-sha1,aes128-sha1,aes256-sha1</option>
<option name="IPSec IKE" type="string">aes256-sha1,aes128-sha1,3des-sha1-modp2048,3des-md5,3des-sha1</option>
<option name="Vtun profile" type="string"></option>
<option name="Disable data encryption" type="bool">0</option>
<option name="Use authentication algorithm" type="bool">0</option>
<option name="Fix path mtu discovery problem" type="bool">1</option>
<option name="Use remote network" type="bool">0</option>
<option name="Ipsec vpn mode" type="string">tunnel</option>
<option name="DisableHeaderCompression" type="bool">0</option>
<option name="DisableMagicNumberNegotiation" type="bool">0</option>
<option name="DisableIpx" type="bool">0</option>
<option name="Disable protocol field compression" type="bool">0</option>
<option name="Disable address control compression" type="bool">0</option>
<option name="Use custom ike" type="bool">0</option>
<option name="Use custom esp" type="bool">0</option>
<option name="Verify ca cert" type="bool">1</option>
<option name="Use DPD idle timeout" type="bool">0</option>
<option name="DPD idle timeout" type="int">300</option>
<option name="Hide group password in accountdata dialog" type="bool">0</option>
<option name="MaxConnectTries" type="int">3</option>
<option name="L2tpDaemon" type="int">0</option>
<option name="UseLeftSourceIp" type="bool">0</option>
<option name="UseRightSourceIp" type="bool">0</option>
<option name="LeftSourceIp" type="string"></option>
<option name="RightSourceIp" type="string"></option>
<option name="Use virtual subnets" type="bool">0</option>
<option name="Virtual subnets" type="string"></option>
<option name="DisablePushFromServer" type="bool">0</option>
<option name="DisableBind" type="bool">0</option>
<option name="UseRenegSec" type="bool">0</option>
<option name="RenegSec" type="int">791962980</option>
<option name="UseTunnelPing" type="bool">0</option>
<option name="TunnelPing" type="int">1936748641</option>
<option name="UseTunnelPingRestart" type="bool">0</option>
<option name="TunnelPingRestart" type="int">1886808879</option>
<option name="RequireEap" type="bool">0</option>
<option name="UseSshConfigRemoteScript" type="bool">0</option>
<option name="SshConfigRemoteScript" type="string"></option>
<option name="AskUserPasswordOnEachConnect" type="bool">0</option>
</profile>
</profiles>
</kvpnc>

Lancer KVPNC et faire un import de ce fichier config en xml.
Lancer la connexion
A la connexion avec le serveur vpn donner son identificatrion sur le reseau.


2) lancer krdc et
avec un rdp://xxx.xxx.xxx.xxx ip du poste client sur le reseau


Bonne chance

Patrick
0