# VPN 서버 설치
$ sudo apt install pptpd

# VPN 서버 설정
$ sudo vi /etc/pptpd.conf 

localip 10.0.0.1
remoteip 10.0.0.100-200


# VPN 계정 설정

$ sudo vi /etc/ppp/chap-secrets 

# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
user1 pptpd pass1 *


# VPN DNS 설정

$ sudo vi  /etc/ppp/pptpd-options

ms-dns 8.8.8.8
mtu 1400
mru 1400

default-asyncmap


# VPN 네트워크 설정
$ sudo sysctl -w net.ipv4.ip_forward=1

# pptpd 데몬 재실행
$ sudo /etc/init.d/pptpd restart

# 방화벽 오픈
GRE (tcp 47)
PPTP (tcp 1723)

[참고]

https://hiseon.me/linux/ubuntu/install-vpn-server-on-ubuntu/

+ Recent posts