
-
Happy SysAdmin Day!
-
Very fast urgent setup PPTP VPN Server on Debian
Very fast urgent setup PPTP VPN Server on Debian system
12sudo apt–get updatesudo apt–get upgradeAdd to /etc/network/interfaces
12345678# VPNauto eth0:1iface eth0:1 inet staticaddress 192.168.0.1netmask 255.255.255.0post-up /etc/natsudo service networking restartAdd to /etc/resolv.conf
12nameserver 8.8.8.8nameserver 8.8.4.4And add to /etc/nat
1234567#!/bin/shecho 1 > /proc/sys/net/ipv4/ip_forward # Enable forwardingiptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADEsudo chmod +x /etc/natsudo apt-get install pptpdEdit /etc/pptpd.conf
123option /etc/ppp/pptpd-optionslocalip 192.168.0.1remoteip 192.168.0.100-200And edit /etc/ppp/pptpd-options
1234567891011121314authname pptpdrefuse-paprefuse-chaprefuse-mschaprequire-mschap-v2require-mppe-128ms-dns 8.8.8.8ms-dns 8.8.4.4proxyarpnodefaultroutedebuglocknobsdcompAdd accounts to /etc/ppp/chap-secrets
1234# client server secret IP addressesuser pptpd password “*”sudo service pptpd restartThat’s all, folks!
But it’s best to spend more time and configure OpenVPN 😉
Enjoy and stay tuned!
-
Notes about work

At work we use SmartOS and OmniOS, new systems for me. Learned a lot of interesting and decided to start my own blog. Stay tuned!
-
Site regeneration!
