summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_REJECT.txlate
blob: 022166a66c08d3785f57e559e88bfdf0437b9fb6 (plain)
1
2
3
4
5
6
7
8
iptables-translate -A FORWARD -p TCP --dport 22 -j REJECT
nft 'add rule ip filter FORWARD tcp dport 22 counter reject'

iptables-translate -A FORWARD -p TCP --dport 22 -j REJECT --reject-with icmp-net-unreachable
nft 'add rule ip filter FORWARD tcp dport 22 counter reject with icmp type net-unreachable'

iptables-translate -A FORWARD -p TCP --dport 22 -j REJECT --reject-with tcp-reset
nft 'add rule ip filter FORWARD tcp dport 22 counter reject with tcp reset'