iptables bridging transperant proxy

Jan Engelhardt jengelh at linux01.gwdg.de
Mon Aug 1 08:54:45 CEST 2005


>I am trying to create a rule that will send http traffic with a specific 
>source address to the proxy port of the same pc. The box I'm using is running 
>as a "bridge" and the bridge interface does not have an ip address assigned.

ebtables -A BROUTING -j BROUTE -s 1.2.3.4 -p ipv4 --ip-proto tcp --ip-dport 80
iptables -t nat -A PREROUTING -s 1.2.3.4 -j REDIRECT --to-port 3128

Though, this requires the individual bridge port(s) to have an IP...


Jan Engelhardt
-- 
| Alphagate Systems, http://alphagate.hopto.org/



More information about the netfilter mailing list