fixx
Well-Known Member
- Joined
- Feb 13, 2006
- Messages
- 278
Hey guys.
I have small issue with iptables. I have two rules, one that marks traffic destined for our own internal subnets and then one that redirects http traffic to the local proxy server on the server.
Now the problem is I want to excluded the marked packets from being redirected to the transparent proxy, but for some reason it doesn't work.
Here are the two rules:
Can someone please tell me what I am doing wrong?
Thanks
I have small issue with iptables. I have two rules, one that marks traffic destined for our own internal subnets and then one that redirects http traffic to the local proxy server on the server.
Now the problem is I want to excluded the marked packets from being redirected to the transparent proxy, but for some reason it doesn't work.
Here are the two rules:
iptables -t mangle -A PREROUTING -s $lan -d 172.0.0.0/8 -m mark --mark 10
iptables -t nat -A PREROUTING -s $lan -p tcp --dport 80 -m mark ! --mark 10 -j REDIRECT --to-ports 3128
Can someone please tell me what I am doing wrong?
Thanks