Browsing all articles from januari, 2019
jan
14

Installera PPTP VPN server

Author admin    Category Program     Tags , ,

Om du vill använda dig av ett Virtuellt Privat Nätverk (VPN) för windows clienter så är PPTP ett utmärkt val. Det är enkelt att sätta upp programmet på servern och du behöver inget speciellt Windows program för att connecta till VPN servern.

Installera programet.

apt-get install pptpd

Configurera sedan vilka ipn som ska anges till clienterna.

nanopico /etc/pptpd.conf

localip 192.168.1.2
remoteip 192.168.1.10-20

Använd dessa inställningar för clienterna som får IP adresserna mellan och även dom två angivna ipadresserna, 192.168.1.10 och 192.168.1.20.

Starta om applicationen

/etc/init.d/pptpd restart

Skapa en användare som har tillåtelse att connecta till servern

nano pico /etc/ppp/chap-secrets

user1 pptpd secretpassword *

OBS: Lösenorden är inte krypterade vilket i detta fall skapar en användare med namnet user1 och lösenordet secretpassword och som kan logga in från vilken adress som helst.

Slå igång IP forward vid start för att tillåta VPN clienterna att ansluta till serverns locala nätverk.

nano /etc/sysctl.conf

net.ipv4.ip_forward=1

Kör även detta kommando för att aktivera IP forwardingen omgående.

echo 1 > /proc/sys/net/ipv4/ip_forward

Skapa en routing regel för att tillåta VPN clienter att köra nätverks traffik genom servern

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

Reggad på Commo.se Pinga Frisim
PRchecker.info
Twingly BlogRank
bloggping
Datorer & Mobilt Datorer bloggar
Creeper
Nätets bästa sajter! MediaCreeper it-bloggar.se
Online: Idag: Vecka: Denna Månad:
  • Partner links

  • Senaste inläggen

    Arkiv

    Kategorier

    Debian
    Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Fwebdruid%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Fphp-hello-world%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Fsbnc-websida%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Finstallera-och-konfigurera-sbnc%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Fvad-ar-raspberry-pi%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179 Warning: file_get_contents(http://urls.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fdebian.targenor.se%2Fvad-ar-debian%2F): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /storage/content/18/1006818/debian.targenor.se/public_html/wp-content/plugins/most-shared-posts/msp-fetch.php on line 179