# bikin user level admin
set system login user userbaru full-name "nama lengkap"
set system login user niam authentication plaintext-password 12345678
set system login user niam level admin
#set ip static wan
set interfaces ethernet eth0 address '123.123.123.123/24'
set protocols static route 0.0.0.0/0 next-hop 123.123.123.1 distance '1'
#atau set dhcp client wan
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description 'OUTSIDE'
#enable ssh pada port 22
set service ssh port 22
#hapus user default vyos
del system login user vyos
#nemanbah interface loopback lo dan ip address
set interface loopback lo address 103.103.103.103/32
#routing bgp dengan vultr
set protocols bgp 123456 neighbor 169.254.169.254 ebgp-multihop '2'
set protocols bgp 123456 neighbor 169.254.169.254 remote-as '64515'
set protocols bgp 123456 neighbor 169.254.169.254 update-source '139.180.133.150'
set protocols bgp 123456 address-family ipv4-unicast network '103.103.103.0/24'
set protocols bgp 123456 parameters router-id '139.180.133.150'
set protocols bgp 123456 neighbor 169.254.169.254 password 12345678
#pptp vpn server
set vpn pptp remote-access authentication local-users username test password '123'
set vpn pptp remote-access authentication mode 'local'
set vpn pptp remote-access client-ip-pool start '192.168.168.1'
set vpn pptp remote-access client-ip-pool stop '192.168.168.10'
set vpn pptp remote-access outside-address '139.180.133.150'
# ipip tunnel point-to-point
set interfaces tunnel tun0 encapsulation ipip
set interfaces tunnel tun0 local-ip 139.180.133.150
set interfaces tunnel tun0 remote-ip 103.36.36.36
set interfaces tunnel tun0 address 10.10.10.1/30
# jangan lupa commit untuk apply dan save
commit
save