Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]ftp i passive
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
rudyyy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2005
Posts: 134
Location: /root

PostPosted: Tue Sep 06, 2005 7:40 pm    Post subject: [solved]ftp i passive Reply with quote

nie dziala mi tryb pasywny w proftpd :/ w iptables polise INPUT ustawiona mam na drop, a regulka do iptables wyglada tak:
Code:

iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 --tcp-flags FIN,SYN,RST,PSH,ACK,URG SYN -j ACCEPT


gdy firewalla wylacze, passive dziala. co musze dodac?


Last edited by rudyyy on Tue Sep 06, 2005 9:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
milu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 1122
Location: Poland, Konstancin-Jeziorna

PostPosted: Tue Sep 06, 2005 8:08 pm    Post subject: Reply with quote

FTP korzysta z 2 portów nie tylko z jednego. Dodaj jeszcze regułkę dla portu 20
_________________
Pozdrawiam,
Milu
------------------------------------
Registered Linux User: #246079

Zanim zadasz pytanie przeczytaj to dokładnie!!
Back to top
View user's profile Send private message
rudyyy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2005
Posts: 134
Location: /root

PostPosted: Tue Sep 06, 2005 8:15 pm    Post subject: Reply with quote

z tego co czytalem, port 20 uzywany jest jedynie przy active i jest automatycznie otwierany przez firewall, gdy jest potrzebny - wiec regulki do niego nie trzeba. passive otwiera dodatkowo jakis wyzszy port :/
Back to top
View user's profile Send private message
milu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 1122
Location: Poland, Konstancin-Jeziorna

PostPosted: Tue Sep 06, 2005 8:22 pm    Post subject: Reply with quote

to jeszcze jedno - przekonfiguruj serwer ftp tak żeby używał takiego zakresu wysokich portów jaki możesz otworzyć na firewallu

-- EDIT --
np. w proftpd:
Code:
PassivePorts            60000 62000

_________________
Pozdrawiam,
Milu
------------------------------------
Registered Linux User: #246079

Zanim zadasz pytanie przeczytaj to dokładnie!!
Back to top
View user's profile Send private message
rudyyy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2005
Posts: 134
Location: /root

PostPosted: Tue Sep 06, 2005 8:25 pm    Post subject: Reply with quote

ehkm - jak? :oops:
Back to top
View user's profile Send private message
rudyyy
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jul 2005
Posts: 134
Location: /root

PostPosted: Tue Sep 06, 2005 9:06 pm    Post subject: Reply with quote

PassivePorts najnizszy najwyszy >> /etc/proftpd/proftpd.conf i otworzyc ten zakres na firewalu - koniec 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum