FTP active mode

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

Post Reply
Edas
Posts: 8
Joined: Fri Dec 28, 2012 3:31 pm

FTP active mode

Post by Edas »

Hi. I have some trouble to make ftp active mode to work on TL-WR1043ND.
I use 1.5.8 build.
I found out what nf_nat_ftp and nf_conntrack_ftp modules are missing. Tried to install kmod-ipt-nathelper which contains those kernel modules, but I get error:
satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-ipt-nathelper:
* kernel (= 3.3.8-1-a0ce04ad8bf41ee4d3b0a62333282ebd) *
and the current version is kernel - 3.3.8-1-6267439e7e4da0c6197077c4e8ac581a
Any ideas where to get correct nathelper package or other way to make it work ?

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: FTP active mode

Post by pbix »

You should describe your setup in more detail.

I cannot see why you should need to add any modules to make FTP work. It is only required to forward port 21 properly.

Also, many ISPs block port 21 so you may not be able to use it and will have to select another one.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Edas
Posts: 8
Joined: Fri Dec 28, 2012 3:31 pm

Re: FTP active mode

Post by Edas »

My setup doesn't really matter in this case. (Mean it works if I just plug provider cable direct to my notebook or to the same router with stock FW)
And sorry, but you're pretty mistaken about just 21 port for FTP.
Look for the difference between passive/active ftp connections http://slacksite.com/other/ftp.html or here http://www.jscape.com/blog/bid/80512/Ac ... Simplified
Also my ISP doesn't block anything by contract...

P.S. I'm talking about outbound ftp, not inbound

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: FTP active mode

Post by pbix »

Well I did think you were trying inbound FTP so thanks for clarifying that.

I have used outbound FTP many times over the years with out issue (through my Gargoyle NAT) but have to admit I have never investigated how it works in any detail.

As to why the modules in question will not load well as the error message says it looks like they need to match the kernel version. One thing you could do is build Gargoyle with the modules included in the build. That is the only way to get an exact match in Kernel version.

I do not know why this tight match is needed or how it could be over-ridden. That would need to be taken up over at openwrt.org. I have seen this on several packages now and I don't remember this being such an issue in the Backfire days.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Edas
Posts: 8
Joined: Fri Dec 28, 2012 3:31 pm

Re: FTP active mode

Post by Edas »

I'm actually pretty surprised, what noone has encountered such an issue with latest version. As far as I remember I had no such an issue with 1.5.6 build. Are there any plans to release 1.5.9 or kinda that, I saw there's an Attitude Adjustment RC1 build already. Maybe it's kernel and modules are for the same build... I don't really want to mess with toolchain myself and compile everything from scratch, as each embedded toy has it's own specific, and I don't want to learn one more device :-)

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: FTP active mode

Post by pbix »

The modules identified in the OP are inadvertently not included in several of the Gargoyle builds. This will be addresses in a future release (after v1.5.8).
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Edas
Posts: 8
Joined: Fri Dec 28, 2012 3:31 pm

Re: FTP active mode

Post by Edas »

Hi. I'm looking forward to wait for a new build with nf_nat_ftp/nf_conntract_ftp modules compiled. Pretty happy with this fw, the only one missing thing left :-)
pbix wrote:The modules identified in the OP are inadvertently not included in several of the Gargoyle builds. This will be addresses in a future release (after v1.5.8).

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: FTP active mode

Post by pbix »

Should work in v1.5.9 so give it a go.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

Edas
Posts: 8
Joined: Fri Dec 28, 2012 3:31 pm

Re: FTP active mode

Post by Edas »

Will try this evening, thanks :-)

Edas
Posts: 8
Joined: Fri Dec 28, 2012 3:31 pm

Re: FTP active mode

Post by Edas »

Hi. After flashing firmware all required modules appeared and overall performance improved a bit. FTP works like a charm.

Just one thing to mention:
I've flashed mine and friends router.
Friends router was fresh install, with mine I chose to preserve settings.
Friends router has Plugins menu item, mine doesn't show it.
It's not a problem as I can reach it over http://192.168.x.x/plugins.sh
Just FYI... ;]

Post Reply