Debiant
11-19-2002, 04:11 PM
Hello All,
Im trying to setup in Iptables a chain in the nat table that will look for subnet 172.16.100.0/24 -dport 80, and redirect it to 172.16.200.5:80. the idea being is this.
the 172.16.100.0 subnet will be dished out via dhcp to users all of these users are not active customers or have had their accounts suspended for non-pay. I want to redirect any of their http traffic to a webpage telling them that their account has been suspended and to please contact our office
So far I havent had to much luck; this is what I have so far
iptables -t nat -A PREROUTING -p tcp --dport 80 -s
172.16.100.0/24 -dport 80 -j DNAT --to 172.16.200.5:80
What am I missing? pls help
AJ
Im trying to setup in Iptables a chain in the nat table that will look for subnet 172.16.100.0/24 -dport 80, and redirect it to 172.16.200.5:80. the idea being is this.
the 172.16.100.0 subnet will be dished out via dhcp to users all of these users are not active customers or have had their accounts suspended for non-pay. I want to redirect any of their http traffic to a webpage telling them that their account has been suspended and to please contact our office
So far I havent had to much luck; this is what I have so far
iptables -t nat -A PREROUTING -p tcp --dport 80 -s
172.16.100.0/24 -dport 80 -j DNAT --to 172.16.200.5:80
What am I missing? pls help
AJ