Hi! Tell me please, is there any capability in Linux to do a drop an initiation of external incoming network connections, but allowing same kind of traffic to external IP, when the connection was originated locally? Except Netfilter capabilities. Any kernel option in "/etc/sysctl.*" or anything else?
For example. An interface eth1 have external IP 1.2.3.4. Is there a way, other than Netfilter, to drop connections initiated by smth. like "curl 1.2.3.4" from neighbour computer, but accept when "curl 1.2.3.4" is done locally at the host?
I know how to do it with Netfilter/iptables/nftables rules. The question is about existence of other ways. May be kernel options and so on.
Thank you!
For example. An interface eth1 have external IP 1.2.3.4. Is there a way, other than Netfilter, to drop connections initiated by smth. like "curl 1.2.3.4" from neighbour computer, but accept when "curl 1.2.3.4" is done locally at the host?
I know how to do it with Netfilter/iptables/nftables rules. The question is about existence of other ways. May be kernel options and so on.
Thank you!