How to do ip port forwarding
dear sir
If I use iptables and use command
Iptables -t nat -A PREROUTING -p tcp -d 192.168.10.4 -dport 21 -j SNAT --to 192.168.10.4:22
Iptables -t nat -A POSTROUTING -p tcp -d 192.168.10.4 -dport 21 -j DNAT --to 192.168.10.4:22
Where 192.168.10.4 is ip address of linux machine
Then if I try port scan from windows machine it show me ftp port to 22 so it forward port now if i try to
Use 192.168.10.10:21 then it accept command and in iptables -t nat -L it show me it forwarding to 192.168.10.10
where 192.168.10.10 is ip address of my windows 2000 server on which ftp server is running
But if I scan again then it not showing me ftp transferred to 192.168.10.10 or neithenr I can ftp to linux box
Can u help me to solve this problem
Waiting for u reply
Regards
chandrakant
|