Hello,
I am trying to block a single client machine from accessing a NAS server that's in the same network subnet of 10.0.1.0/24.
The client has an IP address of 10.0.1.87/24.
The NAS has an IP address of 10.0.1.200/24.
The Asus router in use for this network is at 10.0.1.1/24.
I want to use iptables to block client>NAS but allow NAS<Client connections.
I haven't figured out the second rule, but to block client>NAS, I've tried:
iptables -I FORWARD -s 10.0.1.87 -d 10.0.1.200 -j logdrop
After running the above command, the client is still able to speak with the NAS and visit its file shares and Web management page.
Is there something wrong that I am doing with this rule?
I am trying to block a single client machine from accessing a NAS server that's in the same network subnet of 10.0.1.0/24.
The client has an IP address of 10.0.1.87/24.
The NAS has an IP address of 10.0.1.200/24.
The Asus router in use for this network is at 10.0.1.1/24.
I want to use iptables to block client>NAS but allow NAS<Client connections.
I haven't figured out the second rule, but to block client>NAS, I've tried:
iptables -I FORWARD -s 10.0.1.87 -d 10.0.1.200 -j logdrop
After running the above command, the client is still able to speak with the NAS and visit its file shares and Web management page.
Is there something wrong that I am doing with this rule?