This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #| Welcome to RouterOS! | |
| #| 1) Set a strong router password in the System > Users menu | |
| #| 2) Upgrade the software in the System > Packages menu | |
| #| 3) Enable firewall on untrusted networks | |
| #| ----------------------------------------------------------------------------- | |
| #| RouterMode: | |
| #| * WAN port is protected by firewall and enabled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ------------------------------ | |
| // UDP Server | |
| // ------------------------------ | |
| const udp = require('dgram'); | |
| const udpServer = udp.createSocket('udp4'); | |
| udpServer.on('error', (error) => { | |
| console.log('Error: ' + error); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ------------------------------ | |
| // TCP Server | |
| // ------------------------------ | |
| const net = require('net'); | |
| const tcpServer = net.createServer((socket) => { | |
| socket.write('pong'); | |
| socket.pipe(socket); | |
| }); |