there is a web-hosting server with several sites on it. I need to block some subnets (IP ranges) for some website(s). Is it possible at all? I've tried something like this:
iptables -A OUTPUT -m owner --uid-owner 99 -d 220.127.116.11/13 -j REJECT
but it works only for user 'nobody' and it blocks all sites. With another user IDs it doesn't works. Any suggestions? Please help, thanks in advance.