filmov
tv
Setting VPN - L2TP/IPSec Server Pada Ubiquiti EdgeRouter
Показать описание
Kali ini kita akan menyalakan fitur VPN - L2TP/IPSec pada Ubiquiti EdgeRouter.
Video yang direferensikan:
Berikut text konfigurasi yang dipakai di video.
==MULAI==
configure
set firewall name WAN_LOCAL rule 30 action accept
set firewall name WAN_LOCAL rule 30 description ike
set firewall name WAN_LOCAL rule 30 destination port 500
set firewall name WAN_LOCAL rule 30 log disable
set firewall name WAN_LOCAL rule 30 protocol udp
set firewall name WAN_LOCAL rule 40 action accept
set firewall name WAN_LOCAL rule 40 description esp
set firewall name WAN_LOCAL rule 40 log disable
set firewall name WAN_LOCAL rule 40 protocol esp
set firewall name WAN_LOCAL rule 50 action accept
set firewall name WAN_LOCAL rule 50 description nat-t
set firewall name WAN_LOCAL rule 50 destination port 4500
set firewall name WAN_LOCAL rule 50 log disable
set firewall name WAN_LOCAL rule 50 protocol udp
set firewall name WAN_LOCAL rule 60 action accept
set firewall name WAN_LOCAL rule 60 description l2tp
set firewall name WAN_LOCAL rule 60 destination port 1701
set firewall name WAN_LOCAL rule 60 ipsec match-ipsec
set firewall name WAN_LOCAL rule 60 log disable
set firewall name WAN_LOCAL rule 60 protocol udp
set vpn ipsec ipsec-interfaces interfaces eth0
set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret
set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret SECRET
set vpn l2tp remote-access authentication mode local
set vpn l2tp remote-access authentication local-users username USER password PASSWORD
set vpn l2tp remote-access client-ip-pool start 192.168.1.240
set vpn l2tp remote-access client-ip-pool stop 192.168.1.249
set vpn l2tp remote-access dns-servers server-1 192.168.1.1
--PILIH SALAH SATU
--DHCP:
set vpn l2tp remote-access dhcp-interface eth0
--Static:
set vpn l2tp remote-access outside-address WAN-ADDRESS
--PPPoE:
set vpn l2tp remote-access outside-address 0.0.0.0
commit ; save
==AKHIR==
Video yang direferensikan:
Berikut text konfigurasi yang dipakai di video.
==MULAI==
configure
set firewall name WAN_LOCAL rule 30 action accept
set firewall name WAN_LOCAL rule 30 description ike
set firewall name WAN_LOCAL rule 30 destination port 500
set firewall name WAN_LOCAL rule 30 log disable
set firewall name WAN_LOCAL rule 30 protocol udp
set firewall name WAN_LOCAL rule 40 action accept
set firewall name WAN_LOCAL rule 40 description esp
set firewall name WAN_LOCAL rule 40 log disable
set firewall name WAN_LOCAL rule 40 protocol esp
set firewall name WAN_LOCAL rule 50 action accept
set firewall name WAN_LOCAL rule 50 description nat-t
set firewall name WAN_LOCAL rule 50 destination port 4500
set firewall name WAN_LOCAL rule 50 log disable
set firewall name WAN_LOCAL rule 50 protocol udp
set firewall name WAN_LOCAL rule 60 action accept
set firewall name WAN_LOCAL rule 60 description l2tp
set firewall name WAN_LOCAL rule 60 destination port 1701
set firewall name WAN_LOCAL rule 60 ipsec match-ipsec
set firewall name WAN_LOCAL rule 60 log disable
set firewall name WAN_LOCAL rule 60 protocol udp
set vpn ipsec ipsec-interfaces interfaces eth0
set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret
set vpn l2tp remote-access ipsec-settings authentication pre-shared-secret SECRET
set vpn l2tp remote-access authentication mode local
set vpn l2tp remote-access authentication local-users username USER password PASSWORD
set vpn l2tp remote-access client-ip-pool start 192.168.1.240
set vpn l2tp remote-access client-ip-pool stop 192.168.1.249
set vpn l2tp remote-access dns-servers server-1 192.168.1.1
--PILIH SALAH SATU
--DHCP:
set vpn l2tp remote-access dhcp-interface eth0
--Static:
set vpn l2tp remote-access outside-address WAN-ADDRESS
--PPPoE:
set vpn l2tp remote-access outside-address 0.0.0.0
commit ; save
==AKHIR==