Have a play with:-
| Code: |
iptables -t nat -I PREROUTING -i eth0 -s 192.168.0.5 -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -I INPUT -i eth0 -s 192.168.0.5 -p tcp --dport 3128 -j DROP
|
Change 192.168.0.5 to what ever IP you want to redirect.
Assumes eth0 is your LAN interface,
Change --to-ports 3128 to direct to proxy instead of content filter on 8080
Review your changes by using, if it doesn't work wipe it out with 'service firewall restart'
| Code: |
iptables -t nat -L -n -v
iptables -L -n -v
|
If everything works as you want it then add the lines to /etc/rc.d/rc.firewall.local so that they stick after the firewall restarts.