HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

Transperent proxy problem
http://havp.hege.li/forum/viewtopic.php?f=3&t=72
Page 2 of 2

Author:  hege [ 12 Apr 2006 16:32 ]
Post subject: 

Everything coming from eth1 to port 80 should be redirected..

iptables -t nat -I PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8080

But you might have some problems with routing because you use same subnet in all interfaces.

Cheers,
Henrik

Author:  piyush [ 13 Apr 2006 11:43 ]
Post subject:  Transperent proxy problem

Hello

Now it looks like

Test machine: ip 222.222.12.13/16 (gateway 222.222.12.12)

My machine(HAVP + iptables): eth0 :222.222.12.12/16
eth1 :10.10.136.253/8


Now Test machine connects to My machine on eth0 via cross cable and eth1 connects to my LAN gateway hence internet.

iptables rule that u have given also don't work, several other also tried any lastly flushed it.

But still no success
--piyush-- :!:

Author:  hege [ 13 Apr 2006 11:50 ]
Post subject: 

Well.. I have give up now. It should not be this hard to set up. :)

Perhaps someone else will have time. Or maybe you will figure it out, check some transparent squid and iptables docs.

Cheers,
Henrik

Author:  piyush [ 13 Apr 2006 13:44 ]
Post subject:  Transperent proxy problem solved

Voila .... that get solved......

Actually it didn't exist......the problem is other....

I can use HAVP+SQUID transperently as well as HAVP and SQUID alone but i can only use ipaddress.

I can't access via domain , i mean if i try to access www.yahoo.com it's not workin but instead of that if i use ip of yahoo say 12.54.78.97 then it works.

There is no DNS problem as i have cross checked....both in my machine as well as test machine. So kind of mystrios problem.

The ethereal trace looks like

(BY DOMAIN NAME)

610 2164.144762 222.222.12.13 -> 222.222.255.255 NBNS Name query NB WWW.YAHOO.COM<00>
611 2164.887116 222.222.12.13 -> 222.222.255.255 NBNS Name query NB WWW.YAHOO.COM<00>
612 2165.637095 222.222.12.13 -> 222.222.255.255 NBNS Name query NB WWW.YAHOO.COM<00>

(BY IP ADDRESS)

613 2173.044617 222.222.12.13 -> 68.142.197.70 TCP 1228 > www [SYN] Seq=0 Ack=0 Win=65535 Len=0 MSS=1460
614 2173.044682 68.142.197.70 -> 222.222.12.13 TCP www > 1228 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460

kinda mystreous problem
thanks as well
--piyush--

Page 2 of 2 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/