Similar to gamemann/XDP-Firewall#4 , I put together a quickstart but it isn't working as expected:
apt -t buster-backports install -y -qq dnsutils libsodium-dev llvm clang libelf-dev libconfig-dev cmake git build-essential
git clone --recursive https://github.com/Barricade-FW/Firewall.git
cd Firewall
make && make install
cd ..
/sbin/ldconfig -v
EXAMPLEIP=$(dig +short example.com)
cat > /etc/bfw/bfw.conf <<EOF
{
"interface": "eth0",
"updatetime": 15,
"stats": true,
"filters": [
{
"enabled": true,
"dstip": "${EXAMPLEIP}",
"action": 0
}
]
}
EOF
service bfw start && service bfw status
Service appears to be running okay. I then run curl example.com expecting it to be blocked but it loads fine.
I've also tried
cat > /etc/bfw/bfw.conf <<EOF
{
"interface": "eth0",
"updatetime": 15,
"stats": true,
"filters": [
{
"enabled": true,
"dstip": "${EXAMPLEIP}",
"action": 0,
"tcpopts": [
{
"enabled": true
}
]
}
]
}
EOF
but it gives me the same result
Similar to gamemann/XDP-Firewall#4 , I put together a quickstart but it isn't working as expected:
Service appears to be running okay. I then run
curl example.comexpecting it to be blocked but it loads fine.I've also tried
but it gives me the same result