netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Whitelist with domains that pulls stuff from other domains
@ 2014-04-21  4:53 Martin Braun
  2014-04-21 11:26 ` Joel Gerber
  2014-04-21 12:30 ` Jens Neu
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Braun @ 2014-04-21  4:53 UTC (permalink / raw)
  To: netfilter

Hi

I wanted to make a white list using the settings below.

<SNIP>
iptables -N wanout
iptables -I FORWARD -i `nvram get lan_ifname` -j wanout

iptables -I wanout -m mac --mac-source 01:26:f7:46:71:4b -j ACCEPT
iptables -I wanout -m mac --mac-source d2:37:b5:f2:39:f3 -j ACCEPT

iptables -I wanout -d gamepedia.com -j ACCEPT
iptables -I wanout -d toysrus.com -j ACCEPT

iptables -A wanout -j REJECT --reject-with icmp-proto-unreachable
</SNIP>

So the boxes with the MACs specified are exempt from blocking. The
domains "gamepedia.com" and "toysrus.com" are accesible to all.

But the problem is that those domains pulls stuff in from other
domains using <iframe> or something, which makes the IPTable block the
loading of the website to complete.

How do I deal with that in the best way? I don't want to look up
everything they pull in and white list that as well. Also it might
change.

Isn't there a way to say "accept all from this domain, even unrelated stuff"?

Kind regards.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-21 12:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-21  4:53 Whitelist with domains that pulls stuff from other domains Martin Braun
2014-04-21 11:26 ` Joel Gerber
2014-04-21 12:30 ` Jens Neu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).