Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- install pptpd(poptop):
- yum -y install pptpd
- configure the local & remote ip:
- vi /etc/pptpd.conf
- ----------------------------------------
- localip 10.0.0.1
- remoteip 10.0.0.100-200
- ----------------------------------------
- define the users that have access to the vpn:
- vi /etc/ppp/chap-secrets
- ----------------------------------------
- linuxadmin pptpd password!1 *
- ----------------------------------------
- configure dns server, authentication, protocol, and mtu:
- /etc/ppp/options.pptpd
- ----------------------------------------
- ms-dns 8.8.8.8
- ms-dns 8.8.4.4
- ----------------------------------------
- restart service:
- service pptpd restart
- start pptpd at boot:
- chkconfig pptpd on
- add in iptables rules:
- iptables -A INPUT -p gre -j ACCEPT
- iptables -A INPUT -p tcp --dport 1723 -j ACCEPT
- service iptables save
- service iptables restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement