Is it possible to block connections to specific hostnames for users accessing the web via an SSH SOCKS proxy?
Asked
Active
Viewed 556 times
1 Answers
1
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

Janne Pikkarainen
- 31,852
- 4
- 58
- 81