LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-28-2001, 01:49 AM   #1
cmardhekar
LQ Newbie
 
Registered: Aug 2001
Location: india
Posts: 17

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 08:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 01:08 PM
Port 80 forwarding to port 22 with iptables zahoo Linux - Networking 3 02-22-2005 08:22 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 11:37 AM
port forwarding 68javelin Linux - Networking 1 11-19-2002 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration