Wireless Connect Logo
Hello Guest! - Login
Contact Wireless Connect
Address Lists
Credit Cards Accepted
Back to Table Of Contents >>

General Information


Firewall address lists allow to create a list of IP addresses to be used for packet matching.


Packages required: system
License required: Level1
Submenu level: /ip firewall address-list
Standards and Technologies: IP
Hardware usage: Not significant

Address Lists


Firewall address lists allow user to create lists of IP addresses grouped together. Firewall filter, mangle and NAT facilities can use address lists to match packets against them.

The address list records could be updated dynamically via the action=add-src-to-address-list or action=add-dst-to-address-list items found in NAT mangle and filter facilities.

Property Description

address (IP address/netmask | IP address-IP address) - specify the IP address or range to be added to the address list. Note that console converts entered address/netmask value to a valid network address, i.e.: is converted to list (name) - specify the name of the address list to add IP address to


The following example creates an address list of people thet are connecting to port 23 (telnet) on the router and drops all further traffic from them. Additionaly, the address list will contain one static entry of address= (www.example.com):

[admin@MikroTik] > /ip firewall address-list add list=drop_traffic address=
[admin@MikroTik] > /ip firewall address-list print
Flags: X - disabled, D - dynamic
 #   LIST         ADDRESS
 0   drop_traffic
[admin@MikroTik] > /ip firewall mangle add chain=prerouting protocol=tcp dst-port=23 \
\... action=add-src-to-address-list address-list=drop_traffic
[admin@MikroTik] > /ip firewall filter add action=drop chain=input src-address-list=drop_traffic
[admin@MikroTik] > /ip firewall address-list print
Flags: X - disabled, D - dynamic
 #   LIST         ADDRESS
 0   drop_traffic
 1 D drop_traffic
 2 D drop_traffic
[admin@MikroTik] >

As seen in the output of the last print command, two new dynamic entries appeared in the address list. Hosts with these IP addresses tried to initialize a telnet session to the router.

Back to Table Of Contents >>