You could do following things :


Set environment variable, provided that you are talking only about HTTP proxy



  http_proxy="http://username:password@host:port" ; export http_proxy



Route all traffic through some host on the IP level with route



  route add default gw 12.12.12.12


where 12.12.12.12 should be substituted by your gateway ip address that has it's proxy server running at.


Drop all traffic to other hosts, but your database with iptables


Prevent internet access except for one server?
How soon after baking a fresh fruit custard pie can I refrigerate it? Must it be at room temperature before it's put in the fridge?
