Advertisement
xtree1

microtik_vpn07_final

Mar 21st, 2021
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. # mar/20/2021 22:07:12 by RouterOS 6.48.1
  2. # software id = X5L2-J78L
  3. #
  4. # model = 750GL
  5. # serial number = 467B04284134
  6. /interface bridge
  7. add name=BR1
  8. /interface vlan
  9. add interface=BR1 name=OpnsenseLan vlan-id=100
  10. add interface=BR1 name=OpnsenseWan vlan-id=10
  11. /interface ethernet switch port
  12. set 1 default-vlan-id=0 vlan-mode=secure
  13. set 2 default-vlan-id=100 vlan-mode=secure
  14. set 3 default-vlan-id=100 vlan-mode=secure
  15. set 4 default-vlan-id=200 vlan-mode=secure
  16. /interface wireless security-profiles
  17. set [ find default=yes ] supplicant-identity=MikroTik
  18. /ip pool
  19. add name=dhcp_pool0 ranges=108.20.117.100-108.20.117.110
  20. /ip dhcp-server
  21. add address-pool=dhcp_pool0 disabled=no interface=OpnsenseWan name=dhcp1
  22. /interface bridge port
  23. add bridge=BR1 interface=ether2
  24. add bridge=BR1 interface=ether3
  25. add bridge=BR1 interface=ether4
  26. add bridge=BR1 interface=ether5
  27. /ip neighbor discovery-settings
  28. set discover-interface-list=!dynamic
  29. /interface ethernet switch vlan
  30. add independent-learning=yes ports=ether2,switch1-cpu switch=switch1 vlan-id=\
  31. 10
  32. add independent-learning=yes ports=ether2,ether3,ether4,switch1-cpu switch=\
  33. switch1 vlan-id=100
  34. add independent-learning=yes ports=ether2,ether5,switch1-cpu switch=switch1 \
  35. vlan-id=200
  36. /ip address
  37. add address=108.20.117.1/24 interface=OpnsenseWan network=108.20.117.0
  38. add address=192.168.1.253/24 interface=OpnsenseLan network=192.168.1.0
  39. /ip dhcp-client
  40. add disabled=no interface=ether1
  41. /ip dhcp-server network
  42. add address=108.20.117.0/24 gateway=108.20.117.1
  43. /ip firewall nat
  44. add action=masquerade chain=srcnat
  45. /system clock
  46. set time-zone-name=America/New_York
  47. /system ntp client
  48. set enabled=yes primary-ntp=192.168.200.30
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement