Advertisement
thevals

mikrotik ipsec config

Dec 2nd, 2023
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. /ip ipsec profile
  2. add dh-group=modp1024 enc-algorithm=aes-256 hash-algorithm=sha256 lifetime=1h \
  3. name=ikev2-profile
  4. /ip ipsec peer
  5. add name="peer1" address=192.168.16.1/32 local-address=10.1.2.1
  6. profile=ikev2-profile exchange-mode=ike2 send-initial-contact=yes
  7. /ip ipsec proposal
  8. add enc-algorithms=aes-128-cbc lifetime=1h name=prop pfs-group=modp1024
  9. /ip ipsec identity
  10. add peer=peer1 auth-method=pre-shared-key secret=sussybaka1337
  11. /ip ipsec policy
  12. add dst-address=192.168.15.0/24 peer=peer1 proposal=prop src-address=\
  13. 10.1.1.0/24 tunnel=yes
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement