LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-06-2001, 06:22 AM   #1
cmardhekar
LQ Newbie
 
Registered: Aug 2001
Location: india
Posts: 17

Rep: Reputation: 0
about iptables


Dear sir we have windows based network with fix ip address using dsl line And have iis Noew we want to install firewall between internet and our server such that whatever traffic coming it wiill first recived on linux box and depend on port if its www or ftp then it must redirect to windows machine i try iptables and use command

iptables -t nat -A PREROUTING -p TCP -d 192.168.10.4 --dport 21 -j DNAT --to 192.168.10.10:21

but its not redirecting any packet to ftp if i try to run ftp locally or from local net.
ALSO IF I USE
#netstat -t it show me state SYN_SENT and SYN_RECIV
but if i try TO DO
iptables -t nat -A PREROUTING -p TCP -d 192.168.10.4 --dport 21 -j DNAT --to 192.168.10.4:22
THEN ITS REDIRECTING ME TO SSH PORT IF I TRY FTP FROM LOCALLY OR FROM MY LAN ..

can u help me solve this problem

regards

chandrakant
 
  


Reply



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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

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

All times are GMT -5. The time now is 10:09 PM.

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