I followed the instructions in dd-wrt site on Squid_Transparent_Proxy and was able to redirect http traffic to a pfsense server running squid. I'm wondering if it is possible to redirect ftp traffic coming from client PCs in a local network to ftp servers in the internet using ftp clients such as filezilla or ftp access via a browser.
Here's my setup:
1. Client PCs are in a local network, whose gateway is the Tomato router whose ip addess is 192.168.1.1. The client PCs have ip address of 192.168.1.xx subnet 255.255.255.0. This tomato router then passes traffic to a DSL modem of the ISP.
2. When PCs try to use ftp (via filezilla or browser) to connect to ftp servers in the internet, they pass through the tomato router without problems.
3. If a client PC's gateway is changed to the ip address of the pfsense/squid server (192.168.1.2), ftp operation is also normal.
4. What I want is for the ftp traffic to be redirected to the pfsense/squid server when the request reaches the tomato router.
Unfortunately, I'm not familiar with iptables. I tried searching this via google but the samples I saw didn't work or maybe I didn't use it correctly when applying it to my router.
Is what I want to do possible with a Tomato-based router? Can anyone please give an example or idea on how I can solve the problem? Thank you.