informatica:linux:vpn:pptp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:linux:vpn:pptp [2012/05/10 08:50] – javi | informatica:linux:vpn:pptp [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
- | ===== Instalar y configurar el servidor ===== | ||
- | Server Setup | ||
- | Install the pptp server package: | + | ===== Instalar y configurar el servidor ===== |
+ | |||
+ | 1. Install the pptp server package: | ||
- | | + | |
- | Edit the “/ | + | 2. Edit the "/ |
- | | + | |
Add to it: | Add to it: | ||
- | | + | |
- | remoteip 192.168.1.234-238, | + | remoteip 192.168.1.234-238, |
+ | debug | ||
- | Where the “localip” is the address of the server, and the remoteip are the addresses that will be handed out to the clients, it is up to you to adjust these for your network’s requirements. | + | Where the "localip" |
- | Edit the “/ | + | 3. Edit the "/ |
- | | + | |
Append to the end of the file, the following directives: | Append to the end of the file, the following directives: | ||
- | | + | |
- | nobsdcomp | + | nobsdcomp |
- | noipx | + | noipx |
- | mtu 1490 | + | mtu 1490 |
- | mru 1490 | + | mru 1490 |
- | Where the IP used for the ms-dns directive is the DNS server for the local network your client will be connecting to and, again, it is your responsibility to adjust this to your network’s configuration. | + | Where the IP used for the ms-dns directive is the DNS server for the local network your client will be connecting to and, again, it is your responsibility to adjust this to your network's configuration. |
- | Edit the chap secrets file: | + | 4. Edit the chap secrets file: |
- | | + | |
- | Add to it the authentication credentials for a user’s connection, in the following syntax: | + | Add to it the authentication credentials for a user's connection, in the following syntax: |
- | | + | |
- | Restart the connection’s daemon for the settings to take affect: | + | 5. Restart the connection's daemon for the settings to take affect: |
- | | + | |
- | If you don’t want to grant yourself access to anything beyond the server, then you’re done on the server side. | + | If you don't want to grant yourself access to anything beyond the server, then you're done on the server side. |
Enable Forwarding (optional) | Enable Forwarding (optional) | ||
While this step is optional and could be viewed as a security risk for the extremely paranoid, it is my opinion that not doing it defeats the purpose of even having a VPN connection into your network. | While this step is optional and could be viewed as a security risk for the extremely paranoid, it is my opinion that not doing it defeats the purpose of even having a VPN connection into your network. | ||
- | By enabling forwarding we make the entire network available to us when we connect and not just the VPN server itself. Doing so allows the connecting client to “jump” through the VPN server, to all other devices on the network. | + | By enabling forwarding we make the entire network available to us when we connect and not just the VPN server itself. Doing so allows the connecting client to "jump" |
- | To achieve this we will be flipping the switch on the “forwarding” parameter of the system. | + | To achieve this we will be flipping the switch on the "forwarding" |
- | Edit the “sysctl” file: | + | 6. Edit the "sysctl" |
- | | + | |
- | Find the “net.ipv4.ip_forward” line and change the parameter from 0 (disabled) to 1 (enabled): | + | Find the "net.ipv4.ip_forward" |
- | | + | |
You can either restart the system or issue this command for the setting to take affect: | You can either restart the system or issue this command for the setting to take affect: | ||
- | | + | |
With forwarding enabled, all the server side settings are prepared. | With forwarding enabled, all the server side settings are prepared. | ||
- | We recommend using a “Split Tunnel” connection mode for the VPN client. | + | We recommend using a "Split Tunnel" |
- | A more in depth explanation about the recommended | + | A more in depth explanation about the recommended |
http:// | http:// | ||
Line 89: | Line 90: | ||
Escojo la opcion por defecto ' | Escojo la opcion por defecto ' | ||
+ | |||
Line 95: | Line 97: | ||
Comprobar que el servicio pptpd escucha en el puerto 1723: | Comprobar que el servicio pptpd escucha en el puerto 1723: | ||
- | netstat -nlp | grep 1723 | + | |
tcp 0 0 0.0.0.0: | tcp 0 0 0.0.0.0: | ||
Desde el cortafuegos o el servidor pptpd: | Desde el cortafuegos o el servidor pptpd: | ||
- | tcpdump -i any | grep " | + | |
Aparecen lineas como: | Aparecen lineas como: | ||
Line 118: | Line 120: | ||
16: | 16: | ||
</ | </ | ||
- |
informatica/linux/vpn/pptp.1336639847.txt.gz · Last modified: 2015/04/13 20:19 (external edit)