[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
|
|
Subscribe / Log in / New account

Bpfilter (and user-mode blobs) for 4.18

Bpfilter (and user-mode blobs) for 4.18

Posted Dec 9, 2019 14:03 UTC (Mon) by sofardware (guest, #135967)
Parent article: Bpfilter (and user-mode blobs) for 4.18

I used Linux5.4.0,bpfilter and bpfilter_umh was installed and started,when iptables rule was created ok, but there is no xdp program for this rule with "bpf-tool p" commond,why ?
[root@localhost linux-5.4]# lsmod |grep bpfilter
bpfilter 24576 0
[root@localhost linux-5.4]# ps -aux | grep umh
root 14830 0.0 0.0 4224 664 ? S 16:18 0:00 bpfilter_umh

[root@localhost linux-5.4]# iptables -t filter -A INPUT -i lo -s 127.0.0.2/32 -d 127.0.0.1/32 -j DROP
[root@localhost linux-5.4]# iptables -nvL
Chain INPUT (policy ACCEPT 29 packets, 2057 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- lo * 127.0.0.2 127.0.0.1

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 16 packets, 1496 bytes)
pkts bytes target prot opt in out source destination
[root@localhost linux-5.4]# bpftool p
[root@localhost linux-5.4]#


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds