• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1iptables-translate -A INPUT -p dccp -m dccp --sport 100
2nft add rule ip filter INPUT dccp sport 100 counter
3
4iptables-translate -A INPUT -p dccp -m dccp --dport 100:200
5nft add rule ip filter INPUT dccp dport 100-200 counter
6
7iptables-translate -A INPUT -p dccp -m dccp ! --dport 100
8nft add rule ip filter INPUT dccp dport != 100 counter
9
10iptables-translate -A INPUT -p dccp -m dccp --dccp-types CLOSE
11nft add rule ip filter INPUT dccp type close counter
12
13iptables-translate -A INPUT -p dccp -m dccp --dccp-types INVALID
14nft add rule ip filter INPUT dccp type 10-15 counter
15
16iptables-translate -A INPUT -p dccp -m dccp --dport 100 --dccp-types REQUEST,RESPONSE,DATA,ACK,DATAACK,CLOSEREQ,CLOSE,SYNC,SYNCACK,INVALID
17nft add rule ip filter INPUT dccp dport 100 dccp type {request, response, data, ack, dataack, closereq, close, sync, syncack, 10-15} counter
18
19iptables-translate -A INPUT -p dccp -m dccp --sport 200 --dport 100
20nft add rule ip filter INPUT dccp sport 200 dccp dport 100 counter
21