search for: l4proto

Displaying 20 results from an estimated 27 matches for "l4proto".

2019 Oct 15
2
Attempting to use tproxy on Centos 8 fails with 'No such file or directory'
...getting tproxy working with NFTables on Centos 8. >From https://www.kernel.org/doc/Documentation/networking/tproxy.txt, It should be a matter of: # nft add table filter # nft add chain filter divert "{ type filter hook prerouting priority -150; }" # nft add rule filter divert meta l4proto tcp socket transparent 1 meta mark set 1 accept But when running the 3rd line (add rule), I get root at kryptonite [/lib/modules/4.18.0-80.11.2.el8_0.x86_64]# nft add rule filter divert meta l4proto tcp socket transparent 1 meta mark set 1 accept Error: Could not process rule: No such file or di...
2018 Dec 19
5
[Bug 1310] New: syntax issue with tproxy
...Component: nft Assignee: pablo at netfilter.org Reporter: arturo at debian.org Not sure if really a syntax issue or a documentation issue. Original Debian bug: https://bugs.debian.org/916863 >> >> # nft add rule inet filter divert 'ip6 daddr ::/0 meta l4proto tcp tproxy to :2000 meta mark set 1 accept' >> Error: syntax error, unexpected to >> add rule inet filter divert ip6 daddr ::/0 meta l4proto tcp tproxy to :2000 meta mark set 1 accept >> ^^ >> >> Re...
2019 Oct 15
1
Attempting to use tproxy on Centos 8 fails with 'No such file or directory'
...https://www.kernel.org/doc/Documentation/networking/tproxy.txt, >> >> It should be a matter of: >> >> # nft add table filter >> # nft add chain filter divert "{ type filter hook prerouting priority >> -150; }" >> # nft add rule filter divert meta l4proto tcp socket transparent 1 >> meta mark set 1 accept >> >> But when running the 3rd line (add rule), I get >> >> root at kryptonite [/lib/modules/4.18.0-80.11.2.el8_0.x86_64]# nft add >> rule filter divert meta l4proto tcp socket transparent 1 meta mark set >&gt...
2019 Oct 15
0
Attempting to use tproxy on Centos 8 fails with 'No such file or directory'
...on Centos 8. > > From https://www.kernel.org/doc/Documentation/networking/tproxy.txt, > > It should be a matter of: > > # nft add table filter > # nft add chain filter divert "{ type filter hook prerouting priority > -150; }" > # nft add rule filter divert meta l4proto tcp socket transparent 1 > meta mark set 1 accept > > But when running the 3rd line (add rule), I get > > root at kryptonite [/lib/modules/4.18.0-80.11.2.el8_0.x86_64]# nft add > rule filter divert meta l4proto tcp socket transparent 1 meta mark set > 1 accept > Error: Co...
2023 Jun 02
3
[Bug 1686] New: Transparent proxy support requires transport protocol match
...y: P5 Component: nft Assignee: pablo at netfilter.org Reporter: pablo at netfilter.org CC: me at black-desk.cn black_desk says: """ I wrote a nft script: ? cat test.nft table inet test { set protos { typeof meta l4proto; elements = { tcp, udp } } chain prerouting { type filter hook prerouting priority mangle; policy accept; meta l4proto @protos tproxy to :1088 } } when I pass it to nft: ? sudo nft -f ./test.nft ./test.nft:8:38-52: Error: Tra...
2019 Oct 07
4
[Bug 1368] New: The "meta's"
...ed, assured, confirmed } counter accept ct state { invalid, untracked } counter jump global_drop counter drop chain input { type filter hook input priority 0; policy drop; jump global_dns meta protocol { ip, ip6 } saddr { @dns4, @dns6 } daddr { $myIPv4, myIPv6 } jump global_dns meta l4proto { tcp, udp } @ht,16,16 @dns jump global_dns meta l4proto { tcp, udp } @ht,16,16 { http, https, proxy, @smb, }jump global } } The above is how I think it should work but it doesn't. Reference "https://www.netfilter.org/projects/nftables/manpage.html" Reference "https://...
2024 Feb 28
3
[Bug 1738] New: iptables unit test suite fails extensions/libip6t_mh.txlate
...est log Hi, the iptables unit test suite has a failing test on all architectures. I'm observing this behavior on both Gentoo and Arch kernels as well. extensions/libip6t_mh.txlate: Fail src: ip6tables-translate -A INPUT -p mh --mh-type 1 -j ACCEPT exp: nft 'add rule ip6 filter INPUT meta l4proto mobility-header mh type 1 counter accept' res: nft 'add rule ip6 filter INPUT meta l4proto 135 mh type 1 counter accept' extensions/libip6t_mh.txlate: Fail src: ip6tables-translate -A INPUT -p mh --mh-type 1:3 -j ACCEPT exp: nft 'add rule ip6 filter INPUT meta l4proto mobility-head...
2020 Apr 10
15
[Bug 1422] New: iptables-nft fails to check / delete rules in raw table
https://bugzilla.netfilter.org/show_bug.cgi?id=1422 Bug ID: 1422 Summary: iptables-nft fails to check / delete rules in raw table Product: iptables Version: 1.6.x Hardware: x86_64 OS: Debian GNU/Linux Status: NEW Severity: major Priority: P5 Component: iptables
2018 Mar 31
2
[Bug 1238] New: meta limits protocols when it shouldn't
...x86_64 OS: Fedora Status: NEW Severity: minor Priority: P5 Component: nft Assignee: pablo at netfilter.org Reporter: ian.kumlien at gmail.com Reading about the raw payload, which has the examples: inet filter input meta l4proto {tcp, udp} @th,16,16 { dns, http } and input meta iifname enp2s0 arp ptype 0x0800 arp htype 1 arp hlen 6 arp plen 4 @nh,192,32 0xc0a88f10 @nh,144,48 set 0x112233445566 accept Makes you think that something like: meta l4proto udp @th,64,4 0x0 @th,16,16 set 5301 accept should work for detecting a...
2020 Jun 18
10
[Bug 1434] New: Usability improvements, enabling creation of complex firewalls
https://bugzilla.netfilter.org/show_bug.cgi?id=1434 Bug ID: 1434 Summary: Usability improvements, enabling creation of complex firewalls Product: nftables Version: unspecified Hardware: x86_64 OS: All Status: NEW Severity: enhancement Priority: P5 Component: nft
2016 Feb 16
0
[Bug 1021] iptables -j CT --timeout policy
...ve v1.6.0 on Tue Feb 16 20:59:25 2016 *raw :PREROUTING ACCEPT [6:406] :OUTPUT ACCEPT [5:268] -A PREROUTING -p tcp -m tcp --dport 1416 -j CT --timeout test-tcp-2 -A PREROUTING -p tcp -m tcp --dport 1414 -j CT --timeout test-tcp COMMIT # nfct list timeout .test-tcp = { .l3proto = 2, .l4proto = 6, .policy = { .SYN_SENT = 120, .SYN_RECV = 60, .ESTABLISHED = 100, .FIN_WAIT = 120, .CLOSE_WAIT = 10, .LAST_ACK = 30, .TIME_WAIT = 120, .CLOSE = 10,...
2020 Sep 09
5
[Bug 1463] New: nft --json table list ruleset crashes
https://bugzilla.netfilter.org/show_bug.cgi?id=1463 Bug ID: 1463 Summary: nft --json table list ruleset crashes Product: nftables Version: unspecified Hardware: All OS: Debian GNU/Linux Status: NEW Severity: major Priority: P5 Component: nft Assignee: pablo at netfilter.org
2016 Jun 07
5
[Bug 1073] New: inet-service vs icmp conflict
https://bugzilla.netfilter.org/show_bug.cgi?id=1073 Bug ID: 1073 Summary: inet-service vs icmp conflict Product: nftables Version: unspecified Hardware: x86_64 OS: All Status: NEW Severity: normal Priority: P5 Component: nft Assignee: pablo at netfilter.org Reporter:
2016 Mar 08
4
[Bug 1057] New: Allow for multiple protocols to be specified in a rule
https://bugzilla.netfilter.org/show_bug.cgi?id=1057 Bug ID: 1057 Summary: Allow for multiple protocols to be specified in a rule Product: nftables Version: unspecified Hardware: x86_64 OS: All Status: NEW Severity: enhancement Priority: P5 Component: nft Assignee: pablo at
2017 Oct 12
0
[ANNOUNCE] nftables 0.8 release
...hecks is eq check src: add a comment wrt. reject dependency insertion netlink_delinearize: reject: remove dependency for tcp-resets tests: add ip reject with tcp and check for mark too payload: split ll proto dependency into helper src: allow update of net base w. meta l4proto icmpv6 src: ipv6: switch implicit dependencies to meta l4proto payload: enforce ip/ip6 protocol depending on icmp or icmpv6 tests: fix up meta l4proto change for ip6 family src: ip: switch implicit dependencies to meta l4proto too tests: fix up meta l4proto change for...
2020 Jan 30
2
[Bug 1402] New: Race errors with nft
...p dport 1024-65535 ip ttl 1 counter reject udp sport 1024-65535 udp dport 1024-65535 ip6 hoplimit 1 counter reject ip saddr @DROP-NETS-V4 counter drop ct state invalid drop ct state established,related accept iifname "lo" counter accept meta l4proto icmp counter accept meta l4proto ipv6-icmp counter accept tcp dport 22 accept } } ``` R2.tf ``` #!/usr/sbin/nft -f flush ruleset add table inet my-filter add set inet my-filter ALLOW_SSH_NET { type ipv4_addr; flags interval; elements={ 0.0.0.0/0 } } add chain in...
2019 Jun 19
2
[Bug 1344] New: Segmentation fault in nft add rule ip ipv4table ipv4chain-1 tcp sport { 12345-54321 }
...^^^^^^^^^ tcp sport { $12345-$54321 } Evaluate payload add rule ip ipv4table ipv4chain-1 tcp sport { 12345-54321 } ^^^^^^^^^ tcp sport Evaluate expression add rule ip ipv4table ipv4chain-1 tcp sport { 12345-54321 } ^^^^^^^^^ meta l4proto tcp Evaluate relational add rule ip ipv4table ipv4chain-1 tcp sport { 12345-54321 } ^^^^^^^^^ meta l4proto tcp Evaluate meta add rule ip ipv4table ipv4chain-1 tcp sport { 12345-54321 } ^^^^^^^^^ meta l4proto Evaluate value add r...
2023 Jul 27
0
[Bug 1501] issue with DNAT port range
...d more distributions is why I did this. > > Why would iptables not print anything? Any rule created with iptables-nft > will > be listed correctly by iptables-nft(-save). > > Cheers, Phil At the moment nft list ruleset prints: chain PREROUTING { meta l4proto tcp tcp dport 5500-5600 counter packets 14219 bytes 579188 dnat to 10.212.0.1:21500-21600;5500 } This rule was set by iptables-nft since nft does not support it. However if newer versions of nft will no longer print this since it is essentially wrong syntax I have no means to see that rule...
2023 Jul 27
0
[Bug 1501] issue with DNAT port range
...t; > Why would iptables not print anything? Any rule created with iptables-nft > > will > > be listed correctly by iptables-nft(-save). > > > > Cheers, Phil > > At the moment nft list ruleset prints: > > chain PREROUTING { > meta l4proto tcp tcp dport 5500-5600 counter packets 14219 > bytes 579188 dnat to 10.212.0.1:21500-21600;5500 > } > > This rule was set by iptables-nft since nft does not support it. > However if newer versions of nft will no longer print this since it is > essentially wrong syntax I...
2014 Apr 17
0
[ANNOUNCE] libnftnl 1.0.1 release
...le: add NFT_RULE_ATTR_USERDATA support examples: remove nft-rule-insert from Makefile.am src: fix bogus assertion for unset attributes include: add missing netfilter.h bump version to 1.0.1 Patrick McHardy (4): libnftables: add support for inet family and mete nfproto/l4proto expressions Merge branch 'next-3.14' of git.netfilter.org:libnftables into inet libnftables: replace netfilter.h by sanitized header expr/cmp: fix type size Tomasz Bursztyka (2): table: Add support for NFTA_TABLE_USE attribute build: Ensure pkg-config file pro...