From PM
AliensAreFuzzy said:
Hey, you responded to my question about an FTP server a while ago and I was just wondering what are the extra steps for having a router?
This varies from router to router, but I'll give it a try. You probably have two options:
1. Quick and dirty
You can turn on the DMZ (Demilitarized Zone). Just enable the DMZ and enter the IP address of the computer you have the ftp server on. This is the easiest method, but like I said its dirty. All outside traffic received by the router that does not have a specific computer to go to will be routed to this computer. Nice because you don't have any exta router steps if you want your computer to act as a web server, ssh server, or any other server. But...being the computer is exposed to the internet, you loose the firewall protection of the router. Any hacks directed at the router will be forwarded to your computer. Even though you are using a Mac, rather than a pc, I can't recomend this.
2. Virtual Servers, Port Forwarding, (Perfered Method)
In your router configeration you should have an option such as Virtual Servers, Port Forwarding, or something else (many manufactures have their own name for it). Start filling in the feilds:
Name: ftp (or what ever you want to refer to it as, doesn't really matter)
Private IP: The Ip address of you computer with ftp, not the ip of the router
Protocol: TCP (I'm pretty sure its TCP, not UDP. UDP seems silly for FTP)
Private Port: 21 (assuming you are using the default port)
Public Port: 21 (assuming you want to ftp into the defalut port)
You may have a schedule. Select always or whatever you want.
Make sure its enabled and save.
If you have an airport, you may need to get more router-specific directions. Let me know if you don't understand anything.
Not to sound like a billboard, but you may want to check out
no-ip. You can get a DNS forward so you don't have to enter in your ip address everytime you want to ftp into your server. I'm sure there are other services, but this is the one I've always delt with.