Block a IP in local network

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
legolas
DD-WRT Novice


Joined: 22 Feb 2017
Posts: 26

PostPosted: Tue Sep 07, 2021 17:50    Post subject: Block a IP in local network Reply with quote
Hello
I have some IP cams and a NVR, and I want to record the video only at night, but the schedule configuration doesn't work on NVR, so how I can block a port to block inbound traffic to NVR?
Tried many configurations and the block does not work
iptables -I FORWARD -d nvr.ip -p tcp --dport 554 -j DROP
iptables -I FORWARD -s cam.ip -p tcp --dport 554 -j DROP

The NVR is on router lan port and the router is connected to another router with repeater bridge
Firmware: DD-WRT v3.0-r38253 std (01/10/19)

Thank you!

_________________
In use, community ISP:
1 tplink WR842ND; 2 WR741N; 3 WR740N : with DD-WRT
1 mymax WR934-BK "original" firmware
1 d-link dsl-2740e with Totolink ND300
2 Sagem F@ST2704 with OpenWrt
1 wavlink ND300
1 wrt54g
waiting:
1 wrt54g
airgrid m5 bullet
Sponsor
eibgrad
DD-WRT Guru


Joined: 18 Sep 2010
Posts: 9157

PostPosted: Tue Sep 07, 2021 18:27    Post subject: Reply with quote
Blocking via the router only works when the traffic between two devices is being routed. But devices that share the same ethernet segment, and by extension, the same IP network, do NOT route. They are bridged and communicate directly w/ each other. The router's firewall never comes into play. In order for the NVR to prevent access, it would need its own personal IP firewall.
_________________
ddwrt-ovpn-split-basic.sh (UPDATED!) * ddwrt-ovpn-split-advanced.sh (UPDATED!) * ddwrt-ovpn-client-killswitch.sh * ddwrt-ovpn-client-watchdog.sh * ddwrt-ovpn-remote-access.sh * ddwrt-ovpn-client-backup.sh * ddwrt-mount-usb-drives.sh * ddwrt-blacklist-domains.sh * ddwrt-wol-port-forward.sh * ddwrt-dns-monitor.sh (NEW!)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum