[CentOS-es] Openvpn Centos 4.8

Raul Eduardo Arboleda Zapata raularboleda en une.net.co
Mie Jul 27 00:44:35 EDT 2011


Mira esta url yo lña segui he instale una vpn en centos 4.8
http://poptop.sourceforge.net/

Espero te sirva

Mira te dejo otro shell que use para otra instalacion quitas los signos nuemro #
#wget http://poptop.sourceforge.net/yum/stable/packages/dkms-2.0.17.5-1.noarch.rpm
#wget http://poptop.sourceforge.net/yum/stable/packages/kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
#wget http://poptop.sourceforge.net/yum/stable/packages/ppp-2.4.3-7.rhel4.i386.rpm
#wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-1.rhel4.i386.rpm
#rpm -ivh dkms-2.0.17.5-1.noarch.rpm
#rpm -ivh kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm
#rpm -Uvh ppp-2.4.3-7.rhel4.i386.rpm
#rpm -Uvh ppp-2.4.4-3.1.rhel5.i386.rpm
#rpm -ivh pptpd-1.3.4-1.rhel4.i386.rpm
#vi /etc/pptpd.conf
#service pptpd start
service pptpd stop
#vi /etc/ppp/chap-secrets
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -j SNAT –to 999.999.999.999
#service iptables start
echo 1 >/proc/sys/net/ipv4/ip_forward
service pptpd start
##vi /etc/ppp/chap-secrets

Aqui te queda instalado y funcionando
pptd.conf
###############################################################################
# $Id: pptpd.conf,v 1.8 2004/04/28 11:36:07 quozl Exp $
#
# Sample Poptop configuration file /etc/pptpd.conf
#
# Changes are effective when pptpd is restarted.
###############################################################################

# TAG: ppp
#        Path to the pppd program, default '/usr/sbin/pppd' on Linux
#
#ppp /usr/sbin/pppd

# TAG: option
#        Specifies the location of the PPP options file.
#        By default PPP looks in '/etc/ppp/options'
#
option        /etc/ppp/options.pptpd

# TAG: debug
#        Turns on (more) debugging to syslog
#
debug

# TAG: stimeout
#        Specifies timeout (in seconds) on starting ctrl connection
#
# stimeout 10

# TAG: noipparam
#       Suppress the passing of the client's IP address to PPP, which is
#       done by default otherwise.
#
#noipparam

# TAG: logwtmp
#        Use wtmp(5) to record client connections and disconnections.
#
logwtmp

# TAG: bcrelay <if>
#        Turns on broadcast relay to clients from interface <if>
#
#bcrelay eth1

# TAG: localip
# TAG: remoteip
#        Specifies the local and remote IP address ranges.
#
#       Any addresses work as long as the local machine takes care of the
#       routing.  But if you want to use MS-Windows networking, you should
#       use IP addresses out of the LAN address space and use the proxyarp
#       option in the pppd options file, or run bcrelay.
#
#        You can specify single IP addresses seperated by commas or you can
#        specify ranges, or both. For example:
#
#                192.168.0.234,192.168.0.245-249,192.168.0.254
#
#        IMPORTANT RESTRICTIONS:
#
#        1. No spaces are permitted between commas or within addresses.
#
#        2. If you give more IP addresses than MAX_CONNECTIONS, it will
#           start at the beginning of the list and go until it gets
#           MAX_CONNECTIONS IPs. Others will be ignored.
#
#        3. No shortcuts in ranges! ie. 234-8 does not mean 234 to 238,
#           you must type 234-238 if you mean this.
#
#        4. If you give a single localIP, that's ok - all local IPs will
#           be set to the given one. You MUST still give at least one remote
#           IP for each simultaneous client.
#
# (Recommended)
localip        192.168.199.200
remoteip 192.168.199.201-240

ejemplo de chap-secrets

# Secrets for authentication using CHAP
# client        server        secret                        IP addresses
####### redhat-config-network will overwrite this part!!! (begin) ##########
patricia        pptpd   q1w2e3r4                192.168.199.230
raul                        pptpd   q1w2e3r4                192.168.199.231

####### redhat-config-network will overwrite this part!!! (end) ############


Espero te sirva

Saludos

Raúl Eduardo Arboleda Zapata
Ingeniero de Sistemas UNINNCA
Telefonos Celulares 3122889086 - 3006206613
Medellin, antioquia
Colombia, S.A.

----- Mensaje original -----
De: "Andres Genovez" <andresgenovez en gmail.com>
Para: centos-es en centos.org
Enviados: Lunes, 25 de Julio 2011 13:36:12
Asunto: Re: [CentOS-es] Openvpn Centos 4.8

Hola,

puedes primero revisar con

#rpm -qa | grep openvpn


luego desinstalas

#rpm -e [nombre del paquete]

La instalacion es muy sencilla y no hay por donde perderse, solo tienes que
copiar los ejemplos y crear los certificados correctamente.

Puedes pegar lo que nos muestra tu log tambien.


Saludos

El 25 de julio de 2011 12:17, Alexander Rojas Garcia
<sistemas en tehindu.com>escribió:

> Hola,
>
>
>
> Tengo problemas con la instalación del OpenVPN, quisiera saber cómo lo
> desinstalo correctamente, actualmente seguí una guía pero cuando cargo el
> servicio me da error, revise el error en el registro
> “/var/log/openvpn.log”,
> pero no entiendo mucho la causa.
>
>
>
> Espero su ayuda y si algo una buena guía para la instalación.
>
>
>
> Gracias.
>
> Att. Alex
>
> _______________________________________________
> CentOS-es mailing list
> CentOS-es en centos.org
> http://lists.centos.org/mailman/listinfo/centos-es
>



-- 
Atentamente

Andrés Genovez Tobar / Tecnico
Elastix ECE - Linux  LPI-1 - Novell CLA - Apple ACMT
http://www.puntonet.ec
_______________________________________________
CentOS-es mailing list
CentOS-es en centos.org
http://lists.centos.org/mailman/listinfo/centos-es


Más información sobre la lista de distribución CentOS-es