Page -> Diferencia entre revisiones de «PPTP-Ubuntu» | Vistas : Página Discusión Ver fuente Historial |
De DIT-CDC
(→Ubuntu 6.10 (Edgy Eft)) |
(→Instalación) |
||
Línea 139: | Línea 139: | ||
chmod +x pon-dit poff-dit | chmod +x pon-dit poff-dit | ||
+ | |||
+ | === Establecimiento/liberación del tunel === | ||
Revisión de 23:50 31 mar 2007
Configuración de túneles PPTP en Ubuntu
Contenido
Ubuntu 6.06 (Dapper Drake)
Instalación
Procedimiento para configurar el acceso PPTP al DIT sobre un Ubuntu 6.06:
- Instalar pptp-linux
apt-get install pptp-linux
- Añadir la fuente de pptpconfig a /etc/apt/sources.list:
- Añadir el repositorio "universe" si no está disponible ya. Para ello, descomentar la línea siguiente en /etc/apt/sources.list:
- actualizar:
- instalar PPTP Client GUI:
echo -e '\n# PPTP GUI\ndeb http://quozl.netrek.org/pptp/pptpconfig ./' >> /etc/apt/sources.list
deb http://es.archive.ubuntu.com/ubuntu/ edgy universe
apt-get update
apt-get install pptpconfig
> pptpconfig
Solapa Server: Name: DIT Server: rpv.dit.upm.es Domain: Username: fulanito Password: clavedefulanito
Solapa Encryption: Seleccionar "Require Microsoft Point-to-Point (MPPE)"
Establecimiento/liberación del tunel
Ubuntu 6.10 (Edgy Eft)
Instalación
Existe un fallo conocido en Ubuntu 6.10 que impide que funcionen correctamente los túneles.
Para solucionarlo hay que:
- Bajarse la una versión anterior de ppp (2.4.3) de aquí
- Instalarla mediante:
dpkg -i ppp_2.4.3-20050321+2ubuntu1.1_i386.deb
A partir de aquí en procedimiento es:
- Instalar pptp-linux
apt-get install pptp-linux
- Añadir la fuente de pptpconfig a /etc/apt/sources.list:
- actualizar:
- instalar PPTP Client GUI:
echo -e '\n# PPTP GUI\ndeb http://quozl.netrek.org/pptp/pptpconfig ./' >> /etc/apt/sources.list
apt-get update
apt-get install pptpconfig
> pptpconfig
Solapa Server: Name: DIT Server: rpv.dit.upm.es Domain: Username: fulanito Password: clavedefulanito
Solapa Encryption: Seleccionar "Require Microsoft Point-to-Point (MPPE)"
- pon-dit:
#!/bin/bash ROUTER=`route -n | grep "^0.0.0.0" | awk '{printf $2}'` echo "ROUTER=$ROUTER" sleep 10 pon DIT echo route add -host 138.4.5.200/32 gw $ROUTER route add -host 138.4.5.200/32 gw $ROUTER sleep 5 echo route add -net 138.4.0.0/16 gw 138.4.5.199 route add -net 138.4.0.0/16 gw 138.4.5.199
#!/bin/bash ROUTER=`route -n | grep "^0.0.0.0" | awk '{printf $2}'` poff DIT route delete -host 138.4.5.200/32 gw $ROUTER #route delete -net 138.4.0.0/16 gw 138.4.5.199
chmod +x pon-dit poff-dit