Ok I'm not sure what im looking for. I thought I knew iptables well enough but I need a little help.
what I want to do:
When a computer 172.16.0.100 through 172.16.0.150 requests to connect to port 80 on machine 172.16.0.200(my linux box) it redirects that to port 80 on 172.16.0.250. My gateway is 172.16.0.1
I tried the following on 172.16.0.200 but it doesn't work as I expected
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT -d 172.16.0.250 --to-port 80
echo 1 >/proc/sys/net/ipv4/ip_forward
Has anyone done anything similar?