Is it possible to bind a specific user to a certain IP when using port forwarding (preferably dynamic) in SSH? I don't mind if it has to be done by the user, but by the server configuration would be preferred.

Basically what's happening is I have multiple addresses on the machine, one is the default eth0 (let's say and another is eth0:1 ( When I open a dynamic tunnel (ssh -D 1080 from a remote machine, I'd like all my traffic to appear as if it's coming from .101 instead of the default .100.

Is there any way of doing this short of going with a solution that binds an entire user to an IP? Or, potentially, configuring a local SOCKS application and just local forwarding to that port instead?


These links might help?



  • The OP is asking how to force SSH traffic with a specific source address per-user, not how to add more IPs to his NIC. He already has that. – Charles Hooper Oct 28 '10 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.