MiWiFi mini | Xiaomi Mi-router mini - Firmware | [firmware]
Poll by firmware ...
What firmware are you using?
Openwrt [ 109 ] ** [3,2%]
Pandorabox [ 138 ] ** [4,05%]
Multi web [ 6 ] ** [0,18%]
Padavan (XRMWRT) [ 2042 ] ** [59,99%]
Stock [ 832 ] ** [24,44%]
Custom Stock (ENG) [ 152 ] ** [4,47%]
Other [ 76 ] ** [2,23%]
Please select the most good firmware, there are several:
Openwrt [ 211 ] ** [6,2%]
Pandorabox [ 211 ] ** [6,2%]
Multi web [ 20 ] ** [0,59%]
Padavan (XRMWRT) [ 2076 ] ** [60,99%]
All stock [ 886 ] ** [26,03%]
After flashing to custom, you were satisfied with the firmware?
Yes completely [ 1866 ] ** [54,82%]
Come down, but I had to tinker [ 523 ] ** [15,36%]
I regret having flashed [ 78 ] ** [2,29%]
I did not flash [ 880 ] ** [25,85%]
-
Total votes: 3404
 



Rep: (1300)
MiWiFi mini | Xiaomi Mi-router mini - Firmware
Discussion | Firmware
Official page | MiWiFi | Xiaomi Mi-router | Xiaomi MiWiFi nano | Xiaomi MiWiFi 3 | Xiaomi MiWiFi (client for Android) | Xiaomi club | PROMETHEUS scripting system

Attached Image


FAQ
Firmware comparison
Currently there is3 workersfirmware for our little animal with you:
1. Stock firmware:
Pros:
• Pre-installed and working;
• Has the ability to control through the app on a smartphone.
Minuses:
• Chinese andonly chinesenow English, to get the language, change the wifi region to Europe and upgrade the firmware;
• No support for USB modems;
• There is no normal L2TP support from Beeline (thank God, the Beeline changed its mind and in some regions allowed to connect without a tunnel);
• No IGMP support (IPTV);
• Strongly loads the processor.

2. OpenWRT (PandoraBox)
Pros:
• Flexible and with patience it can be completed by installing additional packages.
Minuses:
• Requires SSH access, and some configuration.

3. XRMWRT (Padavan)
Pros:
• Works great and is easily customizable;
• Excellent speed and stability;
• Everything comes immediately in the kit;
• The presence of skins;
• The standard firmware package includes a lot of programs;
• High security;
• Initially in Russian.
Minuses:
• Does not extend in open access, demands independent assembly;
• Requires access to SSH;
• The system section is read only.
How to get access via SSH and flash the router
How to bind a router to an account with access via L2TP
If your provider provides the Internet through an L2TP connection, you will have to connect a router through the old one, for this, connect them to the LAN-LAN. The router will be available as an access point, you will only need to find its IP address, for this scan the network with an old router or via a PC.
How to upload any file to the device
"Plan A" From any network share, download with the console command:
wget (full link to firmware) -P / tmp

"Plan b" Can use WinSCP (in SCP mode) in order to push the required file into the tmp folder: protocol - SCP, host - 192.168.31.1, port - 22, name - root, password - your password you received along with the SSH file.
How to flash any firmware
1. Determine where to write the firmware with the command:
cat / proc / mtd

2. Remember what the console gives you: it can be "firmware", "OS1" or "Firmware_Stub";
3. Flash the firmware lying along the path /tmp/your_proshivka.bin with the command:
mtd -r write / tmp / (your_program) (section_name)

Where(section_name) - section ("firmware", "OS1" or "FirmwareStub" depending on your device);
(your_proshivka) - the name of the firmware file.

Please note that on the XRMWRT firmware, the command and section will be different:
mtd_write -r write / tmp / (your firmware) Firmware_Stub
Back up partitions
To display sections we write:
cat / proc / mtd

Kernel + RootFS backup is not needed. Firmware_Stub is the sum of the Kernel + RootFS partitions. Ie the firmware image is entirely there, the entry point to RootFS is calculated automatically from the offset in the header image.
If the backup folder was created on the HDD, the approximate path to save will be / media / AiDisk_a1 / backup Note, the path depends on the firmware.
In turn, save:
cp / dev / mtd0 / media / AiDisk_a1 / backup
cp / dev / mtd1 / media / AiDisk_a1 / backup
cp / dev / mtd2 / media / AiDisk_a1 / backup
cp / dev / mtd5 / media / AiDisk_a1 / backup
cp / dev / mtd6 / media / AiDisk_a1 / backup

(alternative way to drain)
After the procedure, it is desirable to transfer everything to the computer, and restore it if necessary (note that the openwrt command will notmtd_write , but mtd ):
mtd_write write /media/AiDisk_a1/backup/mtd0.bin Bootloader
mtd_write write /media/AiDisk_a1/backup/mtd1.bin Config
mtd_write write /media/AiDisk_a1/backup/mtd2.bin Factory
mtd_write write /media/AiDisk_a1/backup/mtd5.bin Storage
mtd_write write /media/AiDisk_a1/backup/mtd6.bin Firmware_Stub
Problem with logging in live Kaspersky
Try changing the subnet from 192.168.31.1 to 192.168.1.1.
No part of settings
Try to connect via SHTTP or not via Wi-Fi and LAN.
The web interface of the stock firmware does not open
One of the domestic antiviruses was noticed on blocking it, well, correctly, I would block Chinese garbage too, it can be treated by deleting it before flashing it.Read more ...
Information unit in binary numbering system GOST 8.417-2002 GSI
bit2(bit) - amount of information 1 (usually used to denote the connection speed and the amount of information transmitted);
byte2,3 - amount of information 1 equal to8bit (usually used to denote the amount of data on the media).

1) The term “amount of information” is used in devices for digital processing and transmission of information, for example in digital computing (computers), to record the amount of storage devices, the amount of memory used by a computer program.
2) In accordance with the international standard IEC 60027-2, the “bit” and “byte” units are used with SI prefixes.
3) Historically, there is such a situation that the name “byte” is incorrect (instead of 1000 = 103accepted 1024 = 210) used (and use) SI prefixes: 1 Kbyte = 1024 bytes, 1 MB = 1024 Kbytes, 1 Gbytes = 1024 Mbytes, etc. At the same time, the designation Kbytes start with a capital letter unlike the lowercase letter “k” to designate a multiplier ten3.

Stock firmware
To switch to English, you need to change the region in the wifi settings and update the firmware. Or download
English firmware
Crack via browser plugin

Where to get:
The latest firmware and applications from the official site
Developer Development Archive(in Chinese resource)
Extreme firmware on 03/03/2018

Archive stock firmware for Xiaomi Mi-router mini (in json format)

Setup:
How to set up for the first timeinstruction frombrain_008
Fine tuningdata fromvamadir
QOS setup
SMB configuration
Tuning the bridge through 5 GHz

Getting ssh:
Instructions for officially obtaining SSH

Unofficial manual way to get ssh
Please note that SSH is obtained not on the router, but on the firmware! If you need to activate and get a password on the SSH stock, then you simply allow it on the custom, and the login and password are usually the same as in the admin area.
Any stock firmware version 2.x.x should come up, but not older than 2.9.x
Checked versions for Xiaomi MiWiFi mini: v2.6.17,v2.1.6, v2.8.91

Modification:
Transmission- download manager

Recovery:
Rollback to X-RM stock firmware
Openwrt
LEDE
Padavan
Attention!When building, installing and configuring, consider the following:
• The Chinese have messed up with gainbecause of what RSSI for WI-FI 5 GHz is incorrectly displayedcured, but the patch is recommended to roll, because the jamb with the gain has not gone away, the patch increases the sensitivity of the reception at the routertyk.

Prometheus script and firmware distribution terms :
You can not distribute ready-made assembly devices for companies other than ASUS;
• You can not use the script to build the firmware with proprietary modules;
• It is strictly forbidden to distribute mods, patches and parts of the code that interfere with the above conditions.


OfficialthemePROMETHEUS script and websitehttp://prometheus.freize.net All questions on the script and the compilation of the firmware is recommended to ask there.
Videoinstructions for creating virtuals and compiling firmware
Firmware helphere
Instructions in pictures

The first steps:
New instruction, without unnecessary problems ( source code update log )
EEPROM Patch or Reference Replacement be sure to put (Yes, true. Yes, you also need it. Yes, you really need it on Padavan. Yes, and you need the latest version. If you install via Prometheus, you don’t need to install a second time.)
If the stars are folded into a brick

For a snack:
Audio setup
Instructions in Russian for setting the firmware
Installing a network printer
Transmission Setup
Ad blocker
Ad blocking filter
Owncloud + nginx + php5-fpm + https cloud (updated 05/12/2016)
WEB interface to Aria2
How to add support for scanners in the firmware
how to add your playlist m3u
Adding TOR support
Bypassing Roskomnadzor locks using TOR

Using OpenVPN to bypass locks
How to configure cron (autostart)
How to configure QoS

Skins:
All skins should be replaced at the compilation stage of the firmware, the Prometheus script supports all skins, the skin change is carried out through the admin panel of the router.
Multiskin not tied to version
Outdated varsii skins


Other:
How to turn a WAN into a LAN
Remote control multifunction device
Video build and firmware
Boot sectors
Attention!Do not know what it is? Do not touch!
Advantages of custom loaders, it is an opportunity to restore the custom firmware immediately, unlike the stock one, which can only be restored to the virgin state. Please note that if you suddenly make a mistake in something when flashing the boot sector, you will get a brick to support the table leg, by the way is very convenient.
U-Boot from xrmwrt (does not work with drain)
U-Boot from the Chinese (heaped up and Chinese)
U-Boot from Pandora Box (Chinese)
U-boot stock

Stitching
Before flashing, be sure to check md5, in case of a broken file, get a brick.
How to load uboot into the router read in the FAQ section. After downloading, check the checksum:
md5sum /tmp/uboot.bin

Be sure to verify the amount issued!
If xrmwrt:
mtd_write write /tmp/uboot.bin Bootloader

If openwrt:
mtd write /tmp/uboot.bin Bootloader

Reboot the router:
reboot

On the drain, the bootloader is closed for writing.

Instructions
Useful
Past polls
Attached Image
Attached Image
Attached Image
Attached Image


There is no curator in the subject. For questions about filling the caps, please contact the section moderators via the COMPLAINT button under the messages.
Activity in the topic


Post has been editedRamsteiner - 10.07.19, 08:56
Reason for editing: curator removal



Rep: (36)
Configure the router.
1. At the start you will see such a screen. Press the blue button
Attached Image

2. On the next screen will be asked to come up with a password that will stand on wi-fi and be required to access the web muzzle. (I forgot to make a screenshot, but everything is clear)
3. Next we will be offered to download the mobile application. Seconds after 10 qr code will disappear.
Attached Image

4. We get to the main settings screen.
Attached Image

5. Click the "Settings" button in the upper left corner. We get to the status page of the router. Here you can see the current version of the software, update it, reset the settings of the router.
Attached Image

6. The first tab on the left is the WI-FI settings. It's all elementary.
Attached Image

6.1 At the very bottom, you can choose the power of the wi-fi transmitter.
Attached Image

7. The next tab is the most interesting: Internet settings. Click the edit button.
Attached Image

8. Now it all depends on your provider.
8.1 If you have auto IP assignment, then choose DHCP.
Attached Image

8.2 If PPPoE, then:
Attached Image

8.3 If you have specific Internet settings, then:
Attached Image

8.4 If you need to set a specific MAC address, then switch the switch so that it becomes blue and drive in which one you need.
Attached Image

9. At the very bottom of the same page, you can configure the router operating mode: marshutizer or repeater. In the opened menu there will be 2 pictures, you will not be mistaken.
Attached Image

10. Access settings, black / white lists.
Attached Image

11. LAN settings.
Attached Image


If you need to add something else, write. In some screens, a double hat, a glitch of a Windows print screen, there is no time to edit. If some moments from those not translated by me are incomprehensible, throw screenshots, we will understand together. Screenshot of the active window in Windows alt + prtscr. The remaining settings did not translate, because if you configure the Internet, you can translate everything through chrome.

Post has been editedbrain_008 - 11.09.14, 11:09



Rep: (717)
Xiaomi Mi-router mini RUS ST Edition
Attached Image


Full, high-quality and firmware-independent translation of all Xiaomi Mi-router mini settings.
At the moment, almost 100% of the interface has been translated. At times, there may be some inaccuracies and shortcomings, of which I ask to inform me in QMS

Pros:
0. The presence of the Russian language
1. Stability. The firmware code does not change
2. Independence from the firmware version.
3. Cross-platform. Suitable for any OS and almost any browser.
4. Ability to self-update. With hands, brains and some rules

Minuses:
0. The presence of the script
1. The need to install an additional browser plugin
2. Additional load on the system. The larger the script, the more it triggers the loading of the browser.

Install script
1. Install the Userscripts program, such as:
For maxthon : Violentmonkey
For firefox : Greasemonkey, Scriptish
For Chrome, Chromium : Tampermonkey
For Opera 15 : Tampermonkey, Violentmonkey
For Opera 12 : already built into the software

2. Go throughreferenceand install the script. Link for automatic installation:tyk.
3. Go to the site settings router (http://192.168.31.1/orhttp://miwifi.com)

Please note that the script does not work immediately, but after about 1 sec. after loading the page / frame)

Screenshots
Attached Image
Attached Image
Attached Image
Attached Image
Attached Image
Attached Image
Attached Image


Post has been editedSilenttwilight - 15.11.14, 19:03
Reason for editing: New complete version of the translation + design



Rep: (441)
General post on Xiaomi Router Mini (X-RM):
Instructions for officially obtaining SSH on Xiaomi Router Mini
Installation instructions for the Pandora Box firmware [r583-20140827]
Russification and installation of additional packages
Rollback to stock firmware

Post has been editedlightvik - 29.12.14, 18:44



Rep: (441)
Instructions for officially obtaining SSH on Xiaomi Router Mini:

We do everything on our ownfear and risk!
Internet is required on the router to link it to the xiaomi account!

1) You need to download the development (developed) firmware version for Xiaomi Router Mini (hereinafter referred to as X-RM).
You can get it at -http://www1.miwifi.com/miwifi_download.html
Screenshot
Attached Image

2) You need to flash the dev version of the firmware via the web-interface of the router, for this:
Go to the address 192.168.31.1 (if we did not change the subnet / ip of the router in the settings, then the address would be such), press the firmware selection button, point it to the .bin file we downloaded in the first paragraph and press the button.
Screenshot
Attached Image
After that, the router will start updating the firmware - it lasts 1-2 minutes, as soon as it ends - you need to go to the web-interface of the router and perform the initial setup.

3) Now we need to bind the Xiaomi account to X-RM, if it is not there, it can be registered athttps://account.xiaomi.com/(there is a button to switch to English at the bottom of the page, or use Google translate), if you register by mail - don’t choose mail.ru and other Russian mail services - a confirmation letter can go 24-72 hours or not come at all, use Gmail!
We also need to install the application on a PC or phone, and from this device you need to bind the router to your Xiaomi account, I think the easiest way to do this is using the android client on the phone / tablet.

4) After you bind the router to your account, you need to go tohttps://d.miwifi.com/rom/ssh, on this page you need to log in to xiaomi account, and after you will see something like this page
Screenshot
Attached Image
Near the desired router (you can link several to one account - as can be seen in the screenshot), press the button, and confirm the selection with the right button. The correct result will be the downloaded file miwifi_ssh.bin

