Oke langsung ke tekape aja....
VPN Linux Server |
- Pertama install paket pptp
- Edit file /etc/pptpd.conf kemudian tambahkan baris berikut
- Edit lagi file /etc/ppp/chap-secrets kemudian tambahkan username dan password
- Edit lagi file /etc/ppp/pptpd-options
- Tambahkan baris berikut pada iptables
localip 192.168.1.1
remoteip 192.168.1.2-254
# Secrets for authentication using CHAP
# client server secret IP addresses
anshari * anshari *
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns 202.134.1.10
ms-dns 202.134.0.155
proxyarp
nodefaultroute
lock
nobsdcomp
-A INPUT -i ppp0 -j ACCEPTSekian dari Saya, Anshari Nasrun
-A OUTPUT -o ppp0 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 1723 -j ACCEPT
-A INPUT -p 47 -j ACCEPT
-A OUTPUT -p 47 -j ACCEPT
-A FORWARD -i ppp0 -o eth0 -j ACCEPT
-A FORWARD -i eth0 -o ppp0 -j ACCEPT
-A POSTROUTING -s 192.168.99.1/24 -o ppp0 -j MASQUERADE
Terima kasih.
0 comments:
Post a Comment