I tried the below commands, no luck.
iptables -t nat -A PREROUTING -d 195.50.101.11 -i eth0 -p tcp -m tcp --dport
21 -j DNAT --to-destination 192.168.0.143:21
iptables -t nat -A PREROUTING -d 195.50.101.11 -i eth0 -p tcp -m tcp --dport 20 -j DNAT --to-destination 192.168.0.143:20
iptables -A PREROUTING -d 195.50.101.11 -i eth0 -p tcp -m tcp --dport 60000:65535 -j DNAT --to 192.168.0.143
iptables -t nat -A PREROUTING -d 192.168.0.143 -i eth0 -p tcp -m tcp --dport 21 -j DNAT --to-destination 195.50.101.11:21
Rajendra Rait.
On 1/25/06, Rajendra Rait rajendra.rait@gmail.com wrote:
I tried the below commands, no luck.
iptables -t nat -A PREROUTING -d 195.50.101.11 -i eth0 -p tcp -m tcp --dport
21 -j DNAT --to-destination 192.168.0.143:21
iptables -t nat -A PREROUTING -d 195.50.101.11 -i eth0 -p tcp -m tcp --dport 20 -j DNAT --to-destination 192.168.0.143:20
iptables -A PREROUTING -d 195.50.101.11 -i eth0 -p tcp -m tcp --dport 60000:65535 -j DNAT --to 192.168.0.143
iptables -t nat -A PREROUTING -d 192.168.0.143 -i eth0 -p tcp -m tcp --dport 21 -j DNAT --to-destination 195.50.101.11:21
Rajendra Rait.
Is ip forwarding is enable ?
-- ------------------------------------------------------------------------------- AbhiSawa