5) you need to find a USB-Flash drive, preferably not a very large volume (1-16GB) - formatted in fat32, it is desirable that it is empty, copy miwifi_ssh.bin to it, then you can proceed to unlock SSH, for this:

Disconnect from the router power cable. USB-Flash disk inserted into the USB connector of the router. We press the reset button on the router with a thin sharp object (a toothpick for example). Connect the power cable. as soon as the router quickly blinks orange LED - release the reset button. USB-Flash disk can be removed after the router is completely turned off.

As soon as the router boots up - you can try to connect via SSH to your router. Username root, Password - on pagehttps://d.miwifi.com/rom/sshnext to root, the connection port is 22 (standard).
The router has SSH available only via LAN. To connect to it via WAN, you need to change the configs / etc / config / dropbear and / etc / config / firewall
If SSH is missing, then you have made a mistake somewhere, most likely either the router is not bound, or after the 're-binding' you need to download a new .bin file.

After you connect via SSH - I recommend changing the user's password using the command:
passwd

After entering it, you will need to enter a new password and confirm it.

Post has been editedlightvik - 19.01.18, 12:04



Rep: (441)
Instructions for installing the firmware Pandora Box [r583-20140827] in the Xiaomi Router Mini [X-RM]

Ssh access required
WAN access required
[The Internet]
We do everything on our ownfear and risk

1) Connect to our router via SSH |according to the standard, its address is 192.168.31.1, port 22
2) Download the file with the firmware in the / tmp router command
wget http://downloads.openwrt.org.cn/PandoraBox/Xiaomi-Mini-R1CM/stable/PandoraBox-ralink-mt7620-xiaomi-mini-squashfs-sysupgrade-r1024-20150608.bin -P / tmp

3) Determine where to write the firmware, with the command
cat / proc / mtd
Remember what the console gives you: it can be "firmware", "OS1" or "FirmwareStub"
4) Flash the firmware lying along the path /tmp/pandora.bin with the command:
mtd -r write /tmp/PandoraBox-ralink-mt7620-xiaomi-mini-squashfs-sysupgrade-r1024-20150608.bin XYZ
where XYZ is what you found out in step three ("firmware", "OS1" or "FirmwareStub" depending on your device). The router will start to flash, the process will be visible in the console, after it automatically reboots and will be available at 192.168.1.1 (maybe after the firmware you will need to clear the browser cache and / or reconnect the lan cable to the PC)

The login username is root, the password is admin

As a result, we get a full-fledged stable openwrt 12.09.1 ​​Attitude Adjustment with an attached working package repository for X-RM, which also includes kernel modules (allow connecting 4G modems, and other peripherals, add support for other file systems, etc ...)

IMPORTANT! I do not know at the moment a 100% safe way to return to the stock firmware! I do not think that it is difficult - but consider

If the Pandora Box is stitched in your router and you want to return the stock firmware, this instruction will help you ->Link

Post has been editedFreize - 13.07.15, 19:51
Reason for editing: Fixed broken links



Rep: (441)
Installing packages in the Pandora Box firmware [r583-20140827]

[Important!] Before installing the packages, we need to run the package update command every time:
opkg update

Installing a native openwrt theme
opkg install luci-theme-openwrt

Russification of the Luci web interface in Pandora Box
wget ftp: //[email protected]: [email protected]/russian.tar.gz -P / tmp
tar -zxvf /tmp/russian.tar.gz -C /
reboot

After the reboot, the Russian language item will appear in the settings.


Post has been editedlightvik - 08.01.15, 20:25



Rep: (441)
Rollback to X-RM stock firmware:

1) Download the stock firmware for X-RM (stable or developer of your choice) - you can download it herehttp://www1.miwifi.com/miwifi_download.html
2) Rename the downloaded * .bin file with the firmware to a file called miwifi.bin
3) We need a 1-16GB USB flash drive formatted in FAT32, with no files inside (empty)
4) Put the file miwifi.bin in the root of the USB flash drive
5) Disconnect the power cable from the X-RM, insert the USB Flash drive into the usb input of the router, hold down the RESET button with a thin sharp object (such as a toothpick), connect the power cord to the router - without pressing the reset button when the router blinks with an orange LED - the RESET button can be let go.
6) After some time, the router will be available at 192.168.31.1 - you can perform the initial setup


Post has been editedlightvik - 15.10.16, 06:33



Rep: (22)
And so, I bought myself this device on NG. Impressions are more good than bad. Well, polazil in the guts. Can someone come in handy

Official Chinese firmware 0.7.31

XiaoMi Router Mini Specs
CPU MT7620A rev.0206 aka MT7620N (H) ver: 2 eco: 6
system type: Ralink SoC
processor: 0
cpu model: MIPS 24Kc V5.0
BogoMIPS: 385.84
wait instruction: yes
microsecond timers: yes
tlb_entries: 32
extra interrupt vector: yes
hardware watchpoint: yes, count: 4, address / irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
ASEs implemented: mips16 dsp
shadow register sets: 1
core: 0
VCED exceptions: not available
VCEI exceptions: not available

Equipment
3: 1852 Ralink eth0
4: 23378 Ralink wl1
5: 57653 Ralink timer
6: 0 Ralink ralink_gpio
12: 6982 Ralink serial
13: 12243 Ralink wl0
17: 3 Ralink Ralink_ESW
18: 5623 Ralink ehci_hcd: usb1, ohci_hcd: usb2

WiFi settings / etc / config / wireless
config wifi-device 'mt7612'
option type 'mt7612'
option vendor 'ralink'
option channel '0'
option bw '0'
option autoch '2'
option radio '1'
option txpwr 'mid'
option hwband '5G'
option hwmode '11ac'
option disabled '0'
option country 'CN'
option region '1'
option aregion '0'

config wifi-iface
option device 'mt7612'
option ifname 'wl0'
option network 'lan'
option mode 'ap'
option ssid 'Xiaomi_5G'
option encryption 'mixed-psk'
option key 'password'

config wifi-device 'mt7620'
option type 'mt7620'
option vendor 'ralink'
option channel '0'
option bw '0'
option autoch '2'
option radio '1'
option txpwr 'mid'
option hwband '2_4G'
option hwmode '11ng'
option disabled '0'
option country 'CN'
option region '1'
option aregion '0'

config wifi-iface
option device 'mt7620'
option ifname 'wl1'
option network 'lan'
option mode 'ap'
option ssid 'Xiaomi'
option encryption 'mixed-psk'
option key 'password'

Network and Internet settings / etc / config / network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'

config interface 'lan'
option ifname 'eth0.1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.31.1'
option netmask '255.255.255.0'

config interface 'diagnose'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.88.8'
option netmask '255.255.255.0'

config interface 'ifb'
option ifname 'ifb0'

config interface 'wan'
option proto 'pppoe'
option mtu '1480'
option special '0'
option username 'login adsl'
option password 'password ads'
option ifname 'eth0.2'

Firewall firewall / etc / config / firewall
config defaults
option syn_flood '0'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'

config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'

config zone
option name 'wan'
option network 'wan'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'

config forwarding
option src 'lan'
option dest 'wan'

config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'

config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'

config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fe80 :: / 10'
option src_port '547'
option dest_ip 'fe80 :: / 10'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'

config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbor-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbors-advertisement'
option limit '1000 / sec'
option family 'ipv6'
option target 'ACCEPT'

config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000 / sec'
option family 'ipv6'
option target 'ACCEPT'

config include 'wanmonitor'
option path '/usr/sbin/wan.monitor start'
option reload '1'
option enabled '1'

config include 'webinitrdr'
option path '/lib/firewall.sysapi.loader webinitrdr'
option reload '1'
option enabled '1'

config include 'dnsmiwifi'
option path '/lib/firewall.sysapi.loader dnsmiwifi'
option reload '1'
option enabled '1'

config include 'portalfilter'
option path '/lib/firewall.sysapi.loader portalfilter'
option reload '1'
option enabled '1'

config include 'macfilter'
option path '/lib/firewall.sysapi.loader macfilter'
option reload '1'
option enabled '1'

config include 'miqos'
option path '/lib/firewall.sysapi.loader miqos'
option reload '1'

config include 'firewalluser'
option path '/etc/firewall.user'
option reload '1'

config include 'dmz_bypass_ctf'
option path '/lib/firewall.sysapi.loader dmz_bypass_ctf'
option reload '1'

config rule 'xunleiwantcpports'
option name 'xunlei wan accept tcp port 1080 4662 2080 2062'
option src 'wan'
option dest_port '1080 4662 2080 2062'
option proto 'tcp'
option target 'ACCEPT'

config rule 'xunleiwanudpports'
option name 'xunlei wan accept udp port 4661 3027 888 666 2037 2061 2048 2066'
option src 'wan'
option dest_port '4661 3027 888 666 2037 2061 2048 2066'
option proto 'udp'
option target 'ACCEPT'

config rule 'shuijingwantcpports'
option name 'shuijing wan accept accept tcp port 4593'
option src 'wan'
option dest_port '4593'
option proto 'tcp'
option target 'ACCEPT'

config rule 'shuijingwanudpports'
option name 'shuijing wan accept udp port 4693'
option src 'wan'
option dest_port '4693'
option proto 'udp'
option target 'ACCEPT'

config rule 'guest_8999'
option name 'Hello wifi 8999'
option src 'guest'
option proto 'tcp'
option dest_port '8999'
option target 'ACCEPT'

config rule 'guest_8300'
option name 'Hello wifi 8300'
option src 'guest'
option proto 'tcp'
option dest_port '8300'
option target 'ACCEPT'

config rule 'guest_7080'
option name 'Hello wifi 7080'
option src 'guest'
option proto 'tcp'
option dest_port '7080'
option target 'ACCEPT'

config include 'miniupnpd'
option type 'script'
option path '/usr/share/miniupnpd/firewall.include'
option family 'IPv4'
option reload '1'

XiaoMi QoS Shaper Traffic / etc / config / miqos
config miqos 'settings'
config miqos 'settings'
option name 'settings'
option qos_ack '0'
option qos_syn '1'
option qos_fin '1'
option qos_rst '1'
option qos_icmp '1'
option qos_small '1'
option upload '2330'
option download '19190'
option enabled '1'
option qos_auto '0'

config limit 'guest'
option name 'guest'

config group '00'
option name '00'
option max_grp_uplink '0'
option max_grp_downlink '0'
option min_grp_uplink '0'
option min_grp_downlink '0'
option mode 'general'
list mac '00'

config mode 'general'
option name 'general'
list subclass 'p1'
list subclass 'p2'
list subclass 'p3'
list subclass 'p4'
list subclass 'p5'

config system 'param'
option name 'param'
option burst '10k'
option interval '10'
option default_mode 'general'
option default_group '00'

config class 'p1'
option ceil '1.0'
option burst '10k'
option tos 'Minimize-Delay'
option rate '0.1'
option name 'p1'
option udp_ports '37, 53,123,3455,27000:27015'
option tcp_ports '37, 53,123,3455 '

config class 'p2'
option ceil '0.98'
option burst '10k'
option tos 'Minimize-Cost'
option rate '0.2'
option name 'p2'
option udp_ports '22, 2222,3389,3478,3479,5060: 5063,3478:4380'
option tcp_ports '22, 2222,3389,3478,3479,5060: 5063 '

config class 'p3'
option ceil '0.99'
option burst '6k'
option tos 'Maximize-Reliability'
option rate '0.5'
option name 'p3'
option tcp_ports '80, 443,8080 '

config class 'p4'
option name 'p4'
option burst '6k'
option ceil '0.98'
option rate '0.1'
option tcp_ports '110,143,220,585,993,995'

config class 'p5'
option name 'p5'
option burst '6k'
option ceil '0.99'
option rate '0.1'

config group 'AA: AA: AA: AA: AA: AA'
option name 'AA: AA: AA: AA: AA: AA'
option mode 'general'
list mac 'AA: AA: AA: AA: AA: AA'
option min_grp_uplink '0.25'
option min_grp_downlink '0.25'
option max_grp_uplink '0.75'
option max_grp_downlink '0.75'

config group 'AV: AV: AV: AV: AV: AV'
option name 'AV: AV: AV: AV: AV: AV'
option mode 'general'
list mac 'AV: AV: AV: AV: AV: AV'
option min_grp_uplink '0.25'
option min_grp_downlink '0.25'
option max_grp_uplink '0.75'
option max_grp_downlink '0.75'


config group 'BB: BB: BB: BB: BB: BB'
option name 'BB: BB: BB: BB: BB: BB'
option mode 'general'
list mac 'BB: BB: BB: BB: BB: BB'
option min_grp_uplink '0.25'
option min_grp_downlink '0.25'
option max_grp_uplink '0.25'
option max_grp_downlink '0.25'


# These are the settings for my 2 PCs. There is a percentage of cutting traffic, at least 25% and 75% of the maximum from the Internet channel.
# This is the setting for my phone. There is a percentage of cutting traffic, at least 25% and 25% of the maximum from the Internet channel.
# My changes via ssh for steam. Ports for games and voice chat. AND MY Speed, which is determined by the router
# Settings can be created as follows, go to the Web interface>qos>manual settings>determine the maximum and minimum speed of devices>waiting for conservation. Connect via ssh and edit / etc / config / miqos more individually.
# Q If QOS is configured via the Interface, then the minimum is setting 优先 级 which is of 3 types (低 - 25%, 中 - 50%, 高 - 75%)
# !!!!! If the QOS is changed via the PC web interface or the TELEPHONE interface !!!! THEN IT WILL LOSS THE SETTINGS you did through ssh


Post has been editedvamadir - 10.01.15, 16:51
Reason for editing: added qos settings



Rep: (22)
QOS setup
Similarly, I did not guess to look. Customized, thanks! For each connected device. And, sort of like, even priorities are set.
Delivered 25/90%. The default was 100/100%.
As far as I understand, there are no restriction settings for outgoing traffic?

a little wrong.
in QOS 3 settings
Setting 优先 级 which is of 3 types (低 - 25%, 中 - 50%, 高 - 75%) - these are the minimum outgoing / incoming traffic that the device can use.
then the maximum outgoing / incoming. here you yourself put a percentage of the channel.

Example. I have a 25% minimum and 75% maximum for all PCs. those.低 / 75/75.
for phones I have 低 / 25/25. those. my phones have 25 minimum outgoing / incoming and maximum outgoing 25 incoming 25.

P.S.
下 - incoming
上 - outgoing

In order for the speed to be cut normally, it is better to use the speed check of the router itself. And not what the provider said.
My provider promised 20M for a jump and 4 for a return. In real life, 18M for a jump and 1.8M for a return. Accordingly, if you do not have a real speed, then there is simply nowhere physically anywhere to take speed.

Post has been edited-SunLion- - 19.01.15, 00:11
Reason for editing: In the header



Rep: (22)
SMB configuration
Something about Shary
When you connect a hard disk (flash drive). The SMB settings and folders for the router are created on the USB device (it is not recommended to delete, it may not earn SMB).

P.S
You can edit the file on USB xiaomi_extSharePath.cfg
in him
SN-11111111111111 = ["/ 共享", "/ 下载"]; You can add or delete these folders for sharing on the network.

Example.
Insert the hard drive, wait for 4 minutes, no less. We look that on a network folders "共享", "下载" are visible. Then we disconnect the device from the USB router to the PC and edit xiaomi_extSharePath.cfg. For example, so SN-11111111111111 = ["/ Video", "/ Music", "/ Anime", "/ Picture"]; . Accordingly, these folders must be created on USB. Disable USB and connect to the router. And we see in 4 minutes approximately our folders in the network

Post has been edited-SunLion- - 19.01.15, 00:19
Reason for editing: In the header



Rep: (22)
Transmission XIAOMI Mini FAQ on transmission

Connecting and checking HDD, here the last line shows that everything was mounted
root @ XiaoQiang: ~ # df -h

Filesystem Size Used Available Use% Mounted on
rootfs 10.5M 10.5M 0 100% /
/ dev / root 10.5M 10.5M 0 100% /
tmpfs 61.4M 2.4M 59.0M 4% / tmp
tmpfs 512.0K 0 512.0K 0% / dev
/ dev / mtdblock7 1.0M 752.0K 272.0K 73% / data
/ dev / mtdblock7 1.0M 752.0K 272.0K 73% / etc
tmpfs 61.4M 2.4M 59.0M 4% / userdisk / sysapiht tpd
/ dev / root 1.0M 752.0K 272.0K 73% / mnt
/ dev / mtdblock7 1.0M 752.0K 272.0K 73% / mnt
/ dev / sda1 931.5G 614.8G 316.7G 66% / extdisks / sda1


Editing repositories to install dependencies. Also added a link to an external hard drive.
root @ XiaoQiang: ~ # vi /etc/opkg.conf

src / gz attitude_adjustment http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/base
dest root / data
dest ram / tmp
lists_dir ext / data / var / opkg-lists
option overlay_root / data
dest usb / extdisks / sda1 / opkg

We update dependences for a rocking chair
root @ XiaoQiang: ~ # opkg update

Create a directory on an external disk
root @ XiaoQiang: ~ # mkdir / extdisks / sda1 / opkg

go to the directory
root @ XiaoQiang: ~ # cd / extdisks / sda1 / opkg

Download the libc library and install it (because of a bug, opkg cannot install it by itself)
root @ XiaoQiang: / extdisks / sda1 / opkg # wget http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620n/packages/base/libc_0.9.33.2-1_ramips_24kec.ipk
root @ XiaoQiang: / extdisks / sda1 / opkg # opkg -d usb install libc_0.9.33.2-1_ramips_24kec.ipk

Install other dependencies
root @ XiaoQiang: ~ # opkg -d usb install libcurl libevent2 libopenssl libpthread librt

Check whether everything is established
root @ XiaoQiang: / extdisks / sda1 / opkg # opkg list-installed

libc - 0.9.33.2-1
libcurl - 7.38.0-1
libevent2 - 2.0.21-1
libgcc - 4.8-linaro-1
libopenssl - 1.0.1j-1
libpolarssl - 1.3.8-2
libpthread - 0.9.33.2-1
librt - 0.9.33.2-1
zlib - 1.2.8-1

If everything is fine, then install the torrent itself rocking. Again we edit repositories
root @ XiaoQiang: / extdisks / sda1 / opkg # vi /etc/opkg.conf

src / gz attitude_adjustment http://downloads.openwrt.org/barrier_breaker/14.07/ramips/mt7620a/packages/packages
dest root / data
dest ram / tmp
lists_dir ext / data / var / opkg-lists
option overlay_root / data
dest usb / extdisks / sda1 / opkg

Update and install
root @ XiaoQiang: / extdisks / sda1 / opkg # opkg update
root @ XiaoQiang: / extdisks / sda1 / opkg # opkg -d usb install transmission-daemon transmission-web

Run the transmission-daemon to create a folder with settings
root @ XiaoQiang: / extdisks / sda1 / opkg # export TRANSMISSION_WEB_HOME = / extdisks / sda1 / opkg / usr / share / transmission / web
root @ XiaoQiang: / extdisks / sda1 / opkg # / extdisks / sda1 / opkg / usr / bin / transmission-daemon -g / extdisks / sda1 / opkg / transmission-daemon

stop transmission
root @ XiaoQiang: / extdisks / sda1 / opkg # killall -HUP transmission-daemon

We configure the transmission, here you just need to change a few lines
root @ XiaoQiang: / extdisks / sda1 / opkg # vi /extdisks/sda1/opkg/transmission-daemon/settings.json

"download-dir": "/ extdisks / sda1 / downloads",
"rpc-port": 9876,
"rpc-whitelist-enabled": false,

Insist firewall, but these lines needadd to the end of the file
root @ XiaoQiang: / extdisks / sda1 / opkg # vi / etc / config / firewall

config rule 'transmission_web'
option src 'wan'
option dest_port '9876'
option proto 'tcp'
option target 'ACCEPT'
option name 'transmission mgmt from wan'

config rule 'transmission_peer_tcp'
option src 'wan'
option dest_port '51413'
option proto 'tcp'
option target 'ACCEPT'
option name 'transmission incoming tcp'

config rule 'transmission_peer_udp'
option src 'wan'
option dest_port '51413'
option proto 'udp'
option target 'ACCEPT'
option name 'transmission incoming udp'

Restart firewall
root @ XiaoQiang: / extdisks / sda1 / opkg # /etc/init.d/firewall restart

create a link and start the rocking chair (you need to enter every time after the reboot)
root @ XiaoQiang: / extdisks / sda1 / opkg # export TRANSMISSION_WEB_HOME = / extdisks / sda1 / opkg / usr / share / transmission / web /
root @ XiaoQiang: / extdisks / sda1 / opkg # / extdisks / sda1 / opkg / usr / bin / transmission-daemon -g / extdisks / sda1 / opkg / transmission-daemon

Well, go to the web-facehttp://192.168.31.1:9876

Mini Editor FAQ vi
to edit clicki
to save clickescthen:thenwq
to cancelescthen : thenq!
Edit / paste will be where the cursor is blinking
The insert works normally only in the editing mode, i.e. after you clickedi
The cursor moves by arrows.


M
Check outForum Rules!
5.3. Implicit or explicit extortion of raising a reputation is forbidden, for example: “I helped you, and you didn’t even say thanks!” Or “You could have raised your reputation!” If you deserve a raise of reputation, you will be raised without reminders.


Post has been edited-SunLion- - 31.01.15, 15:21
Reason for editing: in the header



Rep: (151)
Transmission XIAOMI Mini FAQ on transmission

Is it for pandora or stock?

Post has been editedemlonlife - 26.01.15, 17:03



Rep: (22)
Is it for pandora or stock?

This is a stock, no problems with pandora.

P.S.
For pandora
#vi /etc/opkg.conf
arch all 1
arch noarch 1
arch ralink 10
arch ramips_24kec 20
dest root /
dest ram / tmp
lists_dir ext / var / opkg-lists
option overlay_root / overlay
src / gz pandorabox http://downloads.openwrt.org.cn/PandoraBox/ralink/mt7620/packages

#opkg update
#opkg install install transmission-daemon transmission-web luci-app-transmission


Post has been editedvamadir - 26.01.15, 13:03



Rep: (45)
* vamadir
make plz instruction for those who did not work with linux. For example, I have no idea where to enter it all. Need to get ssh access as I understand it?



Rep: (22)
frey69 @ 01.26.2015, 18:13*
make plz instruction for those who did not work with linux. For example, I have no idea where to enter it all. Need to get ssh access as I understand it?

Yes, you need ssh access. If you don't know, it's better not to touch anything, you can break everything. If you are not afraid then experiment at your own risk :)

Post has been editedvamadir - 26.01.15, 19:37
Reason for editing: Removed unnecessary



Rep: (6)
create a link and start the rocking chair (you need to enter every time after the reboot)
root @ XiaoQiang: / extdisks / sda1 / opkg # export TRANSMISSION_WEB_HOME = / extdisks / sda1 / opkg / usr / share / transmission / web /
root @ XiaoQiang: / extdisks / sda1 / opkg # / extdisks / sda1 / opkg / usr / bin / transmission-daemon -g / extdisks / sda1 / opkg / transmission-daemon


The question is not modest: why can't you add to rc.local?

Post has been editedVbh99 - 26.01.15, 23:20



Rep: (22)
VBH99 @ 01/27/2015, 04:14*
The question is not modest: why can't you add to rc.local?

Added, but for some reason it does not run these lines rc.local. I also tried through the bash script, it also did not work. Apparently my hands are not from that place: (



Rep: (6)
Vamadir @ 01/26/2015, 11:49 PM*
Added, but for some reason it does not run these lines rc.local. I also tried through the bash script, it also did not work. apparently my hands are not from that place

Then you need to run with a timer. rc.local is executed when not everything is loaded yet. In this case, the router will hang after a reboot. This, though unnerving, but not critical.

http: //www.cyberciti.b…-sleep-bash-scripting/

I think 2 seconds will be enough. This, of course, is a dirty hack and so it is impossible to do, but it will come down like that. On good, these lines probably need to be crammed with the init.d script for the transmission-daemon. :)

By the way, you can not add a global variable every time.
root @ XiaoQiang: / extdisks / sda1 / opkg # export TRANSMISSION_WEB_HOME = / extdisks / sda1 / opkg / usr / share / transmission / web /


http: //www.cyberciti.b...va_home-path-variable/

Post has been editedVbh99 - 27.01.15, 02:16



Rep: (18)
Yes, you need ssh access. If you don't know, it's better not to touch anything, you can break everything. If you are not afraid then experiment at your own risk

And for mere mortals, you can do the instructions so that the script can be run and everything is set up itself — the function is necessary, but I have no idea where and how to insert these codes.
Ideally, of course, the firmware with a wired function, I think many were appreciative.



Rep: (22)
Thanks VBH99: thank_you:

Thanks to you, I was able to autoload.

vi / etc / profile

Add to the end of the file
sleep 10
export TRANSMISSION_WEB_HOME = / extdisks / sda1 / opkg / usr / share / transmission / web /
/ extdisks / sda1 / opkg / usr / bin / transmission-daemon -g / extdisks / sda1 / opkg / transmission-daemon

Putting time less I do not advise Since it takes time to determine the hard disk. It is determined long enough. In general, after downloading, the torrent runs for about 2 minutes. What is not critical.


Full version    

Help     rules

Now: 07/27/19 23:14