Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

Apache/FTP on unusual ports

Reply
 
Thread Tools Display Modes
  #1  
Old 11-25-2004, 01:30 AM
Default Apache/FTP on unusual ports



Hi there folks,

I need to run a web server and a FTP server at home, but my ISP in
theory doesn't allow this, so I need to run both servers on different
ports (8080 for Apache and some other high-number ports, like
10020-10021, for instance, for FTP). What's the best way to do this?
First thing that came to my mind is to create a set of iptables rules,
redirecting requests for the correct ports, and setting apache to
operate in those ports. How do I do this? Any other methods?
Thnx in advance,
Fernando Vaz


Fernando Vaz
Reply With Quote
  #2  
Old 11-25-2004, 04:24 AM
David Efflandt
Guest
 
Posts: n/a
Default Re: Apache/FTP on unusual ports

On Wed, 24 Nov 2004, Fernando Vaz <(E-Mail Removed)> wrote:
> Hi there folks,
>
> I need to run a web server and a FTP server at home, but my ISP in
> theory doesn't allow this, so I need to run both servers on different
> ports (8080 for Apache and some other high-number ports, like
> 10020-10021, for instance, for FTP). What's the best way to do this?
> First thing that came to my mind is to create a set of iptables rules,
> redirecting requests for the correct ports, and setting apache to
> operate in those ports. How do I do this? Any other methods?
> Thnx in advance,
> Fernando Vaz


You can easily configure apache to listen on a different port (see docs
for Port directive). It may also help to set UseCanonicalName off, so
automatic redirects will hopefully include the port. If you shuffle to a
different port coming through your firewall, automatic redirects would
likely NOT work.

See the docs for your ftp server as to how to change its ports.

Note that for either, you would need to include any non-standard port in
the URL, because DNS only has to do with names and IPs, not ports.
Reply With Quote
  #3  
Old 11-25-2004, 05:57 AM
Davide Bianchi
Guest
 
Posts: n/a
Default Re: Apache/FTP on unusual ports

On 2004-11-25, Fernando Vaz <(E-Mail Removed)> wrote:
> I need to run a web server and a FTP server at home, but my ISP in
> theory doesn't allow this, so I need to run both servers on different


If your ISP doesn't allow you to run ftp/web on your connection,
doing so you are breaking your T&C. Switch ISP or change your contract.
Davide

--
Linus was the instructor of Hercules in music, but having one day reproved
his pupil rather harshly, he roused the anger of Hercules, who struck him
with his lyre and killed him.
Reply With Quote
  #4  
Old 11-25-2004, 08:27 AM
Matt
Guest
 
Posts: n/a
Default Re: Apache/FTP on unusual ports

Fernando Vaz wrote:
> Hi there folks,
>
> I need to run a web server and a FTP server at home, but my ISP in
> theory doesn't allow this, so I need to run both servers on different
> ports (8080 for Apache and some other high-number ports, like
> 10020-10021, for instance, for FTP). What's the best way to do this?
> First thing that came to my mind is to create a set of iptables rules,
> redirecting requests for the correct ports, and setting apache to
> operate in those ports. How do I do this? Any other methods?
> Thnx in advance,
> Fernando Vaz

For FTP, try editing the port number in /etc/services. Many network
applications pull their port numbers from that file.
Reply With Quote
  #5  
Old 11-25-2004, 04:54 PM
Davide Bianchi
Guest
 
Posts: n/a
Default Re: Apache/FTP on unusual ports

On 2004-11-25, Fernando Vaz <(E-Mail Removed)> wrote:
> purposes, and I'm doing this only to learn how it all works - in fact, I


Then get a second-hand machine and build a small network inside your
house, you'll learn a lot more without breaking any T&C and without
messing around with services on non-standard ports.

Davide

--
Please insert the floppy disk labeled Windows NT Installation CD-ROM into Drive
A:.
Reply With Quote
  #6  
Old 11-25-2004, 05:01 PM
Fernando Vaz
Guest
 
Posts: n/a
Default Re: Apache/FTP on unusual ports

Davide Bianchi escreveu:
> On 2004-11-25, Fernando Vaz <(E-Mail Removed)> wrote:
>
>>I need to run a web server and a FTP server at home, but my ISP in
>>theory doesn't allow this, so I need to run both servers on different

>
>
> If your ISP doesn't allow you to run ftp/web on your connection,
> doing so you are breaking your T&C. Switch ISP or change your contract.
> Davide
>

I am aware of this Davide, but they prohibit it for commercial
purposes, and I'm doing this only to learn how it all works - in fact, I
have no content to distribute on either of the servers, I just need to
learn how to configure them. It's not like I'll consume excessive
bandwith or anything like that with my home study project... In fact,
if I told them about this it's quite possible they would open the ports
for me, I just find it easier (and more didactical) to learn a way
around the blocking.

Fernando
Reply With Quote
Reply

Tags
apache or ftp, ports, unusual

Thread Tools
Display Modes

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
Forum Jump


All times are GMT. The time now is 01:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.