Wikipedia:Reference desk/Archives/Computing/2017 September 29

Source: Wikipedia, the free encyclopedia.
<
Computing
Computing desk
< September 28 << Aug | September | Oct >> September 30 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


September 29

Proxy for specific sites only

Can you recommend me a program (preferably command line) that can intercept connections to specific hosts from Firefox and send them through a proxy server? For example, if I type "wikipedia.org" into Firefox I want it to go through my home internet connection. But if I type "blockedwebsite.org" the connection will be routed through a proxy server instead. I know I can set a proxy server in Firefox settings but it sends everything though the proxy server and it's a hassle to keep changing it. Thanks!

What is your operating system? In Linux, once you set up a network device, such as proxy, you can use route to direct addresses to it. For example, if I want to redirect everything to 46.x.x.x through the network device called proxy, I would use: route add -net 46.0.0.0 netmask 255.0.0.0 dev proxy. I use this extensively. I have two physical network connections on my computer, one to internal servers and one to a switch that goes to the Internet. I also have a VPN to my home, a VPN to one university I work at, and a VPN to another university that I work at. So, I have to make sure that the correct network is selected per IP address. However, I've never tried to do this by domain name. I've only done it using IP addresses. 209.149.113.5 (talk) 18:12, 29 September 2017 (UTC)[reply]