Page 1 of 1

Limit outbound traffic from a webcam to the local network

Posted: Mon Oct 19, 2015 9:05 pm
by rainkinz
Hi,

Could someone point me in the right direction for how I might stop any outbound traffic from a webcam to the internet? i.e. any packets from the webcam should only be routable to the local network or VPN.

Thanks

Re: Limit outbound traffic from a webcam to the local networ

Posted: Mon Oct 19, 2015 9:07 pm
by Lantis
Does the webcam have an IP address? If so look up iptables and the openwrt firewall and create a rule.
If it doesn't, you still want to do a similar thing but matching he traffic becomes harder.

Re: Limit outbound traffic from a webcam to the local networ

Posted: Mon Oct 19, 2015 9:23 pm
by rainkinz
So something like this where 192.168.1.111 was the IP address of the webcam and eth0.2 is the wan device?

Code: Select all

iptables -I FORWARD -s 192.168.1.111 -o eth0.2 -j DROP
Also, I'd add this to /etc/firewall.user right?

Thanks for your time.

Re: Limit outbound traffic from a webcam to the local networ

Posted: Mon Oct 19, 2015 9:44 pm
by Lantis
That looks right to me, but I'm not very good with firewall rules sorry!

Oh and you'll need to do a firewall restart after adding the rule.
/usr/lib/gargoyle/restart_firewall.sh

Re: Limit outbound traffic from a webcam to the local networ

Posted: Mon Oct 19, 2015 9:47 pm
by rainkinz
LOL, neither am I which is why I'm asking :-) Will give it a try. Obviously a bit hard to test, but might try adding logging to the rule so that if it is ever detected I can hunt round to see what caused it (phone home or something else).

Thanks again.

Re: Limit outbound traffic from a webcam to the local networ

Posted: Mon Oct 19, 2015 9:54 pm
by Lantis
Custom firewall rules are more of an openwrt thing. If you find you can't get the help you need here definitely have a search on their forums or their wiki. If it applies to openwrt it applies to gargolye (in general).

Also I edited my last post to mention that you need to restart the firewall after adding the rule.

Re: Limit outbound traffic from a webcam to the local networ

Posted: Tue Nov 10, 2015 12:34 pm
by shm0
Isnt this possible through the web interface? Under Firewall-> Restrictions

Re: Limit outbound traffic from a webcam to the local networ

Posted: Sat Nov 14, 2015 6:50 pm
by ispyisail
maybe

Image

Re: Limit outbound traffic from a webcam to the local networ

Posted: Sun Nov 15, 2015 3:48 am
by darkfibre
Does the webcam have an interface where you can set the address and gateway on it manually? No correct gateway, no outside world?