Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2014-09-27 23:22:01

  torpeda80 - Użytkownik

torpeda80
Użytkownik
Zarejestrowany: 2007-03-28

problem z przekierowaniem portu - proftpd

Witam
Mam problem z poprawnym przekierowaniem portu. Mam dynamiczne ip modem od Vectry i chciałem postawić ftp na debianie(laptop)  za routerem. Zainstalowałem proftpd na laptopie  i skonfigurowałem  na szybko.
Na routerze przekierowałem porty - nie wiem czy poprawnie:

[img]http://przeklej.org/file/Lngs8u/snapshot1.png - w skazałem kompter na którym jest proftp[/img]

Tylko wpisując swoj adres ip - (choc mam dynamiczny  to i tak przez pewien czas powinienem wejsc na ten konkretny który mam obecnie dany od dostawcy)
w telefonie komórkowym, odpalając przeglądarkę i wpisując 109.xxx.xxx.xxx:21 otrzymuje komunikat strona internetowa jest niedostępna.

Ruter oczywiście po zmianie danych w zakładce virtual servers został zresetowany - wypiąłem zasialnie na 5 sekund.

Nie za bardzo wiem co źle robie. Proszę o wskazówkę.

Offline

 

#2  2014-09-27 23:41:38

  winnetou - złodziej wirków ]:->

winnetou
złodziej wirków ]:->
Skąd: Jasło/Rzeszów kiedyś Gdańs
Zarejestrowany: 2008-03-31
Serwis

Re: problem z przekierowaniem portu - proftpd

[quote=torpeda80]w telefonie komórkowym, odpalając przeglądarkę i wpisując 109.xxx.xxx.xxx:21 otrzymuje komunikat strona internetowa jest niedostępna.[/quote]
No i wszystko działa prawidłowo ;) Komunikat jest jak najbardziej poprawny ;]
Użyj jakiegoś klienta FTP do tego albo wpisz w przegląradce pełny, adres wraz z zaznaczeniem jaki to ma być protokół. I portu (jako że domyślny) nie musisz podawać.

Jeśli przeglądarka w telefonie obsługuje Ci protokół FTP to wpisz jako adres

Kod:

ftp://109.xxx.xxx.xxx

Jak pominiesz "ftp://" to przeglądarka potraktuje to jako domyślny dla niej protokół i będzie się próbowała łaczyć przez http/https


LRU: #472938
[b]napisz do mnie:[/b] ola@mojmail.eu
[url=http://valhalla.org.pl]Hołmpejdż[/url] | [url=http://valhalla.org.pl/foto]Galerie[/url] | [url=http://valhalla.org.pl/tech]"Twórczość"[/url] || [url=http://img.munn.in]Free Image Hosting[/url]

Offline

 

#3  2014-09-27 23:53:53

  torpeda80 - Użytkownik

torpeda80
Użytkownik
Zarejestrowany: 2007-03-28

Re: problem z przekierowaniem portu - proftpd

Przeglądarka w telefonie obsługuje ftp - sprawdziłem na przykladzie np. ftp://ftp.icm.edu.pl
ale jak wpisuje swoj adress:
ftp://109.xxx.xxx.xx
ftp://109.xxx.xxx.xx:21
oba nie działaja, niedostepne strony.

Offline

 

#4  2014-09-27 23:57:43

  winnetou - złodziej wirków ]:->

winnetou
złodziej wirków ]:->
Skąd: Jasło/Rzeszów kiedyś Gdańs
Zarejestrowany: 2008-03-31
Serwis

Re: problem z przekierowaniem portu - proftpd

telnet na port 21/20 odpowiada? Na zewnętrznym IP i na kompie na którym masz odpalony serwer ftp?


LRU: #472938
[b]napisz do mnie:[/b] ola@mojmail.eu
[url=http://valhalla.org.pl]Hołmpejdż[/url] | [url=http://valhalla.org.pl/foto]Galerie[/url] | [url=http://valhalla.org.pl/tech]"Twórczość"[/url] || [url=http://img.munn.in]Free Image Hosting[/url]

Offline

 

#5  2014-09-28 00:06:46

  torpeda80 - Użytkownik

torpeda80
Użytkownik
Zarejestrowany: 2007-03-28

Re: problem z przekierowaniem portu - proftpd

Właśnie nie:

Kod:

terminal-telnet:open 
109.xxx.xxx.xxx:20
109.xxx.xxx.xxx:21
telnet: could not resolve 109.xxx.xxx.xxx:21/telnet: Name or service not known

Offline

 

#6  2014-09-28 00:10:18

  winnetou - złodziej wirków ]:->

winnetou
złodziej wirków ]:->
Skąd: Jasło/Rzeszów kiedyś Gdańs
Zarejestrowany: 2008-03-31
Serwis

Re: problem z przekierowaniem portu - proftpd

no to nie masz routingu do tego IPka - jesteś pewien że to jest publiczny adres?


LRU: #472938
[b]napisz do mnie:[/b] ola@mojmail.eu
[url=http://valhalla.org.pl]Hołmpejdż[/url] | [url=http://valhalla.org.pl/foto]Galerie[/url] | [url=http://valhalla.org.pl/tech]"Twórczość"[/url] || [url=http://img.munn.in]Free Image Hosting[/url]

Offline

 

#7  2014-09-28 00:16:00

  torpeda80 - Użytkownik

torpeda80
Użytkownik
Zarejestrowany: 2007-03-28

Re: problem z przekierowaniem portu - proftpd

Nie wiem czy dobrze rozumiem ale gdy podałem myip w googlach to wyskoczyl mi ten adres. Pomyslalem sobie ze to jest moj ip dynamiczny który otrzymalem od dostawcy na jakis czas.

___


moj konfig ftp:

Kod:

#
# /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes, reload proftpd after modifications, if
# it runs in daemon mode. It is not required in inetd/xinetd mode.
# 

# Includes DSO modules
Include /etc/proftpd/modules.conf

# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6                on
# If set on you can experience a longer connection delay in many cases.
IdentLookups            off

ServerName            "mojFTP"
ServerType            standalone
DeferWelcome            off

MultilineRFC2228        on
DefaultServer            on
ShowSymlinks            on

TimeoutNoTransfer        600
TimeoutStalled            600
TimeoutIdle            1200

DisplayLogin                    welcome.msg
DisplayChdir                   .message true
ListOptions                    "-l"

DenyFilter            \*.*/

# Use this to jail all users in their homes 
# DefaultRoot            ~

# Users require a valid shell listed in /etc/shells to login.
# Use this directive to release that constrain.
# RequireValidShell        off

# Port 21 is the standard FTP port.
Port                21

# In some cases you have to specify passive ports range to by-pass
# firewall limitations. Ephemeral ports can be used for that, but
# feel free to use a more narrow range.
# PassivePorts                  49152 65534

# If your host was NATted, this option is useful in order to
# allow passive tranfers to work. You have to use your public
# address and opening the passive ports used on your firewall as well.
# MasqueradeAddress        1.2.3.4

# This is useful for masquerading address with dynamic IPs:
# refresh any configured MasqueradeAddress directives every 8 hours
<IfModule mod_dynmasq.c>
# DynMasqRefresh 28800
</IfModule>

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances            30

# Set the user and group that the server normally runs at.
User                proftpd
Group                nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask                022  022
# Normally, we want files to be overwriteable.
AllowOverwrite            on

# Uncomment this if you are using NIS or LDAP via NSS to retrieve passwords:
# PersistentPasswd        off

# This is required to use both PAM-based authentication and local passwords
# AuthOrder            mod_auth_pam.c* mod_auth_unix.c

# Be warned: use of this directive impacts CPU average load!
# Uncomment this if you like to see progress and transfer rate with ftpwho
# in downloads. That is not needed for uploads rates.
#
# UseSendFile            off

TransferLog /var/log/proftpd/xferlog
SystemLog   /var/log/proftpd/proftpd.log

# Logging onto /var/log/lastlog is enabled but set to off by default
#UseLastlog on

# In order to keep log file dates consistent after chroot, use timezone info
# from /etc/localtime.  If this is not set, and proftpd is configured to
# chroot (e.g. DefaultRoot or <Anonymous>), it will use the non-daylight
# savings timezone regardless of whether DST is in effect.
#SetEnv TZ :/etc/localtime

<IfModule mod_quotatab.c>
QuotaEngine off
</IfModule>

<IfModule mod_ratio.c>
Ratios off
</IfModule>


# Delay engine reduces impact of the so-called Timing Attack described in
# http://www.securityfocus.com/bid/11430/discuss
# It is on by default. 
<IfModule mod_delay.c>
DelayEngine on
</IfModule>

<IfModule mod_ctrls.c>
ControlsEngine        off
ControlsMaxClients    2
ControlsLog           /var/log/proftpd/controls.log
ControlsInterval      5
ControlsSocket        /var/run/proftpd/proftpd.sock
</IfModule>

<IfModule mod_ctrls_admin.c>
AdminControlsEngine off
</IfModule>

#
# Alternative authentication frameworks
#
#Include /etc/proftpd/ldap.conf
#Include /etc/proftpd/sql.conf

#
# This is used for FTPS connections
#
#Include /etc/proftpd/tls.conf

#
# Useful to keep VirtualHost/VirtualRoot directives separated
#
#Include /etc/proftpd/virtuals.conf

# A basic anonymous configuration, no upload directories.

# <Anonymous ~ftp>
#   User                ftp
#   Group                nogroup
#   # We want clients to be able to login with "anonymous" as well as "ftp"
#   UserAlias            anonymous ftp
#   # Cosmetic changes, all files belongs to ftp user
#   DirFakeUser    on ftp
#   DirFakeGroup on ftp
# 
#   RequireValidShell        off
# 
#   # Limit the maximum number of anonymous logins
#   MaxClients            10
# 
#   # We want 'welcome.msg' displayed at login, and '.message' displayed
#   # in each newly chdired directory.
#   DisplayLogin            welcome.msg
#   DisplayChdir        .message
# 
#   # Limit WRITE everywhere in the anonymous chroot
#   <Directory *>
#     <Limit WRITE>
#       DenyAll
#     </Limit>
#   </Directory>
# 
#   # Uncomment this if you're brave.
#   # <Directory incoming>
#   #   # Umask 022 is a good standard umask to prevent new files and dirs
#   #   # (second parm) from being group and world writable.
#   #   Umask                022  022
#   #            <Limit READ WRITE>
#   #            DenyAll
#   #            </Limit>
#   #            <Limit STOR>
#   #            AllowAll
#   #            </Limit>
#   # </Directory>
# 
# </Anonymous>

# Include other custom configuration files
Include /etc/proftpd/conf.d/

#UseIPv6 off

<Global>
    RequireValidShell off
</Global>

DefaultRoot ~ ftpuser

<Limit LOGIN>
    DenyGroup !ftpuser
</Limit>

Offline

 

#8  2014-09-28 00:25:05

  winnetou - złodziej wirków ]:->

winnetou
złodziej wirków ]:->
Skąd: Jasło/Rzeszów kiedyś Gdańs
Zarejestrowany: 2008-03-31
Serwis

Re: problem z przekierowaniem portu - proftpd

[quote=torpeda80]Nie wiem czy dobrze rozumiem ale gdy podałem myip w googlach to wyskoczyl mi ten adres. Pomyslalem sobie ze to jest moj ip dynamiczny który otrzymalem od dostawcy na jakis czas.[/quote]
Nie to był IP którym wychodzisz od dostawcy ;] A po drodze możesz mieć milion innych bramek, routerów i zmian adresacji.


LRU: #472938
[b]napisz do mnie:[/b] ola@mojmail.eu
[url=http://valhalla.org.pl]Hołmpejdż[/url] | [url=http://valhalla.org.pl/foto]Galerie[/url] | [url=http://valhalla.org.pl/tech]"Twórczość"[/url] || [url=http://img.munn.in]Free Image Hosting[/url]

Offline

 

#9  2014-09-28 00:59:17

  Jacekalex - Podobno człowiek...;)

Jacekalex
Podobno człowiek...;)
Skąd: /dev/urandom
Zarejestrowany: 2008-01-07

Re: problem z przekierowaniem portu - proftpd

Ten Proftpd chodzi w trybie aktywnym czy pasywnym?

Jeśli w pasywnym, to korzysta z zestawu portów powyżej 1024,
i jeśli nie kontrolujesz routera z publicznym IP (na ktory przychodzi polączenie), i nie ustawisz DMZ na IP serwera z Proftpd, to łatwiej parasol w doopie otworzysz, niż skonfigurujesz działający serwer FTP.

Weź sobie lepiej postaw serwer SSH - ten chodzi na jednym porcie i żadnych pasywnych nie potrzebuje, tylko albo stałego IP, albo domeny podpiętej do dynamicznego IP.

[s]Ten adres IP masz stały czy przydzielany dynamicznie, jak w jakimś PPPOE czy czymś innym.[/s]

Do dynamicznego IP podepnij domenę np przez dyndns.org czy coś podobnego, i zapnij klienta w systemie, żeby reagował na każdą zmianę IP.

Ostatnio edytowany przez Jacekalex (2014-09-28 01:01:46)


W demokracji każdy naród ma taką władzę, na jaką zasługuje ;)
Si vis pacem  para bellum  ;)       |       Pozdrawiam :)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)

[ Generated in 0.019 seconds, 10 queries executed ]

Informacje debugowania

Time (s) Query
0.00035 SET CHARSET latin2
0.00009 SET NAMES latin2
0.00179 SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.14.247.5' WHERE u.id=1
0.00467 REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.14.247.5', 1716132095)
0.00069 SELECT * FROM punbb_online WHERE logged<1716131795
0.00184 DELETE FROM punbb_online WHERE ident='85.208.96.208'
0.00116 SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=26482 AND t.moved_to IS NULL
0.00010 SELECT search_for, replace_with FROM punbb_censoring
0.00241 SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=26482 ORDER BY p.id LIMIT 0,25
0.00110 UPDATE punbb_topics SET num_views=num_views+1 WHERE id=26482
Total query time: 0.0142 s