I need someone who is expert in iptables rules. What I want to achieve is this:
Block all incoming traffic from an IP address, but allow outgoing traffic to it.
What I have right now is a rule that will block incoming traffic from it. I want this rule modified, in order to allow outgoing traffic to it.
I will have more than 10,000 IP addresses (rules) in iptables, so please don't make the rule for established connections or any thing else, because a connection to that IP from my server can be made after 1-2 weeks.
I just want to block all incoming traffic from it, but allow outgoing, from my server.
This is the current rule, which works for incoming traffic, but not outgoing.
iptables -I INPUT -s [url removed, login to view] -j DROP
PS: The iptables rules are saved after all are added, in order to have them after a server restart.