Adding nfs_conntrack_tftp

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

Post Reply
chainu127
Posts: 2
Joined: Sat Jan 23, 2016 8:08 pm

Adding nfs_conntrack_tftp

Post by chainu127 »

Hi all,

I am running a Gargoyle 1.9.x build for the Linksys e2000 router, (details here):
http://www.gargoyle-router.com/phpbb/vi ... 180#p35286

I am having trouble connecting through TFTP (not FTP) to a server on the WAN side from within my LAN. I've tried adding port 69 to my port forwarding rules, but I believe this is WAN -> LAN, which is the opposite of what I need.

I suspect that my issue is because there are no nf_conntrack_tftp and nf_nat_tftp modules in this build (not listed under lsmod or in /sys/module/).

It would seem this module should be included in the kmod-nf-nathelper package:

Code: Select all

root@router:~# opkg info kmod-nf-nathelper
Package: kmod-nf-nathelper
Version: 3.18.20-1
Depends: kernel (= 3.18.20-1-218c25f965f38473476eadfc59ba065c), kmod-nf-nat
Status: unknown hold not-installed
Section: kernel
Architecture: brcm47xx
MD5Sum: 583880bbab8678962fa0422dc30b91c8
Size: 6197
Filename: kmod-nf-nathelper_3.18.20-1_brcm47xx.ipk
Source: package/kernel/linux
Description: Default Netfilter (IPv4) Conntrack and NAT helpers
 Includes:
 - ftp
 - irc
 - tftp

Package: kmod-nf-nathelper
Version: 3.18.23-1-a6d079c741b46687b69059b00fc4b2f8
Depends: kernel (= 3.18.23-1-a6d079c741b46687b69059b00fc4b2f8), kmod-nf-nat
Status: install hold installed
Architecture: brcm47xx
Installed-Time: 1447762761
As you can see, two versions of kmod-nf-nathelper list in opkg for me, and one is installed. I am unable to install the other kmod-nf-nathelper which explicitly lists tftp, because the kernel version in this build is 3.18.23, not 3.18.20.

Is there any way for me to add nf_conntrack_tftp and nf_nat_tftp? It is implied that it is available for the brcm47xx-mips74k architecture. I don't mind rebuilding the firmware from source if necessary, but I have never built Gargoyle or OpenWRT before.

Alternatively, is there a way to modify loading nfs_conntrack_ftp, which I DO have, to use port 69 instead of port 21? I'm not sure how conntrack modules work, if this would suit my needs- but I thought it might be a possible workaround.

Thanks,
~Chainu

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Adding nfs_conntrack_tftp

Post by ispyisail »

use openwrt or build your own image is the only suggestion i can give you

Post Reply