forked from berthubert/googerteller
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3c68c0
commit 1ccb326
Showing
3 changed files
with
61 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ CMakeCache.txt | |
CMakeFiles | ||
Makefile | ||
cmake_install.cmake | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
ipset create google-services hash:net | ||
for a in $(cat goog-cloud-prefixes.txt) | ||
do | ||
ipset add google-services $a nomatch | ||
done | ||
for a in $(cat goog-prefixes.txt) | ||
do | ||
ipset add google-services $a | ||
done | ||
|
||
ipset create google-services6 hash:net family inet6 | ||
for a in $(cat goog-cloud-prefixes6.txt) | ||
do | ||
ipset add google-services6 $a nomatch | ||
done | ||
for a in $(cat goog-prefixes6.txt) | ||
do | ||
ipset add google-services6 $a | ||
done | ||
iptables -I OUTPUT -m set --match-set google-services dst -j NFLOG --nflog-group 20 | ||
ip6tables -I OUTPUT -m set --match-set google-services6 dst -j NFLOG --nflog-group 20 | ||
|