mikrotik
This is an old revision of the document!
Table of Contents
MikroTik
LTE
T-Mobile CZ
- Interfaces > Add > PPP Client
- Name: somepppout
- L2 MTU / Max MTU / Max MRU: 1500
- Port: usbX
- Data channel: 0
- Info channel: 1
- APN: internet.t-mobile.cz
- PPP
- Phone: *99#
- Dial command: ATDT
- User: gprs
- Password: gprs
- User peer DNS: Yes
- Add default route: Yes
- Allow: PAP only (CHAP, MSCHAP1, MSCHAP2 unticked)
PPP VPN
- PPP > Profile > Add
- Name: someprofile
- Local address: local IP of the router
- Remote address: pool from which the remote clients will get IP addresses
- DNS server: optional?
- Protocols > Use Encryption: Yes
- PPP > PPTP Server (button)
- Enabled
- Default profile: someprofile
- PPP > Secrets
- Name: someusername
- Password: somepassword
- Service: PPTP
- Profile: someprofile
- In Firewall, allow:
- 1752/TCP
- 47/IP (GRE)
- On LAN interface, allow:
- ARP: proxy-arp
- Note: if bridged, then do this on the bridge instead of LAN interface.
Two separate connections for two separate LANs with one RouterBoard
- Disconnect the bridge between
etherX-*-local(Interface properties - remove theMaster port). - Mark the packets from LAN subnets (e.g.
192.168.10.0/24a192.168.20.0/24):/ip firewall mangle add action=mark-routing chain=prerouting \ new-routing-mark=routing_mark_office src-address=192.168.10.0/24 /ip firewall mangle add action=mark-routing chain=prerouting \ new-routing-mark=routing_mark_guests src-address=192.168.20.0/24 - Set up routing for packets marked with mangle:
/ip route add gateway=ether1-wan1 routing-mark=routing_mark_office /ip route add gateway=ether2-wan2 routing-mark=routing_mark_guests
Note: Gateway can also be a PPPoE connection (in case of DSL).
- Set up masquerade for the second wan interface (assuming that masquerade was set up only for the
ether1-wan1).
IPv6 firewall stub
/ipv6 firewall filter add action=accept comment="Allow ESTABLISHED (FORWARD)" chain=forward connection-state=established disabled=no add action=accept comment="Allow RELATED (FORWARD)" chain=forward connection-state=related disabled=no add action=accept comment="Allow ICMPv6 (FORWARD)" chain=forward disabled=no in-interface=pppoe-out1 protocol=icmpv6 add action=drop comment="Drop everything else (FORWARD)" chain=forward disabled=no in-interface=pppoe-out1 add action=accept comment="Allow ESTABLISHED (INPUT)" chain=input connection-state=established disabled=no add action=accept comment="Allow RELATED (INPUT)" chain=input connection-state=related disabled=no add action=accept comment="Allow ICMPv6 (INPUT)" chain=input disabled=no in-interface=pppoe-out1 protocol=icmpv6 add action=accept comment="Allow DHCPv6 (INPUT)" chain=input disabled=no in-interface=pppoe-out1 protocol=udp port=546 add action=drop comment="Drop everything else (INPUT)" chain=input disabled=no in-interface=pppoe-out1
mikrotik.1530113186.txt.gz · Last modified: (external edit)
