Skip to main content
Version: 7.26

setup


ip/hotspot/setup​

Type: Command

The /ip/hotspot/setup command asks the questions below and creates a HotSpot server, its server profile, the first user, and, where they are missing, the IP address, the IP pool, the DHCP server, and the masquerade rule. See the HotSpot guide.

Read-only ArgumentTypeDescription
interfacealt { interface1: iface_enum , interface2: iface_enum }Question hotspot interface: the interface with the clients.
addresscomposite { address: ipAddr , netmask: num }Question local address of network: the address of the router on the HotSpot interface, with the mask. The address that the interface already has is offered.
masqboolQuestion masquerade network: yes adds a source NAT rule with action=masquerade for the HotSpot network.
poolmulti { range: composite { min: ipAddr , max: ipAddr } }Question address pool of network: the address range for the clients.
ssl-certenum (import-other-certificate | none) { import-other-certificate:0, none:0xffffffff }Question select certificate: the certificate for the https login method. none - HTTPS login is not used.
passphrasestringPassphrase of the private key, when a certificate is imported.
smtp-serveripAddrQuestion ip address of smtp server: the server to which the SMTP connections of the clients are redirected. 0.0.0.0 - no redirect.
use-dnscacheboolWhether to use the DNS cache of the router.
dns-servermulti { address: ipAddr }Question dns servers: the DNS servers of the router. The value is written to /ip/dns.
dns-namestringQuestion dns name: the DNS name of the login page. Empty - the IP address is used.
usernamestringQuestion name of local hotspot user: the name of the first user.
passwordstringQuestion password for the user: the password of the first user.