libnfnetlink - Low-level library for netfilter kernel/userspace communication ChangeLog

HOWTO


# libnfnetlink
# ============
# Below I include libnfnetlink and the libnetlink_* libraries

# If you want to uninstall anything, or remove files from an old version
# before installing a new one, skip down to the bottom


# libnfnetlink 1.0.0
# ==================
# Prerequisites:
# Linux kernel >= 2.6.14

# Get it
cd
test -f installed/libnfnetlink-1.0.0.tar.bz2 &&
mv installed/libnfnetlink-1.0.0.tar.bz2 .
test ! -f libnfnetlink-1.0.0.tar.bz2 &&
wget http://www.netfilter.org/projects/libnfnetlink/files/\
libnfnetlink-1.0.0.tar.bz2

# Verify tarball w/ md5sum:
echo "016fdec8389242615024c529acc1adb8  libnfnetlink-1.0.0.tar.bz2" | \
md5sum -c

# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "892ca50366702ed9fa36268a17226f328aa1d7a5  libnfnetlink-1.0.0.tar.\
bz2" | sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 2D0987E6 > /dev/null 2>&1 || gpg --recv-keys 2D0987E6 ) &&
wget -nc http://www.netfilter.org/projects/libnfnetlink/files/\
libnfnetlink-1.0.0.tar.bz2.sig &&
  gpg --verify libnfnetlink-1.0.0.tar.bz2.sig &&
   rm libnfnetlink-1.0.0.tar.bz2.sig

# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libnfnetlink-*" -exec rm -r {} \;
tar xjvf ~/libnfnetlink-1.0.0.tar.bz2
cd libnfnetlink-1.0.0
test $UID = 0 && chown -R root:root .

# Configure and build it
./configure
make

# Become root to install it
su

# Install it
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

# Save the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/libnfnetlink-*.tar.*
mv libnfnetlink-1.0.0.tar.bz2 installed/


# libnetfilter_conntrack 1.0.0
# ============================
# Prerequisites:
# pkg-config
# libnfnetlink (above)

cd
test -f installed/libnetfilter_conntrack-1.0.0.tar.bz2 &&
mv installed/libnetfilter_conntrack-1.0.0.tar.bz2 .
test ! -f libnetfilter_conntrack-1.0.0.tar.bz2 &&
wget ftp://ftp.netfilter.org/pub/libnetfilter_conntrack/\
libnetfilter_conntrack-1.0.0.tar.bz2

# Verify tarball w/ md5sum:
echo "bc4638602d0e8dd144a11e510e2c236b  libnetfilter_conntrack-1.0.0.tar.\
bz2" | md5sum -c

# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "74d3574caed5d799f2ad4fe0bbc5ae4bd74580ad  libnetfilter_conntrack-1.\
0.0.tar.bz2" | sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys BB5F58CC > /dev/null 2>&1 || gpg --recv-keys BB5F58CC ) &&
wget -nc ftp://ftp.netfilter.org/pub/libnetfilter_conntrack/\
libnetfilter_conntrack-1.0.0.tar.bz2.sig &&
gpg --verify libnetfilter_conntrack-1.0.0.tar.bz2.sig &&
  rm libnetfilter_conntrack-1.0.0.tar.bz2.sig

# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libnetfilter_conntrack-*" -exec rm -r {} \;
tar xjvf ~/libnetfilter_conntrack-1.0.0.tar.bz2
cd libnetfilter_conntrack-1.0.0
test $UID = 0 && chown -R root:root .

# Configure and build it
./configure
make

# Become root to install it
su

# Install it
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

# Save the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/libnetfilter_conntrack-*.tar.*
mv libnetfilter_conntrack-1.0.0.tar.bz2 installed/


# libnetfilter_log 1.0.1
# ======================
# Prerequisites:
# pkg-config
# libnfnetlink (above)

# Get it
cd
test -f installed/libnetfilter_log-1.0.1.tar.bz2 &&
mv installed/libnetfilter_log-1.0.1.tar.bz2 .
test ! -f libnetfilter_log-1.0.1.tar.bz2 &&
wget ftp://ftp.netfilter.org/pub/libnetfilter_log/\
libnetfilter_log-1.0.1.tar.bz2

# Verify tarball w/ md5sum:
echo "2a4bb0654ae675a52d2e8d1c06090b94  libnetfilter_log-1.0.1.tar.bz2" | \
md5sum -c

# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "0b95bcb1ad15eea906fa3607cd6c2290bd48d5bd  libnetfilter_log-1.0.1.\
tar.bz2" | sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys BB5F58CC > /dev/null 2>&1 || gpg --recv-keys BB5F58CC ) &&
wget -nc ftp://ftp.netfilter.org/pub/libnetfilter_log/\
libnetfilter_log-1.0.1.tar.bz2.sig &&
  gpg --verify libnetfilter_log-1.0.1.tar.bz2.sig &&
   rm libnetfilter_log-1.0.1.tar.bz2.sig

# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libnetfilter_log-*" -exec rm -r {} \;
tar xjvf ~/libnetfilter_log-1.0.1.tar.bz2
cd libnetfilter_log-1.0.1
test $UID = 0 && chown -R root:root .

# Configure and build it
./configure
make

# Become root to install it
su

# Install it
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

# Keep the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/libnetfilter_log-*.tar.*
mv libnetfilter_log-1.0.1.tar.bz2 installed/


# libnetfilter_queue 0.0.11
# ========================
# Prerequisites:
# pkg-config
# libnfnetlink (above)

cd
test -f installed/libnetfilter_queue-1.0.1.tar.bz2 &&
mv installed/libnetfilter_queue-1.0.1.tar.bz2 .
test ! -f libnetfilter_queue-1.0.1.tar.bz2 &&
wget ftp://ftp.netfilter.org/pub/libnetfilter_queue/\
libnetfilter_queue-1.0.1.tar.bz2

# Verify tarball w/ md5sum:
echo "08b968cb2d36c24deb7f26a69f5d8602  libnetfilter_queue-1.0.1.tar.bz2" \
| md5sum -c

# Verify tarball w/ sha1sum:
# (this came from my gpg-verified tarball)
echo "7f27694e7150c5eec38c28b55fe3671b8ed0852b  libnetfilter_queue-1.0.1.\
tar.bz2" | sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys BB5F58CC > /dev/null 2>&1 || gpg --recv-keys BB5F58CC ) &&
wget -nc ftp://ftp.netfilter.org/pub/libnetfilter_queue/\
libnetfilter_queue-1.0.1.tar.bz2.sig &&
  gpg --verify libnetfilter_queue-1.0.1.tar.bz2.sig &&
   rm libnetfilter_queue-1.0.1.tar.bz2.sig

# Extract the tarball
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libnetfilter_queue-*" -exec rm -r {} \;
tar xjvf ~/libnetfilter_queue-1.0.1.tar.bz2
cd libnetfilter_queue-1.0.1
test $UID = 0 && chown -R root:root .

# Configure and build it
./configure
make

# Become root to install it
su

# Install it
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

# Keep the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/libnetfilter_queue-*.tar.*
mv libnetfilter_queue-1.0.1.tar.bz2 installed/


# You can just run 'make uninstall' (as root) in any of the source
# directories, the rest is to make extra sure that it's all gone

# If you ever want to uninstall libnfnetlink, this should do it:
cd
su
test -d src/libnfnetlink-* && ( cd src/libnfnetlink-* ; make uninstall )
test -d /usr/local/include/libnfnetlink &&
rm -r /usr/local/include/libnfnetlink
rm -f /usr/local/lib/libnfnetlink.*
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libnfnetlink-*" -exec rm -r {} \;
rm -f ~/installed/libnfnetlink-*.tar.*

# If you ever want to uninstall libnetfilter_conntrack, this should do it:
cd
su
test -d src/libnetfilter_conntrack-* &&
( cd src/libnetfilter_conntrack-* ; make uninstall )
rm -f /usr/local/bin/ctnl_test /usr/local/lib/libnetfilter_conntrack.*
test -d /usr/local/include/libnetfilter_conntrack &&
rm -r /usr/local/include/libnetfilter_conntrack
test -d /usr/local/lib/libnetfilter_conntrack &&
rm -r /usr/local/lib/libnetfilter_conntrack
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libnetfilter_conntrack-*" -exec rm -r {} \;
rm -f ~/installed/libnetfilter_conntrack-*.tar.*

# If you ever want to uninstall libnetfilter_log, this should do it:
cd
su
test -d src/libnetfilter_log-* &&
( cd src/libnetfilter_log-* ; make uninstall )
test -d /usr/local/include/libnetfilter_log &&
rm -r /usr/local/include/libnetfilter_log
( cd /usr/local/lib ; rm -f libnetfilter_log.* libnetfilter_log_libipulog.* )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libnetfilter_log-*" -exec rm -r {} \;
rm -f ~/installed/libnetfilter_log-*.tar.*

# If you ever want to uninstall libnetfilter_queue, this should do it:
cd
su
test -d src/libnetfilter_queue-* &&
( cd src/libnetfilter_queue-* ; make uninstall )
test -d /usr/local/include/libnetfilter_queue &&
rm -r /usr/local/include/libnetfilter_queue
( cd /usr/local/lib
rm -f libnetfilter_queue.* libnetfilter_queue_libipq.* )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libnetfilter_queue-*" -exec rm -r {} \;
rm -f ~/installed/libnetfilter_queue-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2012-03-29 11:06pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]