Blocking Internet Access for LAN Clients: Difference between revisions
No edit summary |
No edit summary |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<p style="color:red">The information on this page is updated in accordance with the [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.08'''] firmware version .</p> | |||
==Introduction== | ==Introduction== | ||
Line 6: | Line 7: | ||
Access between your end device and other networks is controlled by your network device's (router, gateway) firewall. Therefore, in order to set networks access limitations you will need to modify the firewall configuration. In the Teltonika-Networks devices this can be done over the <b>Network → Firewall</b> page. | Access between your end device and other networks is controlled by your network device's (router, gateway) firewall. Therefore, in order to set networks access limitations you will need to modify the firewall configuration. In the Teltonika-Networks devices this can be done over the <b>Network → Firewall</b> page. | ||
---- | ---- | ||
<ul> | <ul> | ||
<li> | <li>First, go to the <b>Network → Firewall → Traffic Rules</b> page.</li> | ||
<li>Scroll down to the 'Add New Forward Rule' section and create a rule such as this: | <li>Scroll down to the 'Add New Forward Rule' section and create a rule such as this: | ||
<ol> | <ol> | ||
Line 21: | Line 16: | ||
<li>Set 'Destination Zone' to <i>wan</i>.</li> | <li>Set 'Destination Zone' to <i>wan</i>.</li> | ||
<li>Click 'Add'.</li> | <li>Click 'Add'.</li> | ||
</ol>[[File: | </ol>[[File:Blocking_internet_access_for_lan_clients_traffic_rule_new_7.8.png|border|class=tlt-border|800x117px|center]] | ||
</li> | </li> | ||
<li> | </ul> | ||
===All clients=== | |||
---- | |||
<ul> | |||
<li>To block all LAN clients from accessing the Internet, set up the rule like this: | |||
<ol> | <ol> | ||
<li> | <li>Choose 'Protocol' <i>All</i>.</li> | ||
<li>Set 'Action' to <i>Drop</i>.</li> | <li>Set 'Action' to <i>Drop</i>.</li> | ||
</ol>[[File: | </ol>[[File:Blocking_internet_access_for_lan_clients_traffic_rule_new_drop_7.8.png|border|class=tlt-border]] | ||
</li> | </li> | ||
<li>If you later wish to undo the changes, you can delete the rule or turn it off.<br>[[File: | <li>If you later wish to undo the changes, you can delete the rule or turn it off.<br>[[File:Traffic_rule_on_off.gif|border|class=tlt-border|1000x80px|center]]</li> | ||
</ul> | </ul> | ||
===Single client=== | ===Single client or range of clients=== | ||
---- | ---- | ||
<ul> | <ul> | ||
<li>To block a single LAN client from accessing the Internet, | <li>To block a single LAN client from accessing the Internet, set up the rule like this: | ||
<ol> | <ol> | ||
<li>Set 'Protocol' to <i>All</i>.</li> | |||
<li>Set ' | <li>Set 'Source IP address' to the the one that you wish to block.</li> | ||
<li>Set ' | <li>Set 'Action' to <i>Drop</i>.</li> | ||
<li> | </ol>[[File:Blocking_internet_access_for_lan_clients_traffic_rule_new_drop_specific_ip_7.8.png|border|class=tlt-border]] | ||
</ol>[[File: | |||
</li> | </li> | ||
<li> | <li>Alternatively, you can specify an IP address/netmask combination to include a range of addresses. For example, specifying <i>192.168.1.100/30</i> as the 'Source address' would denote a range of 192.168.1.100 to 192.168.1.103.<br>[[File:Blocking_internet_access_for_lan_clients_traffic_rule_new_drop_specific_ips_7.8.png|border|class=tlt-border]]</li> | ||
<li>If you later wish to undo the changes, you can delete the rule or turn it off.<br>[[File:Traffic_rule_on_off.gif|border|class=tlt-border|1000x80px|center]]</li> | |||
</ul> | |||
===Blocking a specific IP or network=== | |||
---- | |||
<ul> | |||
<li>To block all LAN clients from accessing specific IP address, set up the rule like this: | |||
<ol> | <ol> | ||
<li>Set 'Protocol' to <i> | <li>Set 'Protocol' to <i>All</i>.</li> | ||
<li>Set ' | <li>Set 'Destination address' to the the one that you wish to block.</li> | ||
<li>Set 'Action' to <i>Drop</i>.</li> | <li>Set 'Action' to <i>Drop</i>.</li> | ||
</ol>[[File: | </ol>[[File:Blocking_internet_access_for_lan_clients_traffic_rule_new_drop_specific_ip_dest_7.8.png|border|class=tlt-border]] | ||
</li> | </li> | ||
<li>Alternatively, you can specify an IP address/netmask combination to include a range of addresses. For example, specifying <i> | <li>Alternatively, you can specify an IP address/netmask combination to include a range of addresses. For example, specifying <i>10.0.0.0/8</i> as the 'Destination address' would denote a range of 10.0.0.0 to 10.255.255.255<br>[[File:Blocking_internet_access_for_lan_clients_traffic_rule_new_drop_specific_ips_dest_7.8.png|border|class=tlt-border]]</li> | ||
<li>If you later wish to undo the changes, you can delete the rule or turn it off.<br>[[File: | <li>If you later wish to undo the changes, you can delete the rule or turn it off.<br>[[File:Traffic_rule_on_off.gif|border|class=tlt-border|1000x80px|center]]</li> | ||
</ul> | </ul> | ||
==Blocking specific site | ==Blocking a specific site(s)== | ||
'''Note''': On RUT and TRB series devices, Web Filter is additional software that can be installed from the '''System → Package Manager''' page. | |||
<ul> | <ul> | ||
<li>To block access to a website for LAN clients, go to Services → Web Filter.</li> | <li>To block access to a website for LAN clients, go to Services → Web Filter.</li> | ||
Line 63: | Line 68: | ||
<li>Turn Web Filter on.</li> | <li>Turn Web Filter on.</li> | ||
<li>Set 'Mode' to <i>Blacklist</i>.</li> | <li>Set 'Mode' to <i>Blacklist</i>.</li> | ||
</ol>[[File: | </ol>[[File:Blocking_internet_access_web_filter_enable7.8.png|border|class=tlt-border]]<br>Alternatively, you can set 'Mode' to <i>Whitelist</i> to allow access only to specific sites and block access to all others. | ||
</li> | |||
<li>Specify sites that you wish to block under the 'Site Blocking Rules' section. | <li>Specify sites that you wish to block under the 'Site Blocking Rules' section. | ||
<ol> | <ol> | ||
<li>Click 'Add' to create a new entry in the list.</li> | <li>Click 'Add' to create a new entry in the list. You may add as many entries as you wish.</li> | ||
<li>Specify a 'Hostname' that you wish to block.</li> | <li>Specify a 'Hostname' that you wish to block.</li> | ||
<li>Enable the instance, which will be blocked.</li> | |||
<li>Don't forget to save the changes.</li> | <li>Don't forget to save the changes.</li> | ||
</ol>[[File: | </ol>[[File:Blocking_internet_access_web_filter_site7.8.png|border|class=tlt-border]] | ||
</li> | </li> | ||
</ul> | </ul> | ||
[[Category: | [[Category:Router control and monitoring]] |
Latest revision as of 14:15, 25 July 2024
Main Page > General Information > Configuration Examples > Router control and monitoring > Blocking Internet Access for LAN ClientsThe information on this page is updated in accordance with the 00.07.08 firmware version .
Introduction
This article contains instructions o how to block Internet access for LAN clients using a Teltonika-Networks device.
Blocking WAN (Internet) access
Access between your end device and other networks is controlled by your network device's (router, gateway) firewall. Therefore, in order to set networks access limitations you will need to modify the firewall configuration. In the Teltonika-Networks devices this can be done over the Network → Firewall page.
- First, go to the Network → Firewall → Traffic Rules page.
- Scroll down to the 'Add New Forward Rule' section and create a rule such as this:
- Create a custom name for the rule.
- Set 'Source Zone' to lan.
- Set 'Destination Zone' to wan.
- Click 'Add'.
All clients
- To block all LAN clients from accessing the Internet, set up the rule like this:
- Choose 'Protocol' All.
- Set 'Action' to Drop.
- If you later wish to undo the changes, you can delete the rule or turn it off.
Single client or range of clients
- To block a single LAN client from accessing the Internet, set up the rule like this:
- Set 'Protocol' to All.
- Set 'Source IP address' to the the one that you wish to block.
- Set 'Action' to Drop.
- Alternatively, you can specify an IP address/netmask combination to include a range of addresses. For example, specifying 192.168.1.100/30 as the 'Source address' would denote a range of 192.168.1.100 to 192.168.1.103.
- If you later wish to undo the changes, you can delete the rule or turn it off.
Blocking a specific IP or network
- To block all LAN clients from accessing specific IP address, set up the rule like this:
- Set 'Protocol' to All.
- Set 'Destination address' to the the one that you wish to block.
- Set 'Action' to Drop.
- Alternatively, you can specify an IP address/netmask combination to include a range of addresses. For example, specifying 10.0.0.0/8 as the 'Destination address' would denote a range of 10.0.0.0 to 10.255.255.255
- If you later wish to undo the changes, you can delete the rule or turn it off.
Blocking a specific site(s)
Note: On RUT and TRB series devices, Web Filter is additional software that can be installed from the System → Package Manager page.
- To block access to a website for LAN clients, go to Services → Web Filter.
- Set the main parameters of Web Filter under the 'Site Blocking Settings' section.
- Turn Web Filter on.
- Set 'Mode' to Blacklist.
Alternatively, you can set 'Mode' to Whitelist to allow access only to specific sites and block access to all others. - Specify sites that you wish to block under the 'Site Blocking Rules' section.
- Click 'Add' to create a new entry in the list. You may add as many entries as you wish.
- Specify a 'Hostname' that you wish to block.
- Enable the instance, which will be blocked.
- Don't forget to save the changes.