LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 03-18-2004, 02:22 PM   #1
prbspfc
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Port Forward


Hi... I am a linux beginner and....

Could you tell me how to do a port forward on linux ??

I have a RH 9 and I would like to forward any pcAnywhere incomings to a Windows workstation (192.168.0.10)...

Can you say me pcAnywhere port wich it listen on? (because I dont know)

Can you say me the command line wich I have to add on Linux???

Best regards,

Paulo
 
Old 03-19-2004, 12:40 AM   #2
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
You need to set up nat on your RH9 machine using iptables. I assume your RH9 machine is acting as a router PC. Here is a thread that should help. There is an example script to help.

http://www.linuxquestions.org/questi...hreadid=159501

The latest versions of PCAnywhere uses the registered ports 5631 and 5632.

http://service1.symantec.com/SUPPORT...rc=bar_sch_nam
 
Old 03-19-2004, 03:43 AM   #3
viperusn
LQ Newbie
 
Registered: Mar 2004
Location: East TN
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
is it possible for me to do the same thing with my network setup (fedora router with nat and iptables) and forward to my windows mchine (192.168.0.141) as to enable me to use fileshare pro?
 
Old 03-19-2004, 09:11 AM   #4
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
Basically, any version of Linux can act as a router. As long as the distro comes with iptables. I'm not sure that is all of them, but it is damn close to all of them. Some execptions may be the distros that fit on a diskette. But I'm not sure about that.

Some distros are better at it than some others. Some distros will install a bunch of stuff not needed for the purposes of it being a router. Also, most router PCs are old machines so you need a "lighter distro" to run it. Slackware or Debian or something like that.

But to answer your question, yes it is very possible.
 
Old 03-19-2004, 09:54 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
viperusn:

is "fileshare pro" a program?
 
Old 03-19-2004, 01:35 PM   #6
viperusn
LQ Newbie
 
Registered: Mar 2004
Location: East TN
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
yes fileshare pro is a program....it is actually called WWW File Share Pro
here is a link to the page for it: http://www.wfshome.com/

i have alot of basic files, media, and pictures that i used for web design and have been using this program to share them across my network so i can have access to them on any of the computers. i like it because i can password protect certain files/directories. anywy, i would liek to be able to have access to these from outside my network, like when i am at work or at a clients house. it uses the ip address of the machine it is on and then has a default port of 80, which i can change to whatever i want.
 
Old 03-23-2004, 10:49 AM   #7
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
sorry im late..
well.. it listents tcp port 80 .. so make DNAT ..
-i : incoming interface (interface which is connected to internet). change it if its needed

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to 192.168.0.141

PS : SNAT mut be enabled for host (192.168.0.141).. otherwise DNAT wont work.
 
Old 03-23-2004, 02:04 PM   #8
viperusn
LQ Newbie
 
Registered: Mar 2004
Location: East TN
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
man, thanks a whole lot, that did it, and it works perfectly. this is truly the best place to get help with linux!
 
Old 03-23-2004, 02:12 PM   #9
viperusn
LQ Newbie
 
Registered: Mar 2004
Location: East TN
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
oh, i did however change it from port 80 to prot 1250, just so it was out of the way...fileshare lets you do that easily....again, thanks alot!
 
Old 03-24-2004, 07:00 AM   #10
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
your welcome we r here to help each other.
 
  


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
forward port to another on the same IP 5amYan Linux - Security 2 08-23-2005 12:26 PM
A way to forward an IP/Port to another system's IP/Port astroboy5714 Linux - Networking 6 01-26-2004 06:45 PM
port forward help please indy317 Linux - Networking 2 07-18-2003 03:21 PM
Port forward help please hanxuerui Linux - Networking 6 05-05-2003 02:20 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 04:45 AM


All times are GMT -5. The time now is 10:12 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration