All of lore.kernel.org
 help / color / mirror / Atom feed
* how to by pass yahoo mail and hotmail
@ 2006-07-06 12:52 Askar Ali
  2006-07-07 13:58 ` Kashif Ali Bukhari
  0 siblings, 1 reply; 3+ messages in thread
From: Askar Ali @ 2006-07-06 12:52 UTC (permalink / raw)
  To: netfilter

Hi list,

we are redirecting port 80 traffic from our firewall to our proxy/cache
servers with iptables + iproute2 ie
#ip rule add fwmark 9 table cache.out
#ip route add default via xxx.xxx.xx.xx dev eth0 table cache.out
#ip route flush cache

iptables -A PREROUTING -i eth0 -t mangle -s xxx.xxx.xx.0/24 -p tcp --dport
80 -j MARK --set-mark 9

Everythign working fine, now a question is how to -j Return yahoo mail and
hotmail traffic from going to proxy servers so that  yahoo mail and hotmail
see the orginal IP of the client not the IP of squid server.

yahoo mail and hotmail resolve to multiple IPs if I add a -J Return rule
before or after the above rule its not working say...

iptables -A PREROUTING -i eth0 -t mangle -s xxx.xxx.xx.0/24 -d
mail.yahoo.com -p tcp --dport 80 -j MARK --set-mark 9

Any help in this regards will be greatly apprecaited.

Regards,


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to by pass yahoo mail and hotmail
  2006-07-06 12:52 how to by pass yahoo mail and hotmail Askar Ali
@ 2006-07-07 13:58 ` Kashif Ali Bukhari
  2006-07-07 14:01   ` Askar Ali
  0 siblings, 1 reply; 3+ messages in thread
From: Kashif Ali Bukhari @ 2006-07-07 13:58 UTC (permalink / raw)
  To: Askar Ali; +Cc: netfilter

#hotmail
iptables -A PREROUTING -i eth0 -t mangle -p tcp -d 65.52.0.0/14
--dport 80 -j RETURN
iptables -A PREROUTING -i eth0 -t mangle -p tcp -d 207.46.0.0/16
--dport 80 -j RETURN
#yahoo
iptables -A PREROUTING -i eth0 -t mangle -p tcp -d 206.190.32.0/19
--dport 80 -j RETURN
#
# By passing waridtel.com from cache/proxy servers
iptables -A PREROUTING -t mangle -i eth0 -p tcp -d 203.124.26.20 -j RETURN
#


On 7/6/06, Askar Ali <askarali@gmail.com> wrote:
> Hi list,
>
> we are redirecting port 80 traffic from our firewall to our proxy/cache
> servers with iptables + iproute2 ie
> #ip rule add fwmark 9 table cache.out
> #ip route add default via xxx.xxx.xx.xx dev eth0 table cache.out
> #ip route flush cache
>
> iptables -A PREROUTING -i eth0 -t mangle -s xxx.xxx.xx.0/24 -p tcp --dport
> 80 -j MARK --set-mark 9
>
> Everythign working fine, now a question is how to -j Return yahoo mail and
> hotmail traffic from going to proxy servers so that  yahoo mail and hotmail
> see the orginal IP of the client not the IP of squid server.
>
> yahoo mail and hotmail resolve to multiple IPs if I add a -J Return rule
> before or after the above rule its not working say...
>
> iptables -A PREROUTING -i eth0 -t mangle -s xxx.xxx.xx.0/24 -d
> mail.yahoo.com -p tcp --dport 80 -j MARK --set-mark 9
>
> Any help in this regards will be greatly apprecaited.
>
> Regards,
>
>


-- 
Syed Kashif Ali Bukhari
+92-300-4295604
Network Engineer
Beaconhouse IT Services, Lahore Pakistan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to by pass yahoo mail and hotmail
  2006-07-07 13:58 ` Kashif Ali Bukhari
@ 2006-07-07 14:01   ` Askar Ali
  0 siblings, 0 replies; 3+ messages in thread
From: Askar Ali @ 2006-07-07 14:01 UTC (permalink / raw)
  To: Kashif Ali Bukhari; +Cc: netfilter

Kashif Ali Bukhari, on 07/07/2006 06:58 PM [GMT+500], wrote :
> #hotmail
> iptables -A PREROUTING -i eth0 -t mangle -p tcp -d 65.52.0.0/14
> --dport 80 -j RETURN
> iptables -A PREROUTING -i eth0 -t mangle -p tcp -d 207.46.0.0/16
> --dport 80 -j RETURN
> #yahoo
> iptables -A PREROUTING -i eth0 -t mangle -p tcp -d 206.190.32.0/19
> --dport 80 -j RETURN
> #
> # By passing waridtel.com from cache/proxy servers
> iptables -A PREROUTING -t mangle -i eth0 -p tcp -d 203.124.26.20 -j
> RETURN
> #
>
>
> On 7/6/06, Askar Ali <askarali@gmail.com> wrote:
>> Hi list,
>>
>> we are redirecting port 80 traffic from our firewall to our proxy/cache
>> servers with iptables + iproute2 ie
>> #ip rule add fwmark 9 table cache.out
>> #ip route add default via xxx.xxx.xx.xx dev eth0 table cache.out
>> #ip route flush cache
>>
>> iptables -A PREROUTING -i eth0 -t mangle -s xxx.xxx.xx.0/24 -p tcp
>> --dport
>> 80 -j MARK --set-mark 9
>>
>> Everythign working fine, now a question is how to -j Return yahoo
>> mail and
>> hotmail traffic from going to proxy servers so that  yahoo mail and
>> hotmail
>> see the orginal IP of the client not the IP of squid server.
>>
>> yahoo mail and hotmail resolve to multiple IPs if I add a -J Return rule
>> before or after the above rule its not working say...
>>
>> iptables -A PREROUTING -i eth0 -t mangle -s xxx.xxx.xx.0/24 -d
>> mail.yahoo.com -p tcp --dport 80 -j MARK --set-mark 9
>>
>> Any help in this regards will be greatly apprecaited.
>>
>> Regards,
>>
>>
>
>
Kashif thanks I very much appreciate it. :)

Regards, Askar


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-07 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-06 12:52 how to by pass yahoo mail and hotmail Askar Ali
2006-07-07 13:58 ` Kashif Ali Bukhari
2006-07-07 14:01   ` Askar Ali

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.