I can make SSH connection with a "All IP is matched" rules in nft:
table ip filter {
chain INPUT {
type filter hook input priority 0; policy drop;
iifname "eth0" ip saddr { 0.0.0.0-255.255.255.255 } accept
}
chain FORWARD {
type filter hook forward priority 0; policy accept;
}
chain OUTPUT {
type filter hook output priority 0; policy accept;
}
}
SSH tunnel works without above ruleset, but not work when nft ruleset presents:
Question: What is the minimal rule to make SSH tunnel works while keeping the input policy "drop"?