I have 2 ADSL lines and 2 IPCOP 1.4.10 box in my network.
I want to redirect port 80, 21, 1863 from IPCOP1 to IPCOP2.
IPCOP1: Use this box open DHCP, service games online and redirect port 80, 21, 1863 and another port use a lot of bandwidth to IPCOP2
IPCOP2: Use this box open SQUID and service port 80, 21, 1863 and another port use a lot of bandwidth
Clients: I don't want to config gateway, dns, proxy and anything on clients
I don't know how to redirect that port ?
Please help me.
I'll give a quick breakdown of what I think you're trying to do from your post:
1. You want all gaming traffic to go through IPCOP1/ISP1.
2. You want all port 80, 21 and 1863 traffic to go through IPCOP2/ISP2.
3. You want IPCOP1 to handle DHCP.
First of all turn on the DHCP service on IPCOP1 and set IPCOP1 itself as the default gateway for all DHCP clients.
Browse to the Proxy configuration page on the Web Admin GUI on IPCOP1 and enter the following in the "Upstream proxy (host:port)" field: x.x.x.x:800, where x.x.x.x is the GREEN ip of IPCOP2. Also, make sure "Transparent on GREEN" is selected.
You can achieve the same effect by adding the following line to the "/var/ipcop/proxy/acl" file and restarting Squid:
[code:1]cache_peer x.x.x.x parent 800 0 no-query default[/code:1]
You will also need to add this line to the same file:
[code:1]acl Safe_ports port 1863[/code:1] You can't do this through the GUI.
You will of course need to make sure that Squid is running on IPCOP2 and DHCP is off.
Sorry, 50cc, I must have missed your last post. I only discovered recently that SQUID does not proxy FTP in transparent mode. In order to ensure that FTP requests from clients go through the SQUID proxy on IPCOP1 and hence get forwarded to IPCOP2, you will need to manually set up IPCOP1 as the FTP proxy on all clients that will be using FTP . Sorry, I know you were trying to avoid doing that.