On my linksys firewall I add this to /etc/firewall.user:
#method 2
iptables -t mangle -A PREROUTING -j ACCEPT -p tcp --dport 80 -s 192.168.22.3
iptables -t mangle -A PREROUTING -j MARK --set-mark 3 -p tcp --dport 80
ip rule add fwmark 3 table 2
ip route add default via 192.168.22.3 dev br0 table 2
And I also add this to my proxy machine:
iptables -A PREROUTING -t nat -p tcp -s 192.168.0.0/16 --dport 80 -j REDIRECT --to-port 3128
And that is it...
No comments:
Post a Comment