فعلا این رو داشته باشید تا انشاالله سر فرصت ویکی بشه!
***نکته:: آخه یکی بگه ویکی که بلد باشه ](*,)
تست شده و اوکی هستش!
کلاینت و سرور با pptpd و pptp-linux
کانفیک متنی
pptp/pptpd
On server Side::
$ sudo apt-get install pptpd
$ sudo nano /etc/pptpd.conf
Locate and uncomment to followed line
any Definetion for the VirtualNetworkArea in DoneHere
localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245
Close the file and restatrt the deamon
$ sudo /etc/init.d/pptpd restart
add the username and password for remove users
$ sudo su
# echo "<username> pptpd <password> *" >> /etc/ppp/chap-secrets
to Enable Routing Between Networked Remote Clients do 2 Step
1:
$ sudo nano /etc/sysctl.conf
#net.ipv4.ip_forward=1 ==> net.ipv4.ip_forward=1
2:
$ sudo nano /proc/sys/net/ipv4/ip_forward
0 ==> 1
On Client Side::
Windows Clients
Just use a network Wizard to make the Connection
u need the Valid IP address of the server, username and the proper password of that user.
Linux Clients
$ sudo su
# echo "<username> PPTP <password> *" >> /etc/ppp/chap-secrets
Open the file
$ sudo nano /etc/ppp/peers/localvpn
Add to file
pty "pptp 192.168.1.4 --nolaunchpppd"
name <username>
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam localvpn
Connect
$ sudo pon localvpn