On a linux server, how can I set up permissions so that a certain group of users are allowed to log in via ssh, but all network connections by their processes are blocked unless the connection is back to the ssh client address. For example, I want to allow a user in the group to ssh in and launch an HTTP server (on a high port) then connect to it from the computer where they're running the ssh client, but any other client on the internet must not be able to access the HTTP server.
I know I can completely block a user's network access with iptables, but how
do I allow traffic that comes from or goes to whatever the value of $SSH_CLIENT
is?