You get got your Home DSL modem installed, together with desire to get got a secure connectedness to the Internet for your dwelling identify network. For that, y'all get got to install MikroTik router betwixt the DSL modem together with your dwelling identify network:
Follow the steps below to connect your dwelling identify network to xDSL line:
- Make your MikroTik router amongst 2 Ethernet NICs, ane for the Home DSL modem, ane for your dwelling identify network. See instructions inward the Basic Setup Guide!
- When installing, brand certain y'all install the dhcp software package, if your xDSL service provider uses DHCP to manus out IP configuration, together with ppp package, if your service provider uses PPPoE for authentication together with IP configuration.
- Make certain both interfaces are enabled, for example:
/interface enable ether1,ether2
- If your service provider uses DHCP for IP configuration, add together DHCP customer on the external (xDSL) interface to have IP configuration shape your service provider:
/ip dhcp-client add together interface=ether1 disabled=no
- Check, if y'all get got received IP configuration using print detail, for example:
[admin@MikroTik] ip dhcp-client> impress exceptional Flags: X - disabled, I - invalid 0 interface=eth1-adsl add-default-route=yes use-peer-dns=yes use-peer-ntp=yes status=bound address=81.198.55.240/22 gateway=81.198.52.1 dhcp-server=81.198.232.1 primary-dns=80.232.169.11 secondary-dns=195.122.1.59 expires-after=5h5m46s
- If your service provider uses PPPoE for authentication together with IP configuration, add together PPPoE customer to dial out to the service providers PPPoE server together with have IP configuration:
/ interface pppoe-client add together interface=ether1 user="mtrouter@adsl.com" password="bunny" \ add-default-route=yes use-peer-dns=yes disabled=no
- Check if y'all get got received IP configuration:
[admin@MikroTik] interface pppoe-client> monitor pppoe-out1 status: "connected" uptime: 1m17s idle-time: 0s encoding: "MPPE128 stateless" service-name: "home_dsl" ac-name: "Telco_DSL" ac-mac: 00:0C:42:05:03:99 mtu: 1480 mru: 1480
- Add your mortal network address to ether2 interface, for example:
/ip address add together address=192.168.0.1/24 interface=ether2
- Configure masquerading for your local network:
/ip firewall nat add together chain=srcnat src-address=192.168.0.0/24 action=masquerade
- Configure firewall to protect your router:
/ ip firewall filter add together chain=input connection-state=established comment="Accept established connections" add together chain=input connection-state=related comment="Accept related connections" add together chain=input connection-state=invalid action=drop comment="Drop invalid connections" add together chain=input protocol=udp action=accept comment="UDP" disabled=no add together chain=input protocol=icmp limit=50/5s,2 comment="Allow express pings" add together chain=input protocol=icmp action=drop comment="Drop excess pings" add together chain=input in-interface=ether2 src-address=192.168.0.0/24 comment="From our LAN" action=accept add together chain=input action=log log-prefix="DROP INPUT" comment="Log everything else" add together chain=input action=drop comment="Drop everything else"
- (Optional) Run DHCP Setup to configure DHCP server to manus out IP configuration on your dwelling identify network:
/ip dhcp-server setup
- (Optional) Enable local DNS cache to hold upwardly used when resolving DNS requests from dwelling identify computers:
/ip dns laid allow-remote-requests=yesThat's it! You tin access the Internet from your dwelling identify network!