LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-13-2004, 08:12 AM   #1
rogk
Member
 
Registered: Feb 2004
Location: Finland
Distribution: Mandrake 10.0
Posts: 70

Rep: Reputation: 15
Can I get to my ftp-server from WAN


My ISP (local phone company) rules include that I can't build up own server to used from WAN. I use it now only in LAN. I have tried to connect to ftp-server from "outside", but the server doesn't showed from "outside". I found site www.dyndns.org. Is it possible that they could help me in this thing or do i have to change ISP?

Last edited by rogk; 08-13-2004 at 08:25 AM.
 
Old 08-13-2004, 08:33 AM   #2
bruj3w
Member
 
Registered: Mar 2004
Location: england
Distribution: slackware
Posts: 164

Rep: Reputation: 30
dyndns will only map a domain name to your ip, so no it wont help you.
you probably can have your own server running, though dont quote me on that.

flush all iptables rules, if you have any, with iptables -F
then issue the command : iptables -A input -p tcp -dport 20:21 -j ACCEPT
this will open both the control and data ports that ftp uses.

then fire up your ftp deamon, if it isnt already running and try connect from an external address.

good luck.
 
Old 08-13-2004, 08:40 AM   #3
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
You can work around this by running your ftp on a different port. For instance...this is what I use:

FTP server listens on: port 6531 (looks like PCAnywhere)
Passive connections: port 6532-6534

...then I just configure my router to open and forward ports 6531-6534 to my ftp server. If your FTP server is not behind a router, then just make sure ports 6531-6534 are open on that machine.
 
Old 08-13-2004, 09:24 AM   #4
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
Does your ftp server have a private (192.168..,172.16..,10...) or a public ip adress
Is your firewall blocking port 21 ?

A isp could use a firewall to block certain port/

PS never post your public ip addres
 
Old 08-13-2004, 10:44 AM   #5
rogk
Member
 
Registered: Feb 2004
Location: Finland
Distribution: Mandrake 10.0
Posts: 70

Original Poster
Rep: Reputation: 15
I have router (Zyxel Prestige 324) and my ftp server have a private IP. The isp maybe blocking the port i'm not sure. I have to find out it.
I have configured router like this: Sua server - ftp -start port = 20 - End port = 21 - Sever IP-address = 192.168.1.5

Last edited by rogk; 08-13-2004 at 11:05 AM.
 
Old 08-13-2004, 05:20 PM   #6
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
You have to setup iptables to nat your ftp server
 
Old 08-14-2004, 02:24 AM   #7
rogk
Member
 
Registered: Feb 2004
Location: Finland
Distribution: Mandrake 10.0
Posts: 70

Original Poster
Rep: Reputation: 15
Please, be patient. I changed the port to the /etc/proftpd.conf . I put there port 6531 and same time i changed routers ftp start port 6531 and end port 6534. But when I changed proftpd.conf port to 6531, i can't get to ftp even private ip-address.
When I'll get to the ftp with private ip-address and I'll try with public ip there comes prompt "530 User jack cannot log in".
I tried to find "iptables" with command line, no answer. I even set the firewall of from the control center. I have done many things and now i'm confused.
It's more interesting to get the ftp working from WAN before studing those security things.
 
  


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
The WAN and X WeNdeL Linux - Security 5 08-08-2005 02:46 PM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
Sending WAN IP address to FTP server sloik2000 Linux - Networking 2 02-08-2005 02:59 PM
WAN : unable to ping to WAN ckl Linux - Networking 0 11-18-2004 01:56 AM
Postfix / WAN zdavis Linux - Networking 5 04-14-2003 02:40 PM

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

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