Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. /interface bridge
  2. add name=bridge-local
  3. /interface ethernet
  4. set [ find default-name=ether1 ] name=ether1-gateway
  5. set [ find default-name=ether2 ] name=ether2-master-local
  6. set [ find default-name=ether3 ] master-port=ether2-master-local name=ether3-slave-local
  7. set [ find default-name=ether4 ] master-port=ether2-master-local name=ether4-slave-local
  8. set [ find default-name=ether5 ] master-port=ether2-master-local name=ether5-slave-local
  9. /interface wireless
  10. set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-ht-above disabled=no distance=indoors l2mtu=2290 mode=ap-bridge ssid=Buca wireless-protocol=802.11
  11. /ip neighbor discovery
  12. set ether1-gateway discover=no
  13. /ip pool
  14. add name=default-dhcp ranges=10.0.22.2-10.0.22.254
  15. /ip dhcp-server
  16. add add-arp=yes address-pool=default-dhcp disabled=no interface=bridge-local name=default
  17. /interface pptp-client
  18. add add-default-route=no allow=pap,chap,mschap1,mschap2 connect-to=185.56.88.234 dial-on-demand=no disabled=no keepalive-timeout=60 max-mru=1400 max-mtu=1400 mrru=disabled name=pptp-out1 password=C4N2pK2Ws7 profile=default-encryption user=Dvev2npHSp
  19. /interface bridge port
  20. add bridge=bridge-local interface=ether2-master-local
  21. add bridge=bridge-local interface=wlan1
  22. /ip address
  23. add address=10.0.22.1/24 interface=bridge-local network=10.0.22.0
  24. /ip dhcp-client
  25. add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=ether1-gateway
  26. /ip dhcp-server network
  27. add address=10.0.22.0/24 dns-server=8.8.8.8 gateway=10.0.22.1 netmask=24
  28. /ip firewall mangle
  29. add action=mark-routing chain=prerouting in-interface=bridge-local new-routing-mark=LAN_CLIENTS
  30. /ip route
  31. add distance=1 gateway=10.0.0.1 routing-mark=LAN_CLIENTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement