Does Ubuntu now use bpfilter or netfilter?











up vote
0
down vote

favorite












I'm trying to put together a firewall/router using netinstall of Ubuntu 18.10 with bpfilter. I know it's packaged by default with kernel >=4.18 these days, but I'm a little confused about how to specify it rather than netfilter.



Does anybody know?



For starters:



root@ubuntu1810:/home/localuser# uname -r
4.18.0-12-generic


And also :



root@ubuntu1810:/home/localuser# dmesg | grep bpfilter
[ 969.576326] bpfilter: Loaded bpfilter_umh pid 14099


Also just noticed this:



# lsmod | grep bp
bpfilter 16384 0


So that's good, but when I search for netfilter I get a lot of /proc sources



root@ubuntu1810:/home/localuser# find / -name netfilter
/usr/include/linux/netfilter
/usr/src/linux-headers-4.18.0-12/include/linux/netfilter
/usr/src/linux-headers-4.18.0-12/include/net/netfilter
/usr/src/linux-headers-4.18.0-12/include/uapi/linux/netfilter
/usr/src/linux-headers-4.18.0-12/net/ipv6/netfilter
/usr/src/linux-headers-4.18.0-12/net/bridge/netfilter
/usr/src/linux-headers-4.18.0-12/net/ipv4/netfilter
/usr/src/linux-headers-4.18.0-12/net/netfilter
/usr/src/linux-headers-4.18.0-12/net/decnet/netfilter
/usr/src/linux-headers-4.18.0-12-generic/include/config/netfilter
/proc/sys/net/netfilter
/proc/1/task/1/net/netfilter
/proc/1/net/netfilter
/proc/2/task/2/net/netfilter
/proc/2/net/netfilter
/proc/3/task/3/net/netfilter
/proc/3/net/netfilter
/proc/14462/task/14462/net/netfilter
/proc/14462/net/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/ipv6/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/bridge/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/ipv4/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/decnet/netfilter


but then also I can find: (although no /proc)



root@ubuntu1810:/home/localuser# find / -name bpfilter
/sys/module/bpfilter
/usr/src/linux-headers-4.18.0-12/net/ipv4/bpfilter
/usr/src/linux-headers-4.18.0-12/net/bpfilter
/usr/src/linux-headers-4.18.0-12-generic/include/config/bpfilter
/lib/modules/4.18.0-12-generic/kernel/net/bpfilter


And also, if I run iptables rules these should control whatever firewall is running, correct? I'm setting up csf with webmin.



Can anybody clear this up for me please? Thanks!










share|improve this question
























  • Well, I think I may have answered my own question through research. From what I gleam from many articles, 1) bpfilter is included in the kernel and runs, but does not currently have general functionality to any appreciable degree as of 4.18, and 2) netfilter is still included as the default kernel firewall along with iptables rules compatibility --- Please correct me if I'm wrong!
    – AveryFreeman
    Dec 9 at 21:30















up vote
0
down vote

favorite












I'm trying to put together a firewall/router using netinstall of Ubuntu 18.10 with bpfilter. I know it's packaged by default with kernel >=4.18 these days, but I'm a little confused about how to specify it rather than netfilter.



Does anybody know?



For starters:



root@ubuntu1810:/home/localuser# uname -r
4.18.0-12-generic


And also :



root@ubuntu1810:/home/localuser# dmesg | grep bpfilter
[ 969.576326] bpfilter: Loaded bpfilter_umh pid 14099


Also just noticed this:



# lsmod | grep bp
bpfilter 16384 0


So that's good, but when I search for netfilter I get a lot of /proc sources



root@ubuntu1810:/home/localuser# find / -name netfilter
/usr/include/linux/netfilter
/usr/src/linux-headers-4.18.0-12/include/linux/netfilter
/usr/src/linux-headers-4.18.0-12/include/net/netfilter
/usr/src/linux-headers-4.18.0-12/include/uapi/linux/netfilter
/usr/src/linux-headers-4.18.0-12/net/ipv6/netfilter
/usr/src/linux-headers-4.18.0-12/net/bridge/netfilter
/usr/src/linux-headers-4.18.0-12/net/ipv4/netfilter
/usr/src/linux-headers-4.18.0-12/net/netfilter
/usr/src/linux-headers-4.18.0-12/net/decnet/netfilter
/usr/src/linux-headers-4.18.0-12-generic/include/config/netfilter
/proc/sys/net/netfilter
/proc/1/task/1/net/netfilter
/proc/1/net/netfilter
/proc/2/task/2/net/netfilter
/proc/2/net/netfilter
/proc/3/task/3/net/netfilter
/proc/3/net/netfilter
/proc/14462/task/14462/net/netfilter
/proc/14462/net/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/ipv6/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/bridge/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/ipv4/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/decnet/netfilter


but then also I can find: (although no /proc)



root@ubuntu1810:/home/localuser# find / -name bpfilter
/sys/module/bpfilter
/usr/src/linux-headers-4.18.0-12/net/ipv4/bpfilter
/usr/src/linux-headers-4.18.0-12/net/bpfilter
/usr/src/linux-headers-4.18.0-12-generic/include/config/bpfilter
/lib/modules/4.18.0-12-generic/kernel/net/bpfilter


And also, if I run iptables rules these should control whatever firewall is running, correct? I'm setting up csf with webmin.



Can anybody clear this up for me please? Thanks!










share|improve this question
























  • Well, I think I may have answered my own question through research. From what I gleam from many articles, 1) bpfilter is included in the kernel and runs, but does not currently have general functionality to any appreciable degree as of 4.18, and 2) netfilter is still included as the default kernel firewall along with iptables rules compatibility --- Please correct me if I'm wrong!
    – AveryFreeman
    Dec 9 at 21:30













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to put together a firewall/router using netinstall of Ubuntu 18.10 with bpfilter. I know it's packaged by default with kernel >=4.18 these days, but I'm a little confused about how to specify it rather than netfilter.



Does anybody know?



For starters:



root@ubuntu1810:/home/localuser# uname -r
4.18.0-12-generic


And also :



root@ubuntu1810:/home/localuser# dmesg | grep bpfilter
[ 969.576326] bpfilter: Loaded bpfilter_umh pid 14099


Also just noticed this:



# lsmod | grep bp
bpfilter 16384 0


So that's good, but when I search for netfilter I get a lot of /proc sources



root@ubuntu1810:/home/localuser# find / -name netfilter
/usr/include/linux/netfilter
/usr/src/linux-headers-4.18.0-12/include/linux/netfilter
/usr/src/linux-headers-4.18.0-12/include/net/netfilter
/usr/src/linux-headers-4.18.0-12/include/uapi/linux/netfilter
/usr/src/linux-headers-4.18.0-12/net/ipv6/netfilter
/usr/src/linux-headers-4.18.0-12/net/bridge/netfilter
/usr/src/linux-headers-4.18.0-12/net/ipv4/netfilter
/usr/src/linux-headers-4.18.0-12/net/netfilter
/usr/src/linux-headers-4.18.0-12/net/decnet/netfilter
/usr/src/linux-headers-4.18.0-12-generic/include/config/netfilter
/proc/sys/net/netfilter
/proc/1/task/1/net/netfilter
/proc/1/net/netfilter
/proc/2/task/2/net/netfilter
/proc/2/net/netfilter
/proc/3/task/3/net/netfilter
/proc/3/net/netfilter
/proc/14462/task/14462/net/netfilter
/proc/14462/net/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/ipv6/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/bridge/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/ipv4/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/decnet/netfilter


but then also I can find: (although no /proc)



root@ubuntu1810:/home/localuser# find / -name bpfilter
/sys/module/bpfilter
/usr/src/linux-headers-4.18.0-12/net/ipv4/bpfilter
/usr/src/linux-headers-4.18.0-12/net/bpfilter
/usr/src/linux-headers-4.18.0-12-generic/include/config/bpfilter
/lib/modules/4.18.0-12-generic/kernel/net/bpfilter


And also, if I run iptables rules these should control whatever firewall is running, correct? I'm setting up csf with webmin.



Can anybody clear this up for me please? Thanks!










share|improve this question















I'm trying to put together a firewall/router using netinstall of Ubuntu 18.10 with bpfilter. I know it's packaged by default with kernel >=4.18 these days, but I'm a little confused about how to specify it rather than netfilter.



Does anybody know?



For starters:



root@ubuntu1810:/home/localuser# uname -r
4.18.0-12-generic


And also :



root@ubuntu1810:/home/localuser# dmesg | grep bpfilter
[ 969.576326] bpfilter: Loaded bpfilter_umh pid 14099


Also just noticed this:



# lsmod | grep bp
bpfilter 16384 0


So that's good, but when I search for netfilter I get a lot of /proc sources



root@ubuntu1810:/home/localuser# find / -name netfilter
/usr/include/linux/netfilter
/usr/src/linux-headers-4.18.0-12/include/linux/netfilter
/usr/src/linux-headers-4.18.0-12/include/net/netfilter
/usr/src/linux-headers-4.18.0-12/include/uapi/linux/netfilter
/usr/src/linux-headers-4.18.0-12/net/ipv6/netfilter
/usr/src/linux-headers-4.18.0-12/net/bridge/netfilter
/usr/src/linux-headers-4.18.0-12/net/ipv4/netfilter
/usr/src/linux-headers-4.18.0-12/net/netfilter
/usr/src/linux-headers-4.18.0-12/net/decnet/netfilter
/usr/src/linux-headers-4.18.0-12-generic/include/config/netfilter
/proc/sys/net/netfilter
/proc/1/task/1/net/netfilter
/proc/1/net/netfilter
/proc/2/task/2/net/netfilter
/proc/2/net/netfilter
/proc/3/task/3/net/netfilter
/proc/3/net/netfilter
/proc/14462/task/14462/net/netfilter
/proc/14462/net/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/ipv6/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/bridge/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/ipv4/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/netfilter
/lib/modules/4.18.0-12-generic/kernel/net/decnet/netfilter


but then also I can find: (although no /proc)



root@ubuntu1810:/home/localuser# find / -name bpfilter
/sys/module/bpfilter
/usr/src/linux-headers-4.18.0-12/net/ipv4/bpfilter
/usr/src/linux-headers-4.18.0-12/net/bpfilter
/usr/src/linux-headers-4.18.0-12-generic/include/config/bpfilter
/lib/modules/4.18.0-12-generic/kernel/net/bpfilter


And also, if I run iptables rules these should control whatever firewall is running, correct? I'm setting up csf with webmin.



Can anybody clear this up for me please? Thanks!







networking kernel firewall






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 9 at 3:50









muru

135k19289490




135k19289490










asked Dec 8 at 22:14









AveryFreeman

389310




389310












  • Well, I think I may have answered my own question through research. From what I gleam from many articles, 1) bpfilter is included in the kernel and runs, but does not currently have general functionality to any appreciable degree as of 4.18, and 2) netfilter is still included as the default kernel firewall along with iptables rules compatibility --- Please correct me if I'm wrong!
    – AveryFreeman
    Dec 9 at 21:30


















  • Well, I think I may have answered my own question through research. From what I gleam from many articles, 1) bpfilter is included in the kernel and runs, but does not currently have general functionality to any appreciable degree as of 4.18, and 2) netfilter is still included as the default kernel firewall along with iptables rules compatibility --- Please correct me if I'm wrong!
    – AveryFreeman
    Dec 9 at 21:30
















Well, I think I may have answered my own question through research. From what I gleam from many articles, 1) bpfilter is included in the kernel and runs, but does not currently have general functionality to any appreciable degree as of 4.18, and 2) netfilter is still included as the default kernel firewall along with iptables rules compatibility --- Please correct me if I'm wrong!
– AveryFreeman
Dec 9 at 21:30




Well, I think I may have answered my own question through research. From what I gleam from many articles, 1) bpfilter is included in the kernel and runs, but does not currently have general functionality to any appreciable degree as of 4.18, and 2) netfilter is still included as the default kernel firewall along with iptables rules compatibility --- Please correct me if I'm wrong!
– AveryFreeman
Dec 9 at 21:30















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099451%2fdoes-ubuntu-now-use-bpfilter-or-netfilter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099451%2fdoes-ubuntu-now-use-bpfilter-or-netfilter%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局