WiFi Commande Archives

WiFi Commande Archives

WiFi Commande Archives

WiFi Commande Archives

Netsh Command Syntax, Contexts, and Formatting

  • 7 minutes to read

Applies to: Windows Server (Semi-Annual Channel), Windows Server 2016

You can use this topic to learn how to enter netsh contexts and subcontexts, understand netsh syntax and command formatting, and how to run netsh commands on local and remote computers.

Netsh is a command-line scripting utility that allows you to display or modify the network configuration of a computer that is currently running. Netsh commands can be run by typing commands at the netsh prompt and they can be used in batch files or scripts. Remote computers and the local computer can be configured by using netsh commands.

Netsh also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer. With netsh, you can save a configuration script in a text file for archival purposes or to help you configure other computers.

Netsh contexts

Netsh interacts with other operating system components by using dynamic-link library (DLL) files.

Each netsh helper DLL provides an extensive set of features called a context, which is a group of commands specific to a networking server role or feature. These contexts extend the functionality of netsh by providing configuration and monitoring support for one or more services, utilities, or protocols. For example, Dhcpmon.dll provides netsh with the context and set of commands necessary to configure and manage DHCP servers.

Obtain a list of contexts

You can obtain a list of netsh contexts by opening either command prompt or Windows PowerShell on a computer running Windows Server 2016 or Windows 10. Type the command netsh and press ENTER. Type /?, and then press ENTER.

Following is example output for these commands on a computer running Windows Server 2016 Datacenter.

Subcontexts

Netsh contexts can contain both commands and additional contexts, called subcontexts. For example, within the Routing context, you can change to the IP and IPv6 subcontexts.

To display a list of commands and subcontexts that you can use within a context, at the netsh prompt, type the context name, and then type either /? or help. For example, to display a list of subcontexts and commands that you can use in the Routing context, at the netsh prompt (that is, netsh>), type one of the following:

routing /?

routing help

To perform tasks in another context without changing from your current context, type the context path of the command you want to use at the netsh prompt. For example, to add an interface named "Local Area Connection" in the IGMP context without first changing to the IGMP context, at the netsh prompt, type:

routing ip igmp add interface "Local Area Connection" startupqueryinterval=21

Running netsh commands

To run a netsh command, you must start netsh from the command prompt by typing netsh and then pressing ENTER. Next, you can change to the context that contains the command you want to use. The contexts that are available depend on the networking components that you have installed. For example, if you type dhcp at the netsh prompt and press ENTER, netsh changes to the DHCP server context. If you do not have DHCP installed, however, the following message appears:

The following command was not found: dhcp.

Formatting Legend

You can use the following formatting legend to interpret and use correct netsh command syntax when you run the command at the netsh prompt or in a batch file or script.

  • Text in Italic is information that you must supply while you type the command. For example, if a command has a parameter named -UserName, you must type the actual user name.
  • Text in Bold is information that you must type exactly as shown while you type the command.
  • Text followed by an ellipsis (...) is a parameter that can be repeated several times in a command line.
  • Text that is between brackets [ ] is an optional item.
  • Text that is between braces { } with choices separated by a pipe provides a set of choices from which you must select only one, such as .
  • Text that is formatted with the Courier font is code or program output.

Running Netsh commands from the command prompt or Windows PowerShell

To start Network Shell and enter netsh at the command prompt or in Windows PowerShell, you can use the following command.

netsh

Netsh is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a currently running computer. Used without parameters, netsh opens the Netsh.exe command prompt (that is, netsh>).

Syntax

netsh[ -aAliasFile] [ -cContext ] [-rRemoteComputer] [ -u [ DomainName\ ] UserName ] [ -pPassword | *] [{NetshCommand | -fScriptFile}]

Parameters

Optional. Specifies that you are returned to the netsh prompt after running AliasFile.

Optional. Specifies the name of the text file that contains one or more netsh commands.

Optional. Specifies that netsh enters the specified netsh context.

Optional. Specifies the netsh context that you want to enter.

Optional. Specifies that you want the command to run on a remote computer.

Important

When you use some netsh commands remotely on another computer with the netsh –r parameter, the Remote Registry service must be running on the remote computer. If it is not running, Windows displays a “Network Path Not Found” error message.

Optional. Specifies the remote computer that you want to configure.

Optional. Specifies that you want to run the netsh command under a user account.

Optional. Specifies the domain where the user account is located. The default is the local domain if DomainName\ is not specified.

Optional. Specifies the user account name.

Optional. Specifies that you want to provide a password for the user account.

Optional. Specifies the password for the user account that you specified with -uUserName.

Optional. Specifies the netsh command that you want to run.

Optional. Exits netsh after running the script that you designate with ScriptFile.

Optional. Specifies the script that you want to run.

Optional. Displays help at the netsh prompt.

Note

If you specify followed by another command, netsh runs the command on the remote computer and then returns to the Cmd.exe command prompt. If you specify without another command, netsh opens in remote mode. The process is similar to using set machine at the Netsh command prompt. When you use , you set the target computer for the current instance of netsh only. After you exit and reenter netsh, the target computer is reset as the local computer. You can run netsh commands on a remote computer by specifying a computer name stored in WINS, a UNC name, an Internet name to be resolved by the DNS server, or an IP address.

Typing parameter string values for netsh commands

Throughout the Netsh command reference there are commands that contain parameters for which a string value is required.

In the case where a string value contains spaces between characters, such as string values that consist of more than one word, it is required that you enclose the string value in quotation marks. For example, for a parameter named interface with a string value of Wireless Network Connection, use quotation marks around the string value:

Источник: [https://torrent-igruha.org/3551-portal.html]
, WiFi Commande Archives

Total Commander Plugins

Plugins are extensions of Total Commander with additional functions. Please note that most of these plugins are written by third parties, see the column "Author home".

Packer extensions (plugins)

Name/Ver.LinkDescriptionAuthor (home)
7zip
0.7.6.5a
2011/10/24
7Zip standalone packer/unpacker plugin. No requirement to install 7-zip at all! Source available.dllee
AmigaDX
3.6
2012/06/03
With this plugin you can extract/view ADF, DMS, ADZ, HDF, HDZ, DMP file types for Amiga Emulators (WinUAE, U*AE). You can also create/modify ADF files. If you are an old Amiga user who have installed WinUAE or other Amiga emulator then this plugin is for you. Source available.Peter Bakota
AVI
1.5
2011/09/30
Create AVI video files (from BMPs), open AVI files with Ctrl+PgDn and extract frames/the sound with F3! Max. 2 GB AVI supported. Source available.Sascha Hlusiak
BZIP2
1.6
2014/09/24
Very good compression, but only one file per archive (as with GZip). The update v1.1 is based on the bz2 1.0.5 library, which fixes various security issues.
v1.6 fixes memory leak in unpack function. Source available.
myself
Catalog
4.1.0
2020/04/26
Create catalogs (lists) of the selected files/directories, with user-defined list format. Now with Unicode support!
Note:
Since version 4.x catalog maker plugin does not support Windows XP and older. Please use the previous version of plugin.
Source available.
Konstantin Polyakov
Checksum
0.2b
Provides MD5 and SHA1 checksum generator/checker from within TC packer interface. It is able to generate ".md5" and ".sha" list files acceptable by GNU respectively md5sum and sha1sum utilities. There is also 'virtual' browser for these list files. Source available.Stanislaw Pusep
DBX
1.2
Plugin to open Outlook Express 5/6 mail files. Also available: A configuration tool to change parameters like maximum message title length.Dmitri R.Letichevski
DEB
1.0
2012/05/15
Unpack Debian Linux .DEB packages. The 64-bit version is an unofficial port by user 'flint'. Source available.Alexandre Maximov
Dircbm
(site)
Plugin to extract/view/create CBM disk images (Commodore 64 disk images). Former D64 plugin.
New:
1.1: 64-bit version
0.7: The plugin can now also create disk images! Source available.
Loo
Disk Explorer Professional
(site)
This plug-in allows you to view the contents of Disk Explorer Professional Database files. Disk Explorer Professional is a powerful tool for catalogizing CDs, DVDs, floppies, ZIP disks, or other removable media, hard drives, network drives, or even FTP servers.Tomas Jelinek
Diskdir
1.3
2012/03/25
Creates a list file with all selected files and directories, including subdirs (e.g. as an index for CD-ROMs). It is called like a packer (Files->Pack)! Source available.myself
DiskDir Extended
1.67
2012/03/23
The same as DiskDir, but also lists contents of archive files ARJ, ACE, CAB, JAR, RAR, ZIP, TAR, TGZ (TAR.GZ), TBZ (TAR.BZ, TBZ2, TAR.BZ2). Format is fully compatible with DiskDir, i.e. this plugin works with DiskDir files, as well as DiskDir works with this plugin's files.
Please install this update for TC 7.55!
Peter Trebaticky
GIF
1.3
2011/09/30
Can unpack frames from animated GIFs, and also create them. ENTER still shows the GIFs, press Ctrl+PageDown to see a list of all the frames. Source available.Sascha Hlusiak
GRP
1.02
Extract/create support for GRP (Duke Nukem 3D and other Build engine-based games group file) file format. First (and only) plugin written in Assembler! Source available.Stanislaw Pusep
HA
(site)
Packer: Good compression, relatively slow. Source available.Sergey Zharsky
ICL
1.4.1.1
2009/08/21
Open and change icon ICL library files.ProgMan13
IMG(1)
0.9
Open floppy disk image files (1.44 MB). Only supports short (DOS) names. Source available.IvGzury
IMG(2)
1.6
Advanced floppy image (diskimage, rawread etc.) plugin: create IMG (different sizes, use "Configure" button to choose), extract, add and delete files. Long filename support. More advanced than IMG(1), but without source code.Andreas Ziemer
ISO
1.7.9
2013/08/27
Reads CD-ROM image files! Also supports:
- BIN/CUE images
- IMG (CloneCD) images
- NRG (Nero) images
- Large (>4GB) images (that is, DVD images with ISO Bridge format)
Source available.
Sergey Oblomov
Kryptel
(site)
For the encryption program Kryptel.Kryptel
lzma
2.1
2012/06/18
Pack and unpack files in .lzma format, mostly used on Linux/Unix to pack .TAR files, or .CPIO within RPM. Based on the older lzma 1.0 format. Use .xz plugin for the newer lzma2 format. Source available.myself
LZOP
1.0
Plugin to extract files created with LZOP packer."Netolish"
LZX
2.2
2012/07/13
Unpacks the popular Amiga pack format LZX. It handles file date/time (with Y2K workarounds), file attributes, filenotes (saved to descript.ion) and some more. Everything can be customized. Source available.Michael Ofner
Sebastian Erbert
MakeBAT
1.5
2015/08/13
Write-only plugin to create batch files (*.bat) with all the selected files, e.g. for repetitive tasks. May also be used to create mp3 playlists. Source included!
1.4: Increased template length to 1023 characters.
1.5: Fixed problem with 64-bit version (not saving old batch strings correctly).
myself
MSI
1.2.1
2010/04/21
Opens Microsoft Installer files.Alex Gretha
Multi-Arc
(site)
Calls external programs like JAR, AIN, IMP, 777 and many more - user-configurable!Sergey Zharsky
PACK
1.1
Packing/unpacking of Quake levels. Source available."DarkOne"
PPMd
1.0
Similar packer as GZIP and BZ2.Andreas Muegge
Progress PL
1.70
2016/07/06
This plugin can list, view or extract files stored in PROGRESS PL archives (procedure libraries). Replacement for PROLIB utility. This plugin is NOT for perl PL files!
New: Support for V11 libraries.
Progress Tools
RPM+CPIO
1.7
2013/09/06
Read Linux installation files!
New in 1.5: Detect RPM files packed with BZip2. Requires Bzip2 plugin to unpack. The 64-bit version is an unofficial port by 'flint'.
New in 1.7: When USTAR payload is used, display TAR archive instead of CPIO inside the RPM. Source available.
Mandryka Yurij, Konstantin Vlasov aka Flint
SFF
1.2
Opens SFF Fax files as BMP in Total Commander. Source available.Amenna Heratsini
SIS
1.0
Opens SIS installation files (Psion, EPOC5 and new also EPOC6). Developed mainly for using with Nokia EPOC5 and EPOC6 packages, but can be used with other types.Patrik Daranský
Total7zip
(site)
2012/11/20
This plugin can create, update and delete files from 7z. Supports sfx and encryption. Can read many other formats besides 7z: XZ, BZIP2, GZIP, TAR, ZIP, WIM ARJ, CAB, CHM, CPIO, DEB, DMG ...
Uses 7z.dll, supports Unicode file names, can open files by content, search text in archives.
Use the standalone 7zip plugin above in 64-bit.
Total7zip team
TotalISO
1.0.0.15
2011/04/26
Total ISO maker (TotalISO) is a packer/unpacker plugin for creating ISO image files. TotalISO is a front end for mkisofs.exe and cdimage.exe, which need to be downloaded separately (see download link in the readme of the plugin).taohe
TreeCopyPlus
1.051
2011/09/26
It's intended for copying/moving files while keeping the full folder tree. The main differences from TreeCopy:
- Support standard, Branch View, search results modes
- Presence of an option "Number of upper levels to exclude"
- Possibility Overwrite/Skip all
Alexander Golikov
aka SUKER
xz
1.1
2018/10/05
Pack+Unpack files in .xz format, mostly used on Linux/Unix to pack .TAR files, or .CPIO within RPM. Very good compression based on the lzma2 format (7zip). Source available.myself
Z
1.0
2010/05/14
Z packer plugin (Unix archive format). The 64-bit version is an unofficial port by 'Christian Ghisler'.Unusual Works
WCX Plugin Guide
2.21se
2019/01/03
HTML Help description of the plugin interface - write your own plugin! If you want to write a plugin of general interest, and want to offer it through this page, please contact us first so there are no duplicates!
New (2.21se): 64-bit support.
New (2.21): Backround operations (TC7.55)!
New (2.20): Optional Unicode support for Total Commander 7.5!
myself

How to install and use a packer plugin:
1. Unzip the downloaded archive to any directory
2. In Total Commander, choose Configuration - Options
3. Open the 'Packer' page
4. Click 'Configure packer extension WCXs'
5. Type an extension suitable for the plugin, e.g. "lst" for diskdir
6. Click 'New type', and select the .wcx file
7. Click OK in all open dialog boxes.
You can now use the plugin via Files - Pack (or by opening archives of this type).

File system extensions (plugins)

Name/Ver.LinkDescriptionAuthor (home)
ADO Data Sources
1.6
2006/03/14
The plugin gives you access to the objects of server-based and local databases that can be connected using Microsoft ADO technology: OLE DB providers and ODBC drivers. Some special plugin features are available for MS SQL Server.
Note: The link on the left does not include the crypto DLL crsqlwfx.dll, for legal reasons.
OlegY
Back2Life
2.7
2013/05/15
Undelete erased files from FAT and now also NTFS volumes. Also shows degree of damage and cluster map (Alt+Enter). There is also an excellent standalone version available at the author's site. Shareware (US$10). No more size limit in the test version!Alex Mokrov
CanonCam
1.5
Plugin to download/delete files (JPG, CRW, WAV, AVI) from Canon Digital Cameras. Most PowerShot, IXUS and EOS digital cameras supported!
Note: You also need the file SDKlibs.rar (579k) on the first download of this plugin, or if you use plugin version 1.4 or earlier.
Vladislav Sagunov
CDDatabase
(site)
CDDataBase is a plugin, designed to organize and maintain a catalog of your disk collection, including CD-ROMs, harddrives, MP3s, removable disks... for quick searching and navigation. Shareware.Crown_s Soft
Cloud
2.2
2020/02/09
Access the following cloud services without the need of installing their client software:
- Box
- Dropbox
- Google Drive
- Microsoft OneDrive (business+private)
- Microsoft Azure Datalake Store
- Yandex drive
What's new:
2.20: Google Drive: Downloads no longer worked because of an invalid parameter
2.10: Access shared drives on Google Drive
2.00: Option to login with external browser installed on PC
myself
ComplexCD (CD/DVD burner)
(site)
Complex CD/DVD Burner is a light, fast, and easy-to-use CD/DVD burning plugin for Total Commander. It can burn a data disc in the following formats: CD-R, CD-RW, ISO files, DVD+R/W, DVD+R, DVD-R, DVD-R/W, and DVD-RAM disk.
Shareware – 14.95 US (Pro) or $9.95 (Lite)
Complex New Technologies
Device Manager
1.4
Improved Windows device manager for Windows 2000/XP/2003Alexey Ryabinin
DiskInternals Reader
(site)
2019/03/04
This plugin offers access to harddisk partitions and disk images.
Native reader for:
Ext2/3/4, ReiserFS, Reiser4, HFS/HFS+, NTFS, ReFS, Fat/exFAT, UFS2
Native support for:
- Windows and Linux software raid arrays
- DDF, MegaRaid, Adaptec, nVidia, Intel, Via, Silicon raid arrays
- MBR, GPT, Apple and BSD partitions
- VMWare, VirtualPC, VirtualBox and Parallels disk images
100% symbolic links support for Linux, Mac and Ntfs. First ever Linux and Mac Reader that can display correct size for link that point to file.
Alex Babenko
Events NT
1.3
Plugin to view system events on Windows NT/2000/XP. Does NOT work with Win9x/ME!Sergey Kostyuk
Ext2+ Reiser
1.6
2010/06/29
Plugin to open Ext2 and Reiser file systems on your own machine! This is useful when you have Linux installed on the same machine (multi-boot) and want to access your files. For security reasons, this plugin is read-only. It combines two open source projects to access Ext2 partitions and Reiser partitions. This plugin is Open-Source (GPL).
Version 1.4 adds UTF-8 support, see readme.txt.
Version 1.5 can read EXT2/EXT3 partitions with 256 byte inode size
Version 1.6 supports Unicode file names in TC 7.5x
Ext2 code author: John Newbigin
Reiser code author: Gerson Kurz
Source available.
unknown
Ext4
(site)
Plugin to open Ext2, Ext3 and Ext4 partitions.Krzysztof Stasiak
HPLX
1.2
Plugin to open file system on HP100/200LX (older HP palmtop machines). Source included!Pavel Zampach
HTTP browser
1.0.4
Browse websites, follow links and download files and pages via HTTP as you do with FTP clients. Source available.Fabio Chelly
HTTP SmartBrowser
(site)
Use HTTP services which implies browsing the web and downloading of all kinds of files which are linked from websites. Similar to HTTP browser (try both!).André Martin
POP3/SMTP EmailPlugin
(site)
Access your POP3 mailbox, download and upload (send) mails as text files (in eml format) or delete huge unwanted mails from the server directly.
(also available as packer plugin).
André Martin
PROC
3.0
2013/07/16
Show list of running processes (similar to Task Manager). A double click on a task reveals details like Windows belonging to this task. Donateware. If you had any problems with the first version, then please re-download it!Alexey Babenko
Registry
5.2
2012/08/04
Plugin to browse the Windows registry database, change and export registry keys. New: Unicode support for TC 7.5!Vitaly Knyazev
Serial
2.0
2011/09/07
Plugin to access another PC via the serial port (RS232), or a PalmOS® device via Serial or USB. The palm version now supports the Treo.myself
Services
2.4
Plugin to view and manage services on WinNT/2k/XP/Vista/7.Serge Kandakov (KaSA)
SFTP
2.70
2020/05/19
Allows to access remote servers via secure FTP (FTP via SSH). Requires SSH2. Now also supports SSH+SCP without SFTP!

NEW! On Windows Vista, 7 or newer, no extra DLLs are needed any more! It uses the sChannel secure library built into Windows.

New in 2.70: Bugfixes to new hmac algorithms
New in 2.60: Two new hmac algorithms (authenticity verification): hmac-sha2-256-etm@openssh.com and hmac-sha2-512-etm@openssh.com
New in 2.50: Support for ED25519 elliptic curve certificates
New in 2.40: Don't show error if login via keyboard interactive failed, but worked via password.
New in 2.30: Plugin no longer worked on Windows 10 1903 (Spring 2019).

For Windows XP, please get this separate version which only needs the OpenSSL DLLs:
sftpplugxp
Source available.
myself
Startup Guard
0.52
Contains links to files, which will start on windows start up.Sergej Puljajev aka Gorbush
SymbFS
0.4
Allows to access the file system of Symbian based mobile devices (e.g. Nokia or Sony Ericsson phones). This provides a convenient way of transferring files (e.g. JPGs, ring tones, application files in the software development cycle) between desktop PC and mobile device.Ralf "Sabo" Saborowski
Temporary Panel
1.0
Container with links to real files, on HDD or Network, allows to aggregate files, can import M3U, PLS playlists.Sergej Puljajev aka Gorbush
Uninstaller64
1.01
2012/06/11
List installed programs (32+64 bit), view their settings, and uninstall specific programs. Source available.Flint
WebDAV
3.0
2019/05/27
Access to Web servers (read+write) via the WebDAV protocol over HTTP and HTTPS, also known as Web Folders. The Web server needs to have WebDAV services installed, which are available for Microsoft IIS, Apache, and many others.
What's new?
1.5 adds Windows Vista/7 support, and fixes several problems.
1.9 adds Unicode support, fixes crashes on 64-bit Windows.
2.0 supports files >2GB
2.1 shows locked files with "r" attribute, lock owner in Alt+Enter
2.3 adds 64-bit support
2.4 sends file type (MIME type) when uploading a file
2.5 adds support for servers which append a slash to file names
2.6 adds scanning of QR codes shown by the Wifi Plugin on Android
2.7 Fixed rename problem with Barracudadrive server
2.8 Fixed access violation when server returns empty entries
2.9 Fixes crash/empty list when directory listing starts with byte order marker
3.0 Append / to path when creating folder and append option is checked Source available.
myself
WinCE
2.2
2011/10/24
Access PocketPC and other Windows CE devices via ActiveSync directly in Total Commander! Requires installed ActiveSync, otherwise it cannot be installed! On Windows Vista/7, the new Windows Mobile Device Center 6.1 is needed!
2.1: Unicode support for Total Commander 7.5!
2.2: 64-bit support

Source available.
myself
Windows Media Audio (MP3)
1.0
2010/06/29
With this plugin, you can access MP3 player which do not have a drive letter, but appear in Windows Media Player (so-called "Plays for sure"-Player). Source available.myself
Windows Media Audio 2 (MP3)
1.4
2019/01/17
With this plugin, you can access MP3 players and phones (e.g. Android) which do not have a drive letter, but appear in Windows Media Player (so-called "Plays for sure"-Player).
Requires Windows Media Player 10 or newer!
Please update! Older versions than 1.2 may delete the wrong file in directories with more than 128 files! Source available.
myself
FS Plugin Guide
2.1se
2019/01/03
A HTML help file which describes how to write your own file system plugin. Also available:
A very small sample plugin (mirrors local file system). It's well suited as a starting point for your own plugins.
New (2.1): Background transfers (TC 7.55)!
New (2.0): Unicode support for Total Commander 7.5!
myself

How to install a file system plugin:
1. Unzip the plugin to a directory of your choice.
2. In Totalcmd, choose Configuration - Options - Operation - FS-Plugins
3. Click on "Add"
4. Choose the .wfx file of that plugin and click OK

You can now access the new file system via the Network Neighborhood.

Lister extensions (plugins)

Name/Ver.LinkDescriptionAuthor (home)
Anytag
(site)
Anytag displays metadata of audio files in lister. It supports the following audio formats: AAC, APE, FLAC, MP3, MP4, M4A, M4B, MPC, OFR, OFS, OGG, SPX, TTA, WMA and WV.Florian Heidenreich
ArcView
1.2.0.28
Allows you to display info about archives in the Lister or the QuickView window of Total Commander.Currently supported archive types: RAR, ZIP (ACE, 7Z and ... planned).Dmitrie Murzaikin aka poiuytr
Baseview
1.2
Allows to view and edit dBase and FoxPro files (*.dbf) with MEMO-fields. Extensive filtering options.Roman Novostavsky aka StayAtHome
CAD View
(site)
2018/11/15
View AutoCAD DWG and DXF; HPGL, SVG, CGM formats. Convenient navigation: right-mouse pan, mouse wheel zoom, export to BMP, WMF, GIF, JPEG, Layouts (commercial). Shareware (only €24).

New:
- 64-bit version available
CAD Soft Tools
DBF-View
1.20
View DBF database files (Dbase, Paradox etc.). Very small and fast plugin.Sergey Chehuta
EBCDICview
1.1
2015/11/03
Simple plugin to view EBCDIC-Encoded text files. Source available.myself
Excellence
1.20
2010/02/04
This plugin displays text and numbers from spreadsheet (xls) files created by OpenOffice Calc, Microsoft Excel and similar programs. It does not require any program or library to be installed on your system.Ivan Petrovic
fileinfo
2.23
2017/05/18
Display Version Information, Executable Header Information and Symbol (like Dumper) for MZ, NE, LE, LX and PE format (programs, DLLs etc).GANNIER François
Flashview
1.4
View Shockwave Flash files (SWF). Needs an installed Macromedia Flash Player. Use SWFView instead in the 64-bit version.Roman Novostavsky aka StayAtHome
Flic
1.0.0.0
Autodesk Flic Animation(FLC/FLI) Lister Plugin for Total Commander. Extracts a frame to BMP/GIF/TGA file. Exports to Animated GIF file/AVI/Pro Motion Animation.Chun Sejin
hpg-ed
0.5.13
Viewer AND Editor with syntax highlighting support of 9 different programming languages and text formats. Other features: 10 bookmarks, undo, creation of backup files, auto association in lister.hpg
HTMLView
(site)
View HTML documents using the Internet Explorer HTML control. Source available.Rk
IclView
v14.6.18
2018/06/14
Show icons in *.icl, *.exe, *.dll files. Extract one or all icons.ProgMan13
Original: Pavel
Imagine
1.1.1
2020/02/22
Image & Animation Viewer
- Support for numerous image/animation file formats:
PNG, JPG, GIF, BMP, PCX, TGA, TIFF, ICO, CUR, LBM, ANI, FLI, WMF, EMF, etc.
- Support for numerous archive file formats:
ZIP, RAR, 7Z, ALZ, HV3, CBZ, CBR, CB7, ARJ, LZH, EGG, TAR, ISO, CAB, etc.
- Extract single/all frames from animation files
- Image manipulation (resize, flip, rotate, grayscale, filters etc.)
Chun Sejin
ImgView
(site)
TC lister plugin primarily designed as a JPG viewer which can optionally also display BMP, EMF, EPS, GIF, ICO, PCX, PIC, PNG, PSD, PSP, SCR, SGI, TGA, TIF and WMF files. Context pop-up menu allows for printing, for copying to the clipboard etc.Michael Diegelmann
Jpegthumbs
1.3
This plugin does not show anything in Lister! It is used for displaying thumbnails for huge jpeg files in thumbnails view on system with limited memory, and on Windows 95/98/ME.
Uses jpeglib by independent jpeg group.
Source available.
myself
LinkInfo
1.52
2011/10/02
Plugin for viewing all possible parameters of LNK-files, and changing them via right click.Konstantin Vlasov
Mmedia
(site)
Interface MCI, MediaPlayer 6.4+, or WMP 7+ to play virtually all media files (with appropriate codec). It can play directly cda files from audio CD, play and show m3u list and display mp3 frame information, Id3V1 and V2 tags.GANNIER François
Multimedia factory
0.8.3
View/edit/delete information tags in multimedia files: OGG, MP3 (ID3v1 and v2). If you use this plugin together with the Mmedia plugin, make sure to install this plugin after Mmedia, then you can press '4' to switch to this plugin and edit the tags.Alexey Tarasov
OfficeView
1.1
This plugin is intended for viewing MS Word, Excel, Write and other files for which a convertor into RTF format is installed (and configured for the plugin). Convertors for Word, Excel, Write and HTML formats come with MS Office and can be found in directory:
\Program Files\Common Files\Microsoft Shared\TextConv\
Source available.
Yuri Gershanov
pdfview
(site)
pdfview.wlx is a basic lister plugin for Total Commander 5.5x to display pdf-files (portable document format), ps-files (postscript) and eps-files (encapsulated postscript) using the Ghostscript postscript and pdf interpreter.Florian Heidenreich
playlist
1.06
Displays and plays the contents of m3u and pls files. For every song in the list, it displays file location, duration, filesize and id3tag info. You can copy either list or song info to clipboard...Dark One
SWFview
1.3.8.1
2011/10/21
View Shockwave Flash files (SWF). Needs an installed Adobe Flash Player.Progman13
SynUs
1.6
View files with highlighted syntax: ObjectPascal, C++, Fortran, Java, Visual Basic, HTML document and many more. Export to HTML, RTF and copy to clipboard. Print files with highlighted syntax. And many more...Sergey Chernih
SynWrite
6.7.1460
2014/09/04
Text editor (plugin and program) for programmers. Supports syntax highlighting for many languages, code folding, tree structure, autocomplete, support for many encodings, customizable hotkeys, themes and more.UVViewSoft
xBaseView
10.0
2012/02/17
xBaseView Database Explorer has a Windows Explorer-like user interface, supports the typical operations for databases and data export/import. It works with file extensions: .CDS, .CSV, .DB, .DBF, .TAB and additional .HTML, .HTM, .XML.xBaseView_Support
LS-Plugin Guide
2.1
2019/01/03
A HTML help file which describes how to write your own lister plugin. Also available:
A very small sample plugin (shows line numbers to the left of each line). It's well suited as a starting point for your own plugins.
2.0: Optional Unicode support for Total Commander 7.5!
myself

How to install a lister plugin:
1. Unzip the plugin to a directory of your choice.
2. In Totalcmd, view any file with F3
3. Choose Options - Configure - LS-Plugins
3. Click on "Add"
4. Choose the .wlx file of that plugin and click OK

You can now access the new lister plugin with F3.

Content plugins (for Total Commander >=6.50)

Name/Ver.LinkDescriptionAuthor (home)
Anytag
(site)
Anytag.wdx displays metadata (like Artist, Album, ...) and technical info of almost all audio files in custom file lists. It supports the following audio formats: AAC, APE, FLAC, MP3, MP4, M4A, M4B, MPC, OFR, OFS, OGG, SPX, TTA, WMA and WV.Florian Heidenreich
AudioInfo
1.4.3
Shows info/tags from audio files. Supported formats: MPEG, OGG, WMA, WAV, VQF, AAC, APE, MPC, FLAC, IT, XM, S3M, MTM, MOD, UMX.UVViewSoft
CDocProp
1.10
2011/09/19
Compound document properties (e.g. Word, Excel files)MGP Software Ltd.
DirSizeCalc
2.21
2012/07/21
DirSizeCalc displays size, subdirectory and file count of a directory. All calculations are processed in background.Lefteous
ExeFormat
0.6b
2012/10/11
The ExeFormat plugin can show information about executable files: Currently supported are MZ, NE, LE/LX, PE(PE32/PE32+).
Ported to 64-bit by 'tbeu'. Source available.
Sergey Urbanovich
ExeInfo
1.1
2011/12/12
Checks all files for a Version Resource and extract information.GANNIER François
Exif
2.6
2020/03/13
Show camera data like aperture and exposure time from JPG and Canon RAW image files.
1.8: Supports Unicode file names
2.1: Supports GPS coordinates, altitude and time
2.2: Support GPS data: Image direction (in degrees)
2.3: 64-bit support
2.4: Bugfixes: Hangs with some JPGs, GPS data wrong using type "floating"
2.5: Support new fields Compression and CompressionName
2.6: Support for Canon RAW 3 format (CR3). To use, uninstall the old plugin first via Configuration - Options - Plugins - Content plugins!
Source available.
myself
File descriptions
1.3.2
2011/10/07
Shows file descriptions: from files.bbs/descript.ion, from contents of text/HTML files, for executables/DLLs: from VersionInfo fields. Sources included!UVViewSoft
Filename ChrCount
(site)
Purpose: Checking pathnames exceeds the 256 character limit after moving folders...
Columns: Pathname(ChrCount), Filename(ChrCount), Path(ChrCount), Ext(ChrCount), Filename(ChrCount excl Ext), Path.
J. Bleichroth
id3
1.2
2012/05/14
Show mp3 ID3 tags (only ID3 version 1), like Artist, Title etc. Very small and fast plugin. Source available.myself
ImgSize
(site)
Purpose: Sorting images by size, showing image size below thumbnails...
Columns: Width, Height, Pixel, Diagonal, Orientation, Size, Aspect Ratio
Formats: PSD PCX EPS/PS JPG GIF BMP PNG TIFF
J. Bleichroth
Media
0.6.1
Supports the displaying of: Duration in time-format, Duration in ms format, Audio stream information (codec, bitrate and etc.), Video stream compressor (codec, video bitrate and etc.), Video tags information (AVI only). Information cached in database.Sergey Chernih (aka SCHMaster)
NL_Info
1.20
2011/10/08
Plugin for displaying information about NTFS hard links and reparse points (junctions, mount points and so on). Source available.Konstantin Vlasov
ShellDetails
1.25
2015/07/08
ShellDetails displays all Windows Explorer fields in Total Commander.Lefteous
TextSearch
1.4.3
2011/09/30
Plugin allows to perform full-text search in any documents, which have command-line converters to the plain-text form. Included converters are: RTF, OpenOffice, DOC, DOCX, PDF. Sources included!UVViewSoft
xPDFSearch
1.11
2015/01/11
xPDFSearch can be used to perform fulltext search in PDF files. In addition xPDFSearch provides meta data information from PDF files. Source available.Lefteous
Content-Plugin Guide
2.1se
2019/01/03
A HTML help file which describes how to write your own content plugin. Also available:
A very small sample plugin with source (shows file details like date, time similar to Total Commander's internal plugin). It's well suited as a starting point for your own plugins.
New in 2.1: Function ContentCompareFiles used in "Synchronize dirs" to compare two files by a custom method (TC 7.55)
New in 2.0: Optional Unicode support for Total Commander 7.5!
myself

More plugins can be found on the unofficial plugins site totalcmd.net. This site is independent from us and also hosts new and beta plugins.

Источник: [https://torrent-igruha.org/3551-portal.html]
WiFi Commande Archives

UCI command usage

Unified Configuration Interface (UCI) is a small utility written in C (a shell script-wrapper is available as well) and is intended to centralize the whole configuration of a device running on OpenWrt.

Summary[edit | edit source]

UCI commands provide the user with the maximum degree of control since they can be issued via many different forms of router monitoring and administration (SSH, CLI, SMS, JSON-RPC) and can be used to set or get any router parameter. This chapter is a guide on how to use UCI commands with RUT devices.

How do I execute UCI commands?[edit | edit source]

UCI commands can executed via the following methods:

  • SSH - you can use UCI commands via SSH either with Linux OS's Terminal app or the PuTTY app with Windows OS (a download link is provided at the bottom of this page)
  • CLI - you can use UCI commands via the Command Line Interface found in the router's WebUI
  • SMS - you can execute UCI commands via SMS messages with the SMS Utilities uci api rule
  • JSON-RPC - you can execute UCI commands via JSON-RPC. Refer to this guide for more information: Monitoring via JSON-RPC

Available commands[edit | edit source]

This section provides a list of possible UCI commands and options.

Command Target Description
batch - Executes a multi-line UCI script which is typically wrapped into a here document syntax
export [<config>] Exports the configuration in a machine readable format. It is used internally to evaluate configuration files as shell scripts
import [<config>] Imports configuration files in UCI syntax
changes [<config>] Lists staged changes to the given configuration file or if none given, all configuration files
commit [<config>] Writes changes of the given configuration file, or if none is given, all configuration files, to the filesystem. All "uci set", "uci add", "uci rename" and "uci delete" commands are staged into a temporary location until they are written to flash with the "uci commit" command. This is used exclusively for UCI commands and is not needed after editing configuration files with a text editor
add <config> <section-type> Adds an anonymous section of type section-type to the given configuration
add_list <config>.<section>.<option>=<string> Adds the given string to an existing list option
del_list <config>.<section>.<option>=<string> Removes the given string from an existing list option
show [<config>[.<section>[.<option>]]] Shows the given option, section or configuration in compressed notation. If no option is given, shows all configuration files
get <config>.<section>[.<option>] Gets the value of the given option or the type of the given section
set <config>.<section>[.<option>]=<value> Sets the value of the given option, or add a new section with the type set to the given value
delete <config>[.<section>[[.<option>][=<id>]]] Deletes the given section or option
rename <config>.<section>[.<option>]=<name> Renames the given option or section to the given name
revert <config>[.<section>[.<option>]] Reverts the given option, section or configuration file. Used to undo any changes performed with UCI and not yet committed with uci commit
reorder <config>.<section>=<position> Moves the specified section to the given position. Used for easier management purposes


Options

-c <path> set the search path for config files (default: /etc/config) -d <str> set the delimiter for list values in uci show -f <file> use <file> as input instead of stdin -m when importing, merge data into an existing package -n name unnamed sections on export (default) -N don't name unnamed sections -p <path> add a search path for config change files -P <path> add a search path for config change files and use as default -q quiet mode (don't print error messages) -s force strict mode (stop on parser errors, default) -S disable strict mode -X do not use extended syntax on 'show'

Configuration hierarchy[edit | edit source]

UCI commands can be used to set and obtain parameters, but to do so, one has to first know the names of the config file, its section and the option that they are trying to interact with. Different configurations for different router functions and services are stored in config files. These config files have sections and section usually store multiple options

The elements in the UCI model are:

  • config: main configuration groups like network, system, firewall. Each configuration group has it's own file in /etc/config
  • sections: a config is divided into sections. A section can either be named or unnamed
  • types: a section can have a type. E.g, in the network config we typically have sections of the type "interface"
  • options: each section has options that hold configuration values
  • values: value of an option

Sections[edit | edit source]


Sections deserve some extra explanation in regard to naming. A section can be named or unnamed. Unnamed sections will get an autogenerated ID/CFGID (like "cfg023579") and be presented with an anonymous-name (like "@wifi-iface[0]")

Example of anonymous-name (cmd: uci show wireless):

... wireless.@wifi-iface[0]=wifi-iface wireless.@wifi-iface[0].device=radio0 wireless.@wifi-iface[0].network=lan wireless.@wifi-iface[0].mode=ap ...

Example of autogenerated ID/CFGID (cmd: uci show wireless.@wifi-iface[0]):

... wireless.cfg023579=wifi-iface wireless.cfg023579.device=radio0 wireless.cfg023579.network=lan wireless.cfg023579.mode=ap ...

Configuration files[edit | edit source]


This section provides a list of all available configuration files of RUT routers. Note that these are all possible config files from any RUT router (RUT230, RUT240, RUT850, RUT950, RUT955) and that therefore some of them may not exist in your router.

File Description
/etc/config/auto_update Stores FOTA configuration settings
/etc/config/blocklist Stores the list of blocked hosts
/etc/config/call_utils Stores Call Utilities configuration settings
/etc/config/cam_monitoring Stores Camera Monitoring configuration settings
/etc/config/cli Stores CLI configuration settings
/etc/config/coovachilli Stores FTP upload configuration settings
/etc/config/data_limit Stores Mobile Data Limit configuration settings
/etc/config/ddns Stores Dynamic DNS configuration settings
/etc/config/ddos Stores DDOS Prevention configuration settings
/etc/config/dhcp Stores Dnsmasq configuration and DHCP settings
/etc/config/dropbear Stores List Of Blocked Addresses configuration settings
/etc/config/easycwmp Stores EasyCwmp configuration settings
/etc/config/events_reporting Stores Events Reporting rules configuration settings
/etc/config/eventslog_report Stores Reporting Configuration settings
/etc/config/firewall Stores Firewall rules configuration settings
/etc/config/fstab Stores network Shares configuration settings
/etc/config/gps Stores GPS configuration settings
/etc/config/gre_tunnel Stores GRE Tunnel configuration settings
/etc/config/hostblock Stores Blocked Hosts' settings
/etc/config/hotspot_scheduler Stores Hotspot Scheduler configuration settings
/etc/config/hwinfo Stores Hardware Information
/etc/config/ioman Stores Input/Output status and label configuration settings
/etc/config/kmod_man Stores Linux Kernel modules configuration settings
/etc/config/landingpage Stores Landing Page configuration settings
/etc/config/load_balancing Stores Load Balancing configuration settings
/etc/config/logtrigger Stores some Access Control (Safety) configuration settings
/etc/config/luci Base LuCI config
/etc/config/mdcollectd Stores mdcollect configuration settings
/etc/config/mosquitto Stores MQTT configuration settings
/etc/config/mqtt_pub Stores MQTT Publisher configuration settings
/etc/config/modbus Stores Modbus configuration settings
/etc/config/multiwan Stores Multiwan (backup WAN) configuration settings
/etc/config/network Stores Network (LAN, WAN, Mobile interface) interface configuration settings
/etc/config/ntpclient Stores NTP configuration settings
/etc/config/openvpn Stores OpenVPN configuration settings
/etc/config/operctl Stores Operator List configuration settings
/etc/config/output_control Stores Output Control settings
/etc/config/overview Stores Overview page configuration settings (displayed widgets)
/etc/config/periodic_reboot Stores Periodic Reboot configuration settings
/etc/config/ping_reboot Stores Ping Reboot configuration settings
/etc/config/portscan Stores Port Scan Prevention configuration settings
/etc/config/pptpd Stores PPTP configuration settings
/etc/config/privoxy Stores Proxy Based URL Content Blocker configuration settings
/etc/config/profiles Stores router Configuration Profile settings
/etc/config/qos Stores QoS configuration settings
/etc/config/quagga Stores Dynamic Routing configuration settings
/etc/config/racoon Stores racoon IPsec daemon settings
/etc/config/radius Stores Internal RADIUS server configuration settings
/etc/config/reregister Stores Force LTE network configuration settings
/etc/config/rms_connect Stores Remote Monitoring configuration settings
/etc/config/rpcd Stores Login settings
/etc/config/rs Stores RS232 and RS485 configuration settings
/etc/config/samba Stores SAMBA configuration settings
/etc/config/sim_idle_protection Stores SIM Idle Protection configuration settings
/etc/config/sim_switch Stores SIM Switching configuration settings
/etc/config/simcard Stores SIM card (general Mobile) configuration settings
/etc/config/smpp_config Stores SMPP configuration settings
/etc/config/sms_gateway Stores SMS Forwarding and Post/Get configuration settings
/etc/config/sms_utils Stores SMS Utilities rules configuration settings
/etc/config/smscollect Stores SMS collector (used for on SMS limit SIM switch) settings
/etc/config/snmpd Stores SNMP configuration settings
/etc/config/static_arp Stores Static ARP Entries configuration settings
/etc/config/strongswan Stores IPsec configuration settings
/etc/config/system Stores various system settings (e.g., modem settings, reset button settings, router's hostname, etc.)
/etc/config/teltonika Stores basic Teltonika router configuration settings (e.g., whether password was changed, whether WAN information is to be displayed in the login window)
/etc/config/ucitrack Stores init script information
/etc/config/uhttpd Stores RMS configuration settings
/etc/config/upnpd Stores UPNP configuration settings
/etc/config/vrrpd Stores VRRP configuration settings
/etc/config/wget_reboot Stores Wget Reboot configuration settings
/etc/config/wireless Stores Wireless Acces Point and Wireless Station configuration settings
/etc/config/xl2tpd Stores L2TP configuration settings

Obtaining parameters[edit | edit source]

This section will overview uci get and uci show commands used to obtain router parameters, option and section names and contents of entire configs or sections.

UCI get[edit | edit source]


The uci get command returns values for specific options. When using uci get, you have provide the correct path to the option that you are looking for. For example, in order to obtain the Wi-Fi Access Point's SSID you would have to use a command that looks like this:

# uci getwireless.@wifi-iface[0].ssid

Response:

The command above returns the Wi-Fi Access Point's SSID. As you can see the uci get command is used. What follows after the command is the path to the value that we're looking for (SSID, in this case). The SSID value can be found in the wireless config, the @wifi-iface[0] section, stored under an option called ssid. So the basic syntax for a uci get command is this:

# uci get<config>.<section>[.<option>]

UCI show[edit | edit source]


If you don't know what the exact option is called and in which section of what config file it is stored, you can use the uci show command. uci show can also be used to obtain values of specific options, but it is more commonly used to display the contents of entire sections or configs. Lets modify the example above by saying that want to find out the SSID value but don't know the exact section or option under which the value is stored. In this case we'll the uci show command to view the contents of the entire wireless config:

# uci showwireless

Response:

As you can see, the response shows the entire wireless config and its entities. Note that instead of just showing values (like in the case of uci get) you can see the config name, section name and option name before each one.

Most config file names are simple. Wireless config is called wireless, OpenVPN config is called openvpn, etc. But even so one doesn't necessarily have to know what a config file is called, especially before interacting with it. To see the names of all config files and what kind of settings they store you can refer to the table above. Or if you're CLI or SSH and want to check the names of config files on the spot, you can use the ls command. Since RUT configs ar stored in /etc/config, the full commands should look like this:

# ls /etc/config

The ls command is used to view the contents of a directory. Here is an example of the /etc/config directory of a RUT955 router:

So when you plan on obtaining specific parameters or setting parameter values, you should always start with finding out option and section names. To accomplish this, we recommend using the uci show <config> commands.

Setting parameters[edit | edit source]

UCI can also be used to set parameters, add lists of parameters and even add entire sections to config files.

UCI set[edit | edit source]


The uci set command is used to set the values of specific options. It can set only one option at a time. For example, this time lets try changing the Wi-Fi Access Point's SSID to wifi_set_by_uci:

# uci set wireless.@wifi-iface[0].ssid=wifi_set_by_uci

As you may have noticed, the command is very similar to uci get, except it has an equals to ('=') sign added at the end and after the sign is the value that we want to assign to the option.

The next step is to commit the changes by using the uci commit command and to restart all the services relevant to our configuration by using the luci-reload command:

# uci commit wireless # luci-reload

After this, your changes will be applied and in use. Notice that when using uci commit you can specify the config file for which you want to commit changes (you can even specify the exact section and option). This is useful when making changes to multiple options in case you make any mistakes, because before committing any changes you can easily undo them with the uci revert command. The command by itself will undo all the changes made by uci up until the last commit. It can also be used on specific config files, sections and options in order to undo specific changes.

UCI add_list[edit | edit source]


Some variables hold more than one value, unlike options. These variables are called lists. For example, if you use MAC filter on your Wi-Fi Access point, the MAC addresses are saved not as options but as a list.

Example of maclist (cmd: uci show wireless):

... wireless.@wifi-iface[0].macfilter=deny wireless.@wifi-iface[0].maclist=15:15:12:64:66:14 15:15:12:64:66:15 15:15:12:64:66:16 ...

As an add_list usage example, lets add these MAC addresses to the list: 11:11:11:11:11:11, 22:22:22:22:22:22, 33:33:33:33:33:33

# uci add_list wireless.@wifi-iface[0].maclist=11:11:11:11:11:11 # uci add_list wireless.@wifi-iface[0].maclist=22:22:22:22:22:22 # uci add_list wireless.@wifi-iface[0].maclist=33:33:33:33:33:33 # uci commit wireless # luci-reload

Notice that you have to use a separate command for adding each value and as with uci set you have to use uci commit and luci-reload in order for the changes to take effect.

Extensive example[edit | edit source]


With all that we have learned lets try a more complicated example: lets you want to create an OpenVPN server. The server will be called MyServer, will use a TUN type interface and TLS authentication. In order to create this server we will first have to create a section for the server in the openvpn config:

# uci add openvpn server_MyServer # uci set openvpn.server_MyServer=openvpn

The first line creates a section called server_MyServer, the second line specifies the section type, in this case - openvpn. Now lets add the rest of the configurations:

# uci set openvpn.server_MyServer.persist_key=1 # uci set openvpn.server_MyServer.port=1194 # uci set openvpn.server_MyServer.keepalive=10 120 # uci set openvpn.server_MyServer.persist_tun=1 # uci set openvpn.server_MyServer.status=/tmp/openvpn-status_server_MyServer.log # uci set openvpn.server_MyServer.verb=5 # uci set openvpn.server_MyServer.proto=udp # uci set openvpn.server_MyServer.dev=tun_s_MyServer # uci set openvpn.server_MyServer.enable=1 # uci set openvpn.server_MyServer.comp_lzo=yes # uci set openvpn.server_MyServer.cipher=BF-CBC # uci set openvpn.server_MyServer._auth=tls # uci set openvpn.server_MyServer._tls_cipher=all # uci set openvpn.server_MyServer.server=10.0.0.0 255.255.255.0 # uci set openvpn.server_MyServer.ca=/lib/uci/upload/cbid.openvpn.server_MyServer.ca # uci set openvpn.server_MyServer.cert=/lib/uci/upload/cbid.openvpn.server_MyServer.cert # uci set openvpn.server_MyServer.key=/lib/uci/upload/cbid.openvpn.server_MyServer.key # uci set openvpn.server_MyServer.dh=/lib/uci/upload/cbid.openvpn.server_MyServer.dh # uci set openvpn.server_MyServer.client_config_dir=/etc/openvpn/ccd # uci add_list openvpn.server_MyServer.push="route 192.168.1.0 255.255.255.0" # uci add_list openvpn.server_MyServer.push="route 192.168.56.0 255.255.255.0'

And don't forget to uci commit and luci-reload:

# uci commit openvpn # luci-reload

A few notes about the configuration:

  1. The options that go into an OpenVPN server are standard OpenWRT OpenVPN server options. If you do not posses all the required information needed to create an OpenVPN server, visit this OpenWRT guide: OpenVPN Setup Guide for Beginners.
  2. Note that I added two values to the list named push. As mentioned before, when adding values to list-type parameters use separate commands for separate values. If the value has a space in it (as in the example above) use quotation marks around the value ("<value>").
  3. Depending on your chosen authentication, the OpenVPN server instance might use certificate files for authentication with clients. A TLS server, as in our case, uses Certificate authority (.crt), Server certificate (.crt), Server key (.key) and Diffie Hellman Parameters (.pem) files for authentication. A Static Key server uses a Static Key (.key) file for authentication. In the example above I had all the files upload beforehand to /lib/uci/upload, so the commands that I used only provided the server's config with the paths to the files. When creating your own OpenVPN server you will have to generate your own certificates and upload the to /lib/uci/upload (the default directory for certificates) or somewhere else, but make sure to specify the correct path. To upload files to the router use the scp command if you're working with a Linux type OS or use software called WinSCP if you are using Windows OS. Or use Easy-RSA to create certificates within the router. The newly created certificates will appear in /etc/easy-rsa/keys. You can create certificates with these commands:
build-ca build-dh build-key-server my-server build-key-pkcs12 my-client

Additional examples[edit | edit source]

If the examples and explanations provided above did not suffice, we are providing this section of some additional ones in hopes to give you a better grasp of the syntax of UCI command usage.

Site Blocking[edit | edit source]


This example will provide instructions on how to enable RUT routers' Site Blocking feature and how to add hostnames to the Blacklist or Whitelist using only UCI commands. For the sake of our example lets say that you want to create a Blacklist that excludes access to all sites contained within the list. The sites in question are www.facebook.com, www.youtube.com and 9gag.com.

To achieve such a task, the first relevant piece of required information is the config name, hostblock, where all the necessary configuration settings are stored. The next important thing to know is that each different website must be stored in a separate section of the type block. So we'll need to create a new section and enable each added element. Lets start:

First element:

# uci add hostblock block # uci set hostblock.@block[0].host=www.facebook.com # uci set hostblock.@block[0].enabled=1

Second element:

# uci add hostblock block # uci set hostblock.@block[1].host=www.youtube.com # uci set hostblock.@block[1].enabled=1

Third element:

# uci add hostblock block # uci set hostblock.@block[2].host=9gag.com # uci set hostblock.@block[2].enabled=1

Enabling Site Blocking:

# uci set hostblock.config.enabled=1

Final steps:

# uci commit hostblock # luci-reload

The first-third steps add hostnames of the websites to be blocked, which are saved under the option host. Each of the first three elements also need to be enabled, therefore, the option enabled is set to 1 next to each host. The fourth step is for enabling the Site Blocking service (by setting the option enabled in section config to 1).

DHCP Server[edit | edit source]


This example will provide instructions on how configure RUT routers' DHCP Server using only UCI commands. For the sake of the example lets say that you want to change the dhcp range to 192.168.1.2 - 192.168.1.200 and the lease time to 30 minutes

To achieve such a task, the first relevant piece of required information is the config name, dhcp, where all the necessary configuration settings are stored. Another important thing to know is that when changing the lease time, three options are relevant - the time (option time), the unit of time measurement (option letter) and lease time(option leasetime), which is basically time+letter, e.g., 12 hour lease time is 12h. Other options in question are start address (option start) and address limit (option limit). Lets start:

Setting start address and limit:

# uci set dhcp.lan.start=2 # uci set dhcp.lan.limit=199

Setting lease time

# uci set dhcp.lan.letter=m # uci set dhcp.lan.time=30 # uci set dhcp.lan.leasetime=30m

Final steps:

# uci commit dhcp # luci-reload

The first step sets the start address to 2 and the limit of addresses to 199. The value of the start option is associated with the last section of an IP address (if start value is 2 then the starting IP address is 192.168.1.2(provided that the router's LAN IP is in the 192.168.1.0/24 network)), the value of the limit option denotes how many IP addresses can be leased out starting from and including the the start address. Then the second step is used to set the lease time. The letter option specifies the unit of time measurement (either m for minutes or h for hours). The time option specifies number of minutes (or hours in other cases) and the leasetime option is just the representation (nonetheless, it's still mandatory) of the previous two values, i.e., 30m - thirty minutes.

Mobile Data Limit[edit | edit source]


This example will provide instructions on how configure Mobile Data Limit and SMS Warning on RUT routers' using only UCI commands. For the sake of the example lets say that you want to set up a data limit of 1 GB with the limit counter restarting everyday at 10 a.m. and an SMS Warning that sends out a message when the 800 MB threshold is reached that also restarts everyday at 10 a.m.

To achieve such a task, the first relevant piece of required information is the config name, data_limit, where all the necessary configuration settings are stored. This task will require the knowledge of many mandatory option so lets begin the step-by-step part (comments will be provided along with each step and a short summary afterwards):

Enabling Mobile Data Limit and SMS Warning:

# uci set data_limit.limit.prim_enb_conn=1 # uci set data_limit.limit.prim_end_wrn=1

Setting the Mobile Data and SMS Warning limits:

# uci set data_limit.limit.prim_conn_limit=1000 # uci set data_limit.limit.prim_wrn_limit=800

Setting the Mobile Data Limit period:

# uci set data_limit.limit.prim_conn_period=day # uci set data_limit.limit.prim_conn_hour=10

Setting the SMS Warning period and phone number:

# uci set data_limit.limit.prim_wrn_period=day # uci set data_limit.limit.prim_wrn_hour=10 # uci set data_limit.limit.prim_wrn_number=+37012345678

The first enables both SMS Warning and Mobile Data Limit services by setting the options prim_enb_conn and prim_enb_wrn to 1. The second step sets up the to limits by setting the options prim_conn_limit and prim_wrn_limit to 1000 and 800 respectively. The third step specifies the frequency at which Mobile Data Limit will be reset. The option prim_conn_period can take values month, week or in this case, day, and prim_conn_hour indicates the hour of the day (in this case, 10). The fourth step sets up the SMS Warning period in the same manner and also adds the phone number +37012345678 to the option prim_wrn_number

External links[edit | edit source]

Источник: [https://torrent-igruha.org/3551-portal.html]
.

What’s New in the WiFi Commande Archives?

Screen Shot

System Requirements for WiFi Commande Archives

Add a Comment

Your email address will not be published. Required fields are marked *