0

Is it possible to block connections to specific hostnames for users accessing the web via an SSH SOCKS proxy?

Tyler
  • 77
  • 1
  • 10

1 Answers1

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