Difference between revisions of "Mikrotik: VPN PPTP"

From OnnoWiki
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
  /ip pool add name=PPTP-Pool ranges=192.168.99.10-192.168.99.200
+
  # /ip pool add name=PPTP-Pool ranges=192.168.99.10-192.168.99.200
  /ppp profile add change-tcp-mss=yes local-address=PPTP-Pool name=PPTP-Profile only-one=yes remote-address=PPTP-Pool use-encryption=yes dns-server=8.8.8.8,8.8.4.4
+
  # /ppp profile add change-tcp-mss=yes local-address=PPTP-Pool name=PPTP-Profile only-one=yes remote-address=PPTP-Pool use-encryption=yes dns-server=8.8.8.8,8.8.4.4
  /ppp secret add name=user1 password=p@sSword1 profile=PPTP-Profile
+
 
 +
  /ppp profile add change-tcp-mss=yes local-address=dhcp_pool0 name=PPTP-Profile only-one=yes remote-address=dhcp_pool0 use-encryption=yes dns-server=8.8.8.8,8.8.4.4
 
  /interface pptp-server server set authentication=chap,mschap1,mschap2 default-profile=PPTP-Profile enabled=yes
 
  /interface pptp-server server set authentication=chap,mschap1,mschap2 default-profile=PPTP-Profile enabled=yes
 
  /ip firewall filter add chain=input comment="PPTP VPN" dst-port=1723 protocol=tcp
 
  /ip firewall filter add chain=input comment="PPTP VPN" dst-port=1723 protocol=tcp
 
  /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
 
  /ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
 
+
 +
/ppp secret add name=user1 password=p@sSword1 profile=PPTP-Profile
 +
/interface pptp-server add name=pptp-user1 user=user1
 +
 +
/ppp secret add name=onno password=123456 profile=PPTP-Profile
 +
/interface pptp-server add name=pptp-onno user=onno
 +
 +
/ppp secret add name=test password=123456 profile=PPTP-Profile
 +
/interface pptp-server add name=pptp-test user=test
  
 
Cek User connect
 
Cek User connect
Line 11: Line 20:
 
  /interface pptp-server print
 
  /interface pptp-server print
 
   
 
   
Alternatif GAGAL
+
==GAGAL 1==
 
   
 
   
 
  /interface pptp-server server set enabled=yes default-profile=default-encryption
 
  /interface pptp-server server set enabled=yes default-profile=default-encryption
Line 19: Line 28:
 
  add local-address=172.16.0.1 name=default-encryption remote-address=ppp-pool use-encryption=required
 
  add local-address=172.16.0.1 name=default-encryption remote-address=ppp-pool use-encryption=required
 
   
 
   
Alternatif GAGAL
+
==GAGAL 2==
 
   
 
   
 
  /interface pptp-server server set enabled=yes default-profile=default-encryption authentication=chap,mschap1,mschap2,pap keepalive-timeout=30
 
  /interface pptp-server server set enabled=yes default-profile=default-encryption authentication=chap,mschap1,mschap2,pap keepalive-timeout=30

Latest revision as of 14:09, 19 February 2022

# /ip pool add name=PPTP-Pool ranges=192.168.99.10-192.168.99.200
# /ppp profile add change-tcp-mss=yes local-address=PPTP-Pool name=PPTP-Profile only-one=yes remote-address=PPTP-Pool use-encryption=yes dns-server=8.8.8.8,8.8.4.4
/ppp profile add change-tcp-mss=yes local-address=dhcp_pool0 name=PPTP-Profile only-one=yes remote-address=dhcp_pool0 use-encryption=yes dns-server=8.8.8.8,8.8.4.4
/interface pptp-server server set authentication=chap,mschap1,mschap2 default-profile=PPTP-Profile enabled=yes
/ip firewall filter add chain=input comment="PPTP VPN" dst-port=1723 protocol=tcp
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade

/ppp secret add name=user1 password=p@sSword1 profile=PPTP-Profile
/interface pptp-server add name=pptp-user1 user=user1

/ppp secret add name=onno password=123456 profile=PPTP-Profile
/interface pptp-server add name=pptp-onno user=onno

/ppp secret add name=test password=123456 profile=PPTP-Profile
/interface pptp-server add name=pptp-test user=test

Cek User connect

/interface pptp-server print

GAGAL 1

/interface pptp-server server set enabled=yes default-profile=default-encryption
/ip pool
add name=ppp-pool ranges=172.16.0.100-172.16.0.200
/ppp profile
add local-address=172.16.0.1 name=default-encryption remote-address=ppp-pool use-encryption=required

GAGAL 2

/interface pptp-server server set enabled=yes default-profile=default-encryption authentication=chap,mschap1,mschap2,pap keepalive-timeout=30
/ppp profile
add name=contoh-profile remote-address=dhcp_pool0 local-address=dhcp_pool0 use-encryption=required 
/ppp secret
add name=onno password=123456 profile=default-encryption
add name=test password=123456 profile=default-encryption
add name=admin password=123456 profile=default-encryption

Referensi