I have had alot of success with the below but there must be a better way, using ipset somehow?
This seems a bit messy to me and I don't want all of a devices traffic redirected.
Code:
iptables -t mangle -A PREROUTING -d play.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -i br0 -p tcp --dport 5228 -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d r18.sn-aigllnly.c.android.clients.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d r18---sn-aigllnly.c.android.clients.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d android.l.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d clients.l.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d android.l.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d wallet.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d checkout.l.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d google.co.uk -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d www.google.co.uk -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d www.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d android.clients.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d 216.239.32.20 -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d www4.l.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d clients1.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d s2.googleusercontent.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d googlehosted.l.googleusercontent.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d clients4.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d www3.l.google.com -j MARK --set-mark 10
iptables -t mangle -A PREROUTING -d plus.google.com -j MARK --set-mark 10
This seems a bit messy to me and I don't want all of a devices traffic redirected.