Skip to content

Quickstart #3

@mrbluecoat

Description

@mrbluecoat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions