Hi I need some help on iptables if anyone knows about it here. I have a linux based router and 3 machines (A, B, C) that connect it to access the internet. I need to selectively route a couple of these machines through proxy server(s) while keeping the 3rd machine's connection untouched. I am guessing that I should be able to find an answer through iptables. Please let me know if someone has done something like this before. The router has most linux commands and tools available on it. BTW, the complete end situation would be something like this. There are 2 proxy servers, 1 running on the router itself (192.168.0.1:8080) and another on machine A (192.168.0.2:8080). Machine A (192.168.0.2) also has a direct/unproxified connection to the internet through the router. Machine B (192.168.0.3)'s traffic is automatically redirected by the router through Machine A's proxy server. Machine C (192.168.0.4)'s traffic is automatically redirected by the router through it's own proxy server.
A bit of detail about why I want to do this is that A is my main machine which I use regularly and don't want its connection to be proxified. B has some programs running which I need to test through a custom proxy that I run over machine A. Since this is a custom proxy and not compilable for my router's architecture, I need to run it on my PC A. C is an embedded device that constantly accesses some similar data in a certain time range and I'm trying to optimize its net usage by using a popular caching proxy on the router (it has a hard disk attached for the cache). C is always on even when A is not on so I need its corresponding proxy to be on router. Also, is it possible to do this "on-the-fly", i.e. I don't have to restart any service that leads to breaking of connection or atleast not having to reboot the router. Thanks Shantanu ---------------------- http://tech.shantanugoel.com/ http://www.safercode.com/blog/ http://blog.shantanugoel.com/ _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
