PDA

Bekijk de volledige versie : VSFTPD - change listen port?



greengreen
19-08-2006, 09:51
Hi,
Is any possibility change listen port from wan?And how to change iptables rules?
pleas help.
Oleg's firmware 7e
thanks very much

greengreen
28-08-2006, 07:56
Nobody knows??
pls help.:(

Styno
28-08-2006, 08:49
Hi,
Is any possibility change listen port from wan?Here are some nice tutorials: http://www.sprayfly.com/wiki/VSFTP_Guides (You want to edit the vsftpd.conf file.

And how to change iptables rules?
pleas help.
Oleg's firmware 7e
thanks very muchSearch this forum on 'post-firewall', there's lots of info about it.

greengreen
28-08-2006, 10:53
Thx but my problem of changing listening port there ins't :mad:
I know that a have to change vsftpd.conf and post-firewall but every my tries wasn't sucssesfuly.

Any other ideas?
thx

CountZero
28-08-2006, 17:20
What have you tried?

Kind of hard to suggest something other than the correct things to do, if it doesn't work for some reason you have to be more specific.

greengreen
29-08-2006, 15:48
Hi,
i try to add to vsftpd.conf lines:
listen_port=2121
ftp_data_port=2020

post-firewall look like:
#!/bin/sh
iptables -D INPUT -j DROP

iptables -A INPUT -p tcp --dport 2121 -j ACCEPT
iptables -A INPUT -p tcp --dport 2020 -j ACCEPT

iptables -A INPUT -p tcp --dport 80 -j ACCEPT

iptables -A INPUT -p tcp ! --dport 22 -j DROP
/usr/local/rootgraph.sh diff > /dev/null


when i want to connect to vsftpd (over total commander):
to user@ipadress:2121
so connect call failed
:mad:
ftp is listening still on port 21 from lan