Last active
November 6, 2016 04:42
-
-
Save deamwork/3edea41cadb67f6ec9ed5e8ba198836a to your computer and use it in GitHub Desktop.
Install Pcap_DNSProxy-0.4.7.7 for Debian 8.2
This file contains hidden or 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
# Install Pcap_DNSProxy-0.4.7.7 for Debian 8.2 | |
# For using iptables to limit DNS query, please visit http://falkhusemann.de/blog/2012/07/iptables-dns-query-limiting-with-burst-rate/ | |
# For increase limit of hitcount, please visit https://www.deamwork.com/archives/iptables-increase-hitcount-limit.orz6 | |
apt-get install g++ gcc bison m4 flex cmake automake autoconf libtool build-essential | |
wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz | |
wget http://www.tcpdump.org/release/libpcap-1.8.1.tar.gz.sig | |
wget http://www.tcpdump.org/tcpdump-workers.asc | |
gpg --import tcpdump-workers.asc | |
rm tcpdump-workers.asc | |
gpg libpcap-1.8.1.tar.gz.sig | |
tar zxvf libpcap-1.8.1.tar.gz | |
wget https://github.com/jedisct1/libsodium/releases/download/1.0.11/libsodium-1.0.11.tar.gz | |
tar zxvf libsodium-1.0.11.tar.gz | |
wget https://github.com/chengr28/Pcap_DNSProxy/archive/v0.4.7.7.tar.gz | |
tar zxvf pcap_dnsproxy-0.4.7.7.tar.gz | |
cd libpcap-1.8.1 | |
./configure | |
make | |
make install | |
cd .. | |
cd libsodium-1.0.11 | |
./autogen.sh | |
./configure | |
make | |
make install | |
cd .. | |
cd Pcap_DNSProxy-0.4.7.7/Source/Scripts | |
chmod 0755 *.sh | |
chmod +x *.sh | |
./CMake_Build.sh --enable-static | |
sed -i "s@ExecStart=@ExecStart=/root/Pcap_DNSProxy-0.4.7.7/Source/Release/Pcap_DNSProxy@g" /root/Pcap_DNSProxy-0.4.7.7/Source/Release/Pcap_DNSProxy.service | |
sed -i "s@WorkingDirectory=@WorkingDirectory=/root/Pcap_DNSProxy-0.4.7.7/Source/Release@g" /root/Pcap_DNSProxy-0.4.7.7/Source/Release/Pcap_DNSProxy.service | |
cd ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment