I'm trying to get all my outbound traffic to go through an ssh tunnel, but I can't find out how (and i'm sure its simple)
I've setup an ssh tunnel with
- Code: Select all
ssh -fNT -D 9000 jason@myserver.com
and then I set the http_proxy environment variable to it would proxy all http traffic
- Code: Select all
export http_proxy="http://127.0.0.1:9000"
but I also need non-http traffic to go through this tunnel (a database connection to be specific)
Is there another env variable to set for a proxy, or do I need to play with ip forwarding and iptables?

