dodbdts
21st July 2008, 10:27 PM
Hello all,
I've recently setup a NAT (and working on an addition WAP) with eth0 being the external network and eth1 being the internal network
what I would like is if any clients on the internal network do any requests, http for example, to the external network..or even say google.com or youtube.com that they're instead redirected to an apache server that's runnong on the internal network at 192.168.2.1 on say 65000.
I've tried
iptables -A PREROUTING -t nat -s 192.168.2.0/255.255.255.0 -p tcp --dport 80 -j DNAT --to-destination 192.168.2.1:65000
however...this doesn't work. infact I can't even ping the external network after this is used.
any suggestions?
I've recently setup a NAT (and working on an addition WAP) with eth0 being the external network and eth1 being the internal network
what I would like is if any clients on the internal network do any requests, http for example, to the external network..or even say google.com or youtube.com that they're instead redirected to an apache server that's runnong on the internal network at 192.168.2.1 on say 65000.
I've tried
iptables -A PREROUTING -t nat -s 192.168.2.0/255.255.255.0 -p tcp --dport 80 -j DNAT --to-destination 192.168.2.1:65000
however...this doesn't work. infact I can't even ping the external network after this is used.
any suggestions?