This is for a home network that doesn't share resources.
Is this the easiest way to block Ethernet clients on the same router from connecting to each other ?
Is this the easiest way to block Ethernet clients on the same router from connecting to each other ?
1) Configure the WebGUI DHCP address range. For example, 192.168.1.2 - 192.168.1.4.
2) Create a /<path>/dhcp_cli.sh script file
3) Run chmod +x /<path>/dhcp_cli.sh
4) Fill the dhcp_cli.sh script with the DHCP addresses
6) Create iptables rule
iptables -A FORWARD -m set --set DHCP_CLI -src,dst -j DROP
3) Run chmod +x /<path>/dhcp_cli.sh
4) Fill the dhcp_cli.sh script with the DHCP addresses
ipset -N DHCP_CLI hash:ip
ipset add DHCP_CLI 192.168.1.2
ipset add DHCP_CLI 192.168.1.3
ipset add DHCP_CLI 192.168.1.4
5) Run the /<path>/dhcp_cli.sh scriptipset add DHCP_CLI 192.168.1.2
ipset add DHCP_CLI 192.168.1.3
ipset add DHCP_CLI 192.168.1.4
6) Create iptables rule
iptables -A FORWARD -m set --set DHCP_CLI -src,dst -j DROP