Is it possible to block connections to specific hostnames for users accessing the web via an SSH SOCKS proxy?
iptables has the owner module which allows you to specify rules by the uid/gid. I guess that should work for you. So, something like this should work:
iptables -A OUTPUT -p tcp -d some.host.name -m owner --uid someuser -j DROP
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago