Re: Iptabels string module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Steve Cherry <steve.cherry@xxxxxxxxxxxxx> wrote:
> Hello,
> 
>         I'm new to the list & this is my first post, thanks for any help 
> in advance.
> 
> Kernel version       2.4.7 (Linux RedHat)
> Iptables version    1.2.5
> 
> I'm having some problems with the 'string module'
> 
> I managed to download Patch-o-matic and patch the kernel source with the 
> string module, compile it, boot using the fresh kernel, compile & 
> reinstall iptables with the new libiptb_striong.so library and then load 
> the ipt_string module.
> 
> However when I use the ............-m string "text string 
> here"............... in my rule set the config is accepted/loaded but 
> has no effect at all, it's as if the rule never existed.
> 
> 
> 
> Background
> 
> I have transparent web proxy setup on DMZ, when any internal web traffic 
> (Port 80) destined for the outside world hits the firewall the packet's 
> destination IP gets translated to the web proxy's IP on the DMZ which 
> inturn proxy's the request & serves the client. This all works fine, 
> however I would like some destinations to not be proxied, for example 
> 'hotmail.com'. This is where the 'string' module would come in handy, 
> below is the rule with IP's removed
> 
> -t nat -A PREROUTING -s (internal IP subnet) -i (internal firewall 
> interface) -p tcp -m tcp --dport 80 -m stat --state ESTABLISHED,NEW -m 
> string --string "hotmail.com" -j ACCEPT
> 
> this rule appears before the rule that translates the destination IP 
> address to the proxy's IP for all externally bound HTTP traffic. However 
> the rule simply has no effect, all web traffic destined to 
> http://www.hotmail.com still gets proxied?????
> 
> 
> Any ideas anyone????
> 
> 
> thanks
> 
> 
> 
> steve
> 
> 

I don't know if you typed this rule in or copy and pasted from a shell..but it
could be that if you copied from a shell your -m stat --state should be -m
state --state etc etc.


=====
"No touchy NO TOUCHY! Emperor Kuzko -=Emperor's New Groove=-"

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux