Installing PiHole in RouterOSįor the PiHole container to work properly, you must specify several variables. ip/firewall/nat/add chain=srcnat action=masquerade src-address=172.17.0.0/24Īs an example, we will install the docker container of the PiHole ad blocker and unwanted DNS queries. interface/bridge/port add bridge=docker interface=veth1Īnd set up NAT for outgoing traffic. Let’s add the virtual port veth1 to bridge docker.Īll of the actions we did above can be done with these commands in the terminal. Let’s specify the IP address of the interface bridge 172.17.0.1/24 by going to IP – Addresses – add a new address 172.17.0.1/24 and assign it to the docker interface. Let’s name our bridge interface docker by going to the Interfaces section and adding a new interface like Bridge in the Interface tab. It will also be necessary to create a bridge interface in order to connect the container to the network. Specify the interface name, address and gateway.Ĭommand to add an interface via the terminal /interface/veth/add name=veth1 address=172.17.0.2/24 gateway=172.17.0.1 Setting up the network to install a Docker containerįor each container that will be installed in the system we need to create a virtual interface VETH. Perform another reboot.Īfter rebooting you will have a new Container menu item. After downloading the file, restart the virtual machine or router (System – Reboot), the add-on will be installed automatically.Īfter restarting RouterOS, open a new terminal window and run the command that activates the container mode /system/device-mode/update container=yesĪfter executing this command we will need to reboot the router again, we have 5 minutes to do this. Unpack the downloaded archive and download the file named container. The standard set of installed RouterOS add-ons does not include the container add-on and in order to add it, you need to go to the official website of mikrotik and in the software section to download the add-on set Extra packages pre-selecting the architecture where RouterOS is installed.įor RouterOS which is installed on the VPS it is X86. Support for Docker containers appeared in RouterOS 7.5, if your operating system version is lower you need to upgrade to the latest version. Preparing RouterOS to install Docker containers
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |