|
||||||||
|
|
#1
|
|
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 |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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:. |
|
#6
|
|||
|
|||
|
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 |
![]() |
| Tags |
| apache or ftp, ports, unusual |
| Thread Tools | |
| Display Modes | |
|
|