LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-27-2004, 02:57 AM   #1
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
redirecting to other pc's ftp





i have a problem

i am the responsible person for the college system it is running red
hat linux9. i have to host a curriculum site for the students.the site is
ccna.com.now the thing i wanna do is if the student will type ccna.com in there internet explore add bar. i want it to redirect to the ftp serverthat is on the other pc that is also linux9.and the ip add of the first pc is 192.168.0.1 and the others 192.168.0.2the location is /var/ftp/pub/index.html. how do i do this....cuz i don't want it taking the space in both the harddisk.........
 
Old 02-27-2004, 07:04 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: redirecting to other pc's ftp

Quote:
Originally posted by roopunix



i have a problem

i am the responsible person for the college system it is running red
hat linux9. i have to host a curriculum site for the students.the site is
ccna.com.now the thing i wanna do is if the student will type ccna.com in there internet explore add bar. i want it to redirect to the ftp serverthat is on the other pc that is also linux9.and the ip add of the first pc is 192.168.0.1 and the others 192.168.0.2the location is /var/ftp/pub/index.html. how do i do this....cuz i don't want it taking the space in both the harddisk.........
not sure if I fully understand your question but let me take a stab. you mean to say if your students (hundreds of them ) when they type ftp://ftp.ccna.com they access your computer no 2. If yes then all you need is a dns entry ftp.ccna.com to point at computer no 2.

If you mean to say when a student types in ftp://ccna.com then they should get redirected to computer no 2 (ccna.com points to comp no 1). This can be done in Iptables for computer no 1 to look for incoming connections on port 21.


hope this helps.
 
Old 05-05-2007, 10:32 AM   #3
HowDoIProgramIt
Member
 
Registered: Nov 2006
Location: East Coast, USA (in "the great northeast")
Distribution: Custom / from source; Fedora, Debian, CentOS, Scientific; LFS.
Posts: 94

Rep: Reputation: 15
Quote:
Originally Posted by linuxxed
not sure if I fully understand your question but let me take a stab.
I'm not 100% on what's being asked either; I'm reading the original question the same as linuxxed is, though. Assuming that we're both understading the question, I would concur with linuxxed: using iptables for port forwarding or making a DNS mod should do the trick.

Unless you either don't have access to the DNS server (or to the ear of someone who does), or for one of a number of reasons, can't use the routing suggestion. Since your students have to load up a web page initially, anyway, couldn't you use an HTML redirect (or javascript, etc.) in that page to shuttle them over to the server you want them to go to?

- Larry
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
5 PC's and a server how do I get the PC's to access stuff on the server TheHammer Linux - Networking 9 05-07-2007 11:05 PM
help with redirecting to ftp SlipAway172 Linux - Networking 1 03-06-2005 08:47 AM
mobiles and PC's munkie_poo Linux - Hardware 2 11-19-2004 08:10 AM
Redirecting Half_Elf Linux - Networking 2 09-04-2002 10:51 PM
pc's jISV General 15 04-27-2002 12:07 PM

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

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