- Posts: 3
- Thank you received: 0
IPCOP 2 BOX
18 years 9 months ago #13011
by 50cc
IPCOP 2 BOX was created by 50cc
Hi,
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 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.
18 years 9 months ago #13013
by DaLight
Replied by DaLight on topic Re: IPCOP 2 BOX
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.
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.
18 years 9 months ago #13020
by 50cc
Replied by 50cc on topic Re: IPCOP 2 BOX
Thanks a lot DaLight, now i have one problem.
How to keep files from FTP download in proxy ?
Exam patch games online from FTP sites.
Now it keep only HTTP.
Have a modify method or add-on ?
Sorry about my english language.
How to keep files from FTP download in proxy ?
Exam patch games online from FTP sites.
Now it keep only HTTP.
Have a modify method or add-on ?
Sorry about my english language.
18 years 9 months ago #13027
by DaLight
Replied by DaLight on topic Re: IPCOP 2 BOX
There is a maximum object size which is 4MB by default. You can change this on the Proxy configuration page in the Web Admin GUI under "Cache Management".
18 years 9 months ago #13100
by 50cc
Replied by 50cc on topic Re: IPCOP 2 BOX
Hi DaLight, i did follow your suggestion (upstream proxy). It work only HTTP traffic but FTP traffic still through IPCOP1.
Can you tell me how to modify iptebles for redirect port 21 to IPCOP2 ?
Some cases i must redirect other port that use a lot of bandwidth to IPCOP2.
Thank you.
Can you tell me how to modify iptebles for redirect port 21 to IPCOP2 ?
Some cases i must redirect other port that use a lot of bandwidth to IPCOP2.
Thank you.
18 years 8 months ago #13550
by DaLight
Replied by DaLight on topic Re: IPCOP 2 BOX
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.
Time to create page: 0.136 seconds