Descriere:Cum sa instalezi VPN pe FreeBSD
Download:Nu necesita
Autor:Anonim
Sursa (Link-ul oficial): Propria parere:Util
Tutorialul:
Verificati daca colectia de porturi este actualizata.
Instalati poptop din /usr/ports/net/poptop:
Cod: Selectaţi tot
root@bsdpc[/usr/ports/net/poptop] # make install cleanCod: Selectaţi tot
nobsdcomp
proxyarp
pidfile /var/run/pptpd.pid
+chapms-v2
mppe-40
mppe-128
mppe-stateless
Cod: Selectaţi tot
loop:
set timeout 0
set log phase chat connect lcp ipcp command
set device localhost:pptp
set dial
set login
# Server (local) IP address, Range for Clients, and Netmask
set ifaddr 192.168.31.254 192.168.31.120-192.168.31.128 255.255.255.255
set server /tmp/vpn-in-%d “” 0177
loop-in:
set timeout 0
set log phase lcp ipcp command
allow mode direct
pptp:
load loop
disable pap
disable passwdauth
disable ipv6cp
enable proxy
accept dns
enable MSChapV2
enable mppe
disable deflate pred1
deny deflate pred1
set device !/etc/ppp/secureAdaugam fisierul /etc/ppp/secure cu urmatorul continut:
Cod: Selectaţi tot
#!/bin/sh
exec /usr/sbin/ppp -direct loop-inCod: Selectaţi tot
root@bsdpc[~] # chmod 0755 /etc/ppp/secureCod: Selectaţi tot
user1 pass1
user2 pass2Pentru a activa ARP Proxy fara reboot la sistem rulam urmatoarea comanda:
Cod: Selectaţi tot
root@bsdpc[~] # sysctl net.link.ether.inet.proxyall=1Cod: Selectaţi tot
pptpd_enable=”YES”Cod: Selectaţi tot
root@bsdpc[~] # /usr/local/etc/rc.d/pptpd startCod: Selectaţi tot
pass in quick on $ext_if proto tcp from any to any port 1723 keep state
pass in quick on $ext_if proto gre from any to any
Default cand se creeaza o conexiune de tip VPN sistemul de operare Windows acesta modifica tabela de rutare astfel incat toate conexiunile vor trece prin serverul VPN. Pentru a va pastra conexiunea la internet ca in mod normal la proprietatile conexiunii catre serverul VPN trebuie debifata optiunea Use default gateway on remote network
Job Done!
Enjoy!
