LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-26-2005, 02:55 AM   #1
linetnew
Member
 
Registered: Apr 2005
Location: India
Posts: 32

Rep: Reputation: 15
how to enable port forwarding


hello,
I have got another problem.
I have 2 pcs in LAN one is windows 2000 professional and other is RH9. There is one isolated linux box say hosta that is connectd to that linux PC say HostB and eindoes pc has name hostc.
Hostb and Hostc are connected to other pcs in LAN thr' switch. Hostb has enabled as router that makes hosta to access other network pcs in that LAN through hostb.
when i type ftp://hostb in Internet Explorer on hostc i want to get ftp files from hosta but currently i am getting hostb file. how to resolve this. Does that need to enable port forwarding. how to do that?
 
Old 05-26-2005, 05:20 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
You'd have to enable ip forwarding and setup some firewall bit..

echo 1 >/proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -j SNAT --protocol tcp --to-source BBB -s AAA --destination-port 21


where BBB is the ip address of hostb on hosta's network.
and AAA is the network of hostc's network.

...then when you type in ftp://hosta on the hostc computer it'll go to hosta.


If you want the ftp to go to hosta when you type ftp://hostb
you may want to try some other program like "redir".
 
  


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 Off
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
How to enable ip forwarding (to make a simple router) prabhatsoni Linux - Networking 9 03-31-2005 01:56 PM
How to enable packet forwarding davidho3 Linux - Networking 2 10-12-2004 11:45 AM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:59 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