View previous topic :: View next topic |
Author |
Message |
misterLu Guru


Joined: 14 Sep 2003 Posts: 430 Location: Poland
|
Posted: Tue Feb 10, 2004 1:36 pm Post subject: [SOLVED] przekierowanie portow |
|
|
jak przekierowac port ?
czy taka regulka wystarczy?
iptables -A PREROUTING -t nat -p tcp -d AA.BB.CC.DD --dport 21 -j DNAT --to 192.168.0.1:21
czy cos jeszcze musze zrobic ? (bo samo to mi nie dziala)
moge sie z zewnatrz ftpowac, ale po wykonaniu komendy dir, nic sie nie dzieje  |
|
Back to top |
|
 |
muchar Bodhisattva


Joined: 04 Feb 2004 Posts: 690 Location: /dev/urandom
|
Posted: Tue Feb 10, 2004 9:31 pm Post subject: |
|
|
Średnio związane z Gentoo, ale ok;]
DIR nie możesz wykonać, ponieważ FTP wykorzystuje dwa porty 21 oraz 20. Nie jestem pewien, ale musisz chyba również przekierować w podobny sposób port 20. Ale być może pomoże jeśli wczytasz moduł ip_ftp_conntrack lub nat_ftp_conn (nazwy piszę z pamięci, mogą być przekręcone, ale w tym guście w każdym bądź razie). Spróbuj również wykorzystać tryb PASSIVE do pobrania DIR. _________________ MuchaR
Nie denerwuj mnie. Kliknij tu!!!
Homepage: http://muchar.one.pl!!! |
|
Back to top |
|
 |
no4b Bodhisattva


Joined: 18 Jan 2004 Posts: 774 Location: Tarnów, Poland
|
Posted: Tue Feb 10, 2004 10:26 pm Post subject: |
|
|
Ja mam na jednym komputerze za natem serwer ftp (proftpd) i wystarczylo przekierowac port 21.
Czesto niemoznosc dirowania jest spowodowana wlaczeniem/wylaczeniem trybu passive w kliencie. |
|
Back to top |
|
 |
muchar Bodhisattva


Joined: 04 Feb 2004 Posts: 690 Location: /dev/urandom
|
Posted: Tue Feb 10, 2004 10:43 pm Post subject: |
|
|
no4b wrote: | Czesto niemoznosc dirowania jest spowodowana wlaczeniem/wylaczeniem trybu passive w kliencie. |
Tak jak wspominałem  _________________ MuchaR
Nie denerwuj mnie. Kliknij tu!!!
Homepage: http://muchar.one.pl!!! |
|
Back to top |
|
 |
misterLu Guru


Joined: 14 Sep 2003 Posts: 430 Location: Poland
|
Posted: Wed Feb 11, 2004 12:50 am Post subject: |
|
|
muchar wrote: | Średnio związane z Gentoo, ale ok;]
|
kumpel mnie pytal, nie wiedzialem gdzie sie udać, wiec do was przyszedlem z zapytaniem.
dzięki, pomogło |
|
Back to top |
|
 |
muchar Bodhisattva


Joined: 04 Feb 2004 Posts: 690 Location: /dev/urandom
|
Posted: Wed Feb 11, 2004 1:10 am Post subject: |
|
|
misterLu wrote: | dzięki, pomogło |
Takie było założenie.
Zmień topic na SOLVED. I niech to zostanie przyjęte jako standard tutaj - rozwiąze się historia, zmieniamy topic na SOLVED. Co Wy na to? _________________ MuchaR
Nie denerwuj mnie. Kliknij tu!!!
Homepage: http://muchar.one.pl!!! |
|
Back to top |
|
 |
no4b Bodhisattva


Joined: 18 Jan 2004 Posts: 774 Location: Tarnów, Poland
|
Posted: Wed Feb 11, 2004 8:46 am Post subject: |
|
|
Teraz moge dac solved, lae nie lepiej ROZWIAZANE? Przeciez to polskie forum. |
|
Back to top |
|
 |
muchar Bodhisattva


Joined: 04 Feb 2004 Posts: 690 Location: /dev/urandom
|
|
Back to top |
|
 |
czemu n00b

Joined: 08 Feb 2004 Posts: 9 Location: Chrzanow, Poland
|
Posted: Wed Feb 11, 2004 3:59 pm Post subject: |
|
|
no4b wrote: | Czesto niemoznosc dirowania jest spowodowana wlaczeniem/wylaczeniem trybu passive w kliencie. |
Bo to właśnie na tym polega
Port 20 - sciaga
Port 21 - wysyla
Lub na odwrót, nie wiem dokładnie. Tryb pasywny robi obydwie rzeczy na jednym porcie. _________________ czemu.org // bash.org.pl |
|
Back to top |
|
 |
|