You are not logged in.

#1 2009-04-30 00:09:18

darthaxul
Member
Registered: 2008-09-24
Posts: 156

I need a proxy redirect

my router turned belly-up and i needa set up a proxy so i grabbed privoxy and tried that but I couldnt connect to some of my game ports. so i grabbed squid proxy and it seemed the same. the http and https seem to be working but the game ports dont. How do I get telnet traffic through the proxy?

Offline

#2 2009-04-30 04:43:08

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: I need a proxy redirect

If I understand your request correctly...

In squid.conf, you need to add an acl line for each port you want to use:

acl Safe_ports port 123          # My Port

There's already a bunch of 'Safe_ports" directive, just add another one with them.

Offline

#3 2009-04-30 07:47:47

darthaxul
Member
Registered: 2008-09-24
Posts: 156

Re: I need a proxy redirect

yea i tried that and It doesnt work. name resolution is not working either. I tried adding the upstream name servers to resolve.conf but still no luck. it makes me wonder how the router was able to do that except the proxy is not. is anyone else running a working proxy setup and know what is wrong here?

Offline

#4 2009-04-30 09:38:29

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: I need a proxy redirect

Can you give us some more details about exactly what you're attempting to connect to, and the exact error messages you're getting?

"couldn't connect to some of my game ports" and "name resolution is not working either" is too vague to be able to offer more assistance.

Last edited by fukawi2 (2009-04-30 09:38:47)

Offline

#5 2009-05-01 06:18:19

darthaxul
Member
Registered: 2008-09-24
Posts: 156

Re: I need a proxy redirect

i need something like transparent proxy setup using port 6000. I dont think the iptables are working correctly.
-a input -i eth0 -m state --state related,established -j accept
-t nat -a postrouting -o eth0 -j masquerade
-a forward -i eth1 -j accept
-a input -i eth1 -j accept
-a output -o eth1 -j accept
-t nat -a prerouting -i eth1 -p tcp --dport 80 -j dnat --to 2.2.2.1:6000
-t nat -a prerouting -i eth0 -p tcp --dport 80 -j redirect --to-port 6000
aparently either the iptables are wrong, or squid is not doing the redirection correctly. it works fine if the proxy is set for browsers, but i need transparent because I cannot set proxy settings for game/telnet.

Offline

#6 2009-05-03 08:55:43

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: I need a proxy redirect

darthaxul wrote:

aparently either the iptables are wrong, or squid is not doing the redirection correctly. it works fine if the proxy is set for browsers, but i need transparent because I cannot set proxy settings for game/telnet.

Transparent Proxy is a hit and miss affair -- if the client doesn't know it's using a proxy, then it doesn't send the request in the correct format and squid has to do it's best to intercept and understand the request.

What does the following command display if you run them while you are attempting the connection?

tcpdump -lnn -i eth1 port 80 or port 6000

(I'm assuming eth1 is the side you're clients are on)

Offline

Board footer

Powered by FluxBB