This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
[SOLVED] FTP access denied
-
Brent502
- NewUser

- Posts: 13
- Joined: 30 Oct 2012 21:50
- Status: Offline
[SOLVED] FTP access denied
The NAS4Free FTP server have subnet 10.0.254.X. Clients from 10.0.254.X can FTP into it, but from other subnet can not..
FTP configure to access CIFS share /mnt/ds2. Host allow/Host deny = empty
Here is a the screenshot of FTP logs
Any idea?
FTP configure to access CIFS share /mnt/ds2. Host allow/Host deny = empty
Here is a the screenshot of FTP logs
Any idea?
You do not have the required permissions to view the files attached to this post.
Last edited by Brent502 on 12 Nov 2012 20:45, edited 2 times in total.
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
Idea?
In first, for local network add to /etc/host.allow line
In second - this not help me organize access from internet to ftp folders. I think - this is router problem, but I don't know how to repair.
In first, for local network add to /etc/host.allow line
Code: Select all
ALL : ALL : allowIn second - this not help me organize access from internet to ftp folders. I think - this is router problem, but I don't know how to repair.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
Brent502
- NewUser

- Posts: 13
- Joined: 30 Oct 2012 21:50
- Status: Offline
Re: FTP access denied
The /etc/host.allow already have
ALL : ALL : allow
I don't think it's a router problem. I have a system running FileZilla Server in 10.0.254.X and clients from different subnet were able FTP into it..I was going to replace the FileZilla server with this NAS4Free FTP but run into this problem..
ALL : ALL : allow
I don't think it's a router problem. I have a system running FileZilla Server in 10.0.254.X and clients from different subnet were able FTP into it..I was going to replace the FileZilla server with this NAS4Free FTP but run into this problem..
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
You right, this is wrapper problems
I want attach to LAB server from my home some little program.
What I have?
1. Advanced|File Editor - not working, it can not load some files.
2. ProFTPd - not working, mod_wrap denied access. Temporary solved by adding to /etc/hosts my remote IP. But this task for router, for his DHCP server, NAS4Free must ask from DHCP and dynamically add IPs names to /etc/host.
3. SSHd - also not working. Also some wrapper. I'm dumb, I threw SSH port to another server today, and climb the password from the main. And I do not understand why the server did not banned me.
I can only write in a firewall rule - add deny ip from any to any But the files will be carefully preserved
I want attach to LAB server from my home some little program.
What I have?
1. Advanced|File Editor - not working, it can not load some files.
2. ProFTPd - not working, mod_wrap denied access. Temporary solved by adding to /etc/hosts my remote IP. But this task for router, for his DHCP server, NAS4Free must ask from DHCP and dynamically add IPs names to /etc/host.
3. SSHd - also not working. Also some wrapper. I'm dumb, I threw SSH port to another server today, and climb the password from the main. And I do not understand why the server did not banned me.
I can only write in a firewall rule - add deny ip from any to any But the files will be carefully preserved
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
If you have full version, you can edit /etc/rc.d/proftpd file and give to work FTP access
Find string and replace to NO.
____________________________________________________________________________________________________________________________
for embedded version need some as install packages
And edit string into file /etc/rc.d/proftpd
replace to NO.
After check how it work ( save and restart ftp ) - add startup postinit script /any/place/postinit.sh
cat /any/place/postinit.sh
chmod 755 /any/place/postinit.sh
Find string
Code: Select all
proftpd_modwrap_enable=${proftpd_modwrap_enable:-"YES"}____________________________________________________________________________________________________________________________
for embedded version need some as install packages
Code: Select all
mkdir -p /mnt/data/opt/etc_rcd
mount_unionfs /mnt/data/opt/etc_rcd /etc/rc.d
Code: Select all
proftpd_modwrap_enable=${proftpd_modwrap_enable:-"YES"}After check how it work ( save and restart ftp ) - add startup postinit script /any/place/postinit.sh
cat /any/place/postinit.sh
Code: Select all
#!/bin/sh
mount_unionfs /mnt/data/opt/etc_rcd /etc/rc.d
/etc/rc.d/proftpd restart
Last edited by alexey123 on 11 Nov 2012 15:09, edited 2 times in total.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
Brent502
- NewUser

- Posts: 13
- Joined: 30 Oct 2012 21:50
- Status: Offline
Re: FTP access denied
Thanks! I have the embedded version running on USB stick. I will try it tomorrow and see.
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: FTP access denied
I can't confirm this. My server accepts connections, and can deny by /etc/host.allow.
ftpd: IPADDR : deny
Just add the value to System|Advanced|rc.conf.
Name: proftpd_modwrap_enable
Value: NO
Then, restart FTP service.
Daisuke Aoyama
ftpd: IPADDR : deny
You don't need edit this.alexey123 wrote:proftpd_modwrap_enable=${proftpd_modwrap_enable:-"YES"}
Just add the value to System|Advanced|rc.conf.
Name: proftpd_modwrap_enable
Value: NO
Then, restart FTP service.
Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
Before the request goes to /etc/hosts.allow, it must pass filter /etc/hosts, is not it? In case connect to FTP from outside my lan, how many hosts I need add to /etc/hosts and /etc/hosts.allow when my clients have dynamic IP? I need add manually all internet hosts to 2 files, and 0.2*$All_Internet_host_count I need add to hosts.deny.daoyama wrote:I can't confirm this. My server accepts connections, and can deny by /etc/host.allow.
ftpd: IPADDR : deny
Nas4free have firewall, It work great, why I need use wrapper?

Thank you, I check this way.daoyama wrote:You don't need edit this.alexey123 wrote:proftpd_modwrap_enable=${proftpd_modwrap_enable:-"YES"}
Just add the value to System|Advanced|rc.conf.
Name: proftpd_modwrap_enable
Value: NO
Then, restart FTP service.
Daisuke Aoyama
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: FTP access denied
I didn't check, but you don't have reverse DNS of IPs ?alexey123 wrote:Before the request goes to /etc/hosts.allow, it must pass filter /etc/hosts, is not it? In case connect to FTP from outside my lan, how many hosts I need add to /etc/hosts and /etc/hosts.allow when my clients have dynamic IP? I need add manually all internet hosts to 2 files, and 0.2*$All_Internet_host_count I need add to hosts.deny.daoyama wrote:I can't confirm this. My server accepts connections, and can deny by /etc/host.allow.
ftpd: IPADDR : deny
I have no additional /etc/hosts entry. It's only three lines. (::1, 127.0.0.1, 192.168.1.4)
You need ALL deny + allowed IPs/Names like this:
ftpd: allowed IPs or Names: allow
ftpd: ALL : deny
My NAS4Free 9.1.0.1.431(local IP 192.168.1.4) is behind NAT router(124.155.XXX.XXX).
My FTP client(local IP 172.18.0.20) connect via NAT router(203.141.148.97).
If no set to /etc/host.allow(ALL:ALL:allow only):
proftpd[5686]: 192.168.1.4 (203.141.148.97[203.141.148.97]) - mod_wrap/1.2.4: using access files: /etc/hosts.allow, /etc/hosts.deny
proftpd[5686]: 192.168.1.4 (203.141.148.97[203.141.148.97]) - mod_wrap/1.2.4: allowed connection from bf-gw.peach.ne.jp
If set to "ftpd: 203.141.148.97: deny" to /etc/host.allow:
proftpd[7387]: 192.168.1.4 (203.141.148.97[203.141.148.97]) - mod_wrap/1.2.4: using access files: /etc/hosts.allow, /etc/hosts.deny
proftpd[7387]: 192.168.1.4 (203.141.148.97[203.141.148.97]) - mod_wrap/1.2.4: refused connection from bf-gw.peach.ne.jp
Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
Dear Aoyama, you right, but if your client from outside have static IP.
If client have dynamic IP from internet provider, all building not work. It only prevents normal operation
I have no problem with FTP inside my LAN, CPU overload during transfer - this is not problem for me.
I have problem, when I want work from my home or from any factory and need access to my files. My boss live in another city, and he also sometimes search on my storage any backup, any manual, any schematics. We have dynamic IPs - providers replace IPs 1/day, and I need manually one time per day input IP/hostnames to /etc/hosts and /etc/hosts.allow? This way not possible.
Wrappers give me security? NO! Against brute force attack I have firewall + ban module for ftp and fail2ban for SSH and web server. They works great.
Plus prevent ban on router's firewall for some IPs and networks.
May be inside big LAN wrappers can help, I don't know, but If I give access to server from WAN - NO, I don't need its.
If client have dynamic IP from internet provider, all building not work. It only prevents normal operation
I have no problem with FTP inside my LAN, CPU overload during transfer - this is not problem for me.
I have problem, when I want work from my home or from any factory and need access to my files. My boss live in another city, and he also sometimes search on my storage any backup, any manual, any schematics. We have dynamic IPs - providers replace IPs 1/day, and I need manually one time per day input IP/hostnames to /etc/hosts and /etc/hosts.allow? This way not possible.
Wrappers give me security? NO! Against brute force attack I have firewall + ban module for ftp and fail2ban for SSH and web server. They works great.
Plus prevent ban on router's firewall for some IPs and networks.
May be inside big LAN wrappers can help, I don't know, but If I give access to server from WAN - NO, I don't need its.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: FTP access denied
Hi,
Below log is the log of dynamic IP client.
proftpd[7289]: 192.168.1.4 (210.139.89.108[210.139.89.108]) - mod_wrap/1.2.4: allowed connection from pl364.nas93g.p-tokyo.nttpc.ne.jp
Yes, the server is static IP. But the client have dynamic IP and connect to NAS4Free via the provider.
I have not yet edited /etc/hosts. But I edited /etc/hosts.allow from WebGUI only.
So, I didn't understand why you can't connect.
Daisuke Aoyama
This is not true. I have both fixed IP and dynamic IP. I can connect with dynamic IP.alexey123 wrote:Dear Aoyama, you right, but if your client from outside have static IP.
If client have dynamic IP from internet provider, all building not work.
Below log is the log of dynamic IP client.
proftpd[7289]: 192.168.1.4 (210.139.89.108[210.139.89.108]) - mod_wrap/1.2.4: allowed connection from pl364.nas93g.p-tokyo.nttpc.ne.jp
Yes, the server is static IP. But the client have dynamic IP and connect to NAS4Free via the provider.
I have not yet edited /etc/hosts. But I edited /etc/hosts.allow from WebGUI only.
So, I didn't understand why you can't connect.
Yes, I agree this setting. TCP warpper is one of filter. It can not cover all case.alexey123 wrote:I have firewall + ban module for ftp and fail2ban for SSH and web server.
Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
In first, add to /etc/rc.conf variable proftpd_modwrap_enable="NO" is true. It work. I can repair topic to solved, but I want understanding also
In second, without picture no understand. Network

I use default ftp setting, differences only

What I know?
I know all my network hosts and I can add its to /etc/hosts, /etc/hosts.allow and /etc/hosts.deny. For /etc/hosts I need add ALL LAN hosts for give access over mod_wrap.
To /etc/hosts.allow I define allowed hosts and protocol, to /etc/hosts.deny I define denied protocols for some hosts on my LAN.
For LAN I do it only once and this work great
Algorithm

Now I need define outside hosts. OUPS!!!
I don't know any about outside hosts in case dynamic IP, such hostname or IP. Providers change hostnames, IPs for remote hosts and I can't define it before boss or accountant or any people call to me and say: "I can't input, repair your server!!". In this case I go to logs, see where denied IPs, add its to /etc/hosts AND /etc/hosts.allow, and call to boss & e.t.c - "CHECK NOW". This work, but tomorrow I will have to remove the string, entered today, and do work from call.
Also strangle
When I connect to my server over dydns name: PC(mynetwork) --> DyDNS --> NAS(mynetwork) - wrapper give me access without define /etc/hosts and /etc/hosts.allow
When I connect to my server over dydns name: PC(anothernetwork) --> DyDNS --> NAS (mynetwork) - wrapper deny access. I need define outside IP
___________________________________________________
Not need rebuild ftp server, need only add checkbox to webgui "Enable/disable wrapper". Also, I don't understand, why use mod_wrap+mod_wrap2. Need only one of them.
In second, without picture no understand. Network

I use default ftp setting, differences only

What I know?
I know all my network hosts and I can add its to /etc/hosts, /etc/hosts.allow and /etc/hosts.deny. For /etc/hosts I need add ALL LAN hosts for give access over mod_wrap.
To /etc/hosts.allow I define allowed hosts and protocol, to /etc/hosts.deny I define denied protocols for some hosts on my LAN.
For LAN I do it only once and this work great
Algorithm

Now I need define outside hosts. OUPS!!!
I don't know any about outside hosts in case dynamic IP, such hostname or IP. Providers change hostnames, IPs for remote hosts and I can't define it before boss or accountant or any people call to me and say: "I can't input, repair your server!!". In this case I go to logs, see where denied IPs, add its to /etc/hosts AND /etc/hosts.allow, and call to boss & e.t.c - "CHECK NOW". This work, but tomorrow I will have to remove the string, entered today, and do work from call.
Also strangle
When I connect to my server over dydns name: PC(mynetwork) --> DyDNS --> NAS(mynetwork) - wrapper give me access without define /etc/hosts and /etc/hosts.allow
When I connect to my server over dydns name: PC(anothernetwork) --> DyDNS --> NAS (mynetwork) - wrapper deny access. I need define outside IP
___________________________________________________
Not need rebuild ftp server, need only add checkbox to webgui "Enable/disable wrapper". Also, I don't understand, why use mod_wrap+mod_wrap2. Need only one of them.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: FTP access denied
Probably, inside/outside/static/dynamic is not a true problem. It's you use the IPs which can't resolved or not matched.alexey123 wrote:Now I need define outside hosts. OUPS!!!
I don't know any about outside hosts in case dynamic IP, such hostname or IP.
So, I have used 203.141.148.97(static) and 210.139.89.108(dynamic). But both have reversed name.
203.141.148.97 -> bf-gw.peach.ne.jp -> 203.141.148.97
210.139.89.108 -> pl364.nas93g.p-tokyo.nttpc.ne.jp -> 210.139.89.108
Code: Select all
[root@aria ~]# dig -x 203.141.148.97
; <<>> DiG 9.8.3-P3 <<>> -x 203.141.148.97
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53386
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;97.148.141.203.in-addr.arpa. IN PTR
;; ANSWER SECTION:
97.148.141.203.in-addr.arpa. 43022 IN PTR bf-gw.peach.ne.jp.
;; AUTHORITY SECTION:
148.141.203.in-addr.arpa. 12125 IN NS ddns2.interlink.or.jp.
148.141.203.in-addr.arpa. 12125 IN NS ddns1.interlink.or.jp.
;; ADDITIONAL SECTION:
ddns1.interlink.or.jp. 12125 IN A 203.141.128.39
ddns2.interlink.or.jp. 12125 IN A 203.141.142.30
;; Query time: 2 msec
;; SERVER: 172.18.0.1#53(172.18.0.1)
;; WHEN: Mon Nov 12 23:49:10 2012
;; MSG SIZE rcvd: 161
[root@aria ~]# dig -x 210.139.89.108
; <<>> DiG 9.8.3-P3 <<>> -x 210.139.89.108
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33191
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4
;; QUESTION SECTION:
;108.89.139.210.in-addr.arpa. IN PTR
;; ANSWER SECTION:
108.89.139.210.in-addr.arpa. 203 IN PTR pl364.nas93g.p-tokyo.nttpc.ne.jp.
;; AUTHORITY SECTION:
89.139.210.in-addr.arpa. 203 IN NS ns1.sphere.ad.jp.
89.139.210.in-addr.arpa. 203 IN NS ns2.sphere.ad.jp.
;; ADDITIONAL SECTION:
ns1.sphere.ad.jp. 78305 IN A 202.239.113.18
ns1.sphere.ad.jp. 78305 IN AAAA 2001:2c0:1:100::a01
ns2.sphere.ad.jp. 85392 IN A 202.239.113.26
ns2.sphere.ad.jp. 85392 IN AAAA 2001:2c0:11:1::a02
;; Query time: 2 msec
;; SERVER: 172.18.0.1#53(172.18.0.1)
;; WHEN: Mon Nov 12 23:49:15 2012
;; MSG SIZE rcvd: 225
[root@aria ~]# dig bf-gw.peach.ne.jp.
; <<>> DiG 9.8.3-P3 <<>> bf-gw.peach.ne.jp.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48433
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4
;; QUESTION SECTION:
;bf-gw.peach.ne.jp. IN A
;; ANSWER SECTION:
bf-gw.peach.ne.jp. 3415 IN A 203.141.148.97
;; AUTHORITY SECTION:
peach.ne.jp. 3415 IN NS ns1.peach.ne.jp.
peach.ne.jp. 3415 IN NS ns2.peach.ne.jp.
;; ADDITIONAL SECTION:
ns1.peach.ne.jp. 3415 IN A 203.141.148.98
ns1.peach.ne.jp. 3415 IN AAAA 2001:380:e06:127::53
ns2.peach.ne.jp. 3415 IN A 203.141.148.99
ns2.peach.ne.jp. 3415 IN AAAA 2001:380:e06:127::123
;; Query time: 2 msec
;; SERVER: 172.18.0.1#53(172.18.0.1)
;; WHEN: Mon Nov 12 23:49:34 2012
;; MSG SIZE rcvd: 175
[root@aria ~]# dig pl364.nas93g.p-tokyo.nttpc.ne.jp.
; <<>> DiG 9.8.3-P3 <<>> pl364.nas93g.p-tokyo.nttpc.ne.jp.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49503
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 4
;; QUESTION SECTION:
;pl364.nas93g.p-tokyo.nttpc.ne.jp. IN A
;; ANSWER SECTION:
pl364.nas93g.p-tokyo.nttpc.ne.jp. 85383 IN A 210.139.89.108
;; AUTHORITY SECTION:
p-tokyo.nttpc.ne.jp. 85383 IN NS ns2.sphere.ad.jp.
p-tokyo.nttpc.ne.jp. 85383 IN NS ns1.sphere.ad.jp.
;; ADDITIONAL SECTION:
ns1.sphere.ad.jp. 78277 IN A 202.239.113.18
ns1.sphere.ad.jp. 78277 IN AAAA 2001:2c0:1:100::a01
ns2.sphere.ad.jp. 85364 IN A 202.239.113.26
ns2.sphere.ad.jp. 85364 IN AAAA 2001:2c0:11:1::a02
;; Query time: 2 msec
;; SERVER: 172.18.0.1#53(172.18.0.1)
;; WHEN: Mon Nov 12 23:49:43 2012
;; MSG SIZE rcvd: 200
But mod_wrap2 does not use libwrap. So, it's never affected.
I think this is a side effect. If you enable Zeroconf/Bonjour, the mDNSresponder is called.alexey123 wrote: Also strangle
When I connect to my server over dydns name: PC(mynetwork) --> DyDNS --> NAS(mynetwork) - wrapper give me access without define /etc/hosts and /etc/hosts.allow
When I connect to my server over dydns name: PC(anothernetwork) --> DyDNS --> NAS (mynetwork) - wrapper deny access. I need define outside IP
It will resolve in the subnet. Then it was resolved?
It seems "enable mod_wrap2" is required too. mod_wrap2 is not standard module.alexey123 wrote: Not need rebuild ftp server, need only add checkbox to webgui "Enable/disable wrapper". Also, I don't understand, why use mod_wrap+mod_wrap2. Need only one of them.
mod_wrap exists at first time I think. At least FreeNAS 0.69 have it.
The mod_wrap2 is provided at FreeNAS 0.7.5423.
http://freenas.svn.sourceforge.net/view ... ision=5423
One of big different between mod_wrap and mod_wrap2 is mod_wrap2 can deny before "login".
In your case, you can use after "Nas firewall" by using:
WrapOptions CheckOnConnect
For more detail see below:
http://proftpd.open-source-solution.org ... wrap2.html
Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
Thank you for manual, I was test.
About my NAS. I never not use Zeroconf/Bonjour, it disabled becouse it very chatty and make many messages on system log. But I have running isc-dhcp4.2- server on NAS4Free.
Now I create ftp access for test. Your static IP I add to host database. I reverse wrapper setting to YES. /etc/hosts.allow : ALL:ALL:allow
user nas4free, pass nas4free. Server (link)
You can check ftp.log here
I make 2 test login itself
My curent ip 84-229-210-186 and name from provider is IGLD-84-229-210-186.inter.net.il
And I'm go to learn your manual and test on test machine.
After 1.5 hours I check from home my server
Also this problem is not only my problem - check forum messages about access over ftp.
About my NAS. I never not use Zeroconf/Bonjour, it disabled becouse it very chatty and make many messages on system log. But I have running isc-dhcp4.2- server on NAS4Free.
Now I create ftp access for test. Your static IP I add to host database. I reverse wrapper setting to YES. /etc/hosts.allow : ALL:ALL:allow
user nas4free, pass nas4free. Server (link)
You can check ftp.log here
I make 2 test login itself
My curent ip 84-229-210-186 and name from provider is IGLD-84-229-210-186.inter.net.il
And I'm go to learn your manual and test on test machine.
After 1.5 hours I check from home my server
Also this problem is not only my problem - check forum messages about access over ftp.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: FTP access denied
Thank you.
Sorry, I miss to connect with anonymous 
At this time, I can login to the server.
Daisuke Aoyama
Code: Select all
Nov 12 18:51:14 nasserver proftpd[16412]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - FTP session opened.
Nov 12 18:51:14 nasserver proftpd[16412]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - mod_wrap/1.2.4: using access files: /etc/ftpd.allow, /etc/ftpd.deny
Nov 12 18:51:14 nasserver proftpd[16412]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - mod_wrap/1.2.4: allowed connection from daoyama
Nov 12 18:51:14 nasserver proftpd[16412]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - USER anonymous: no such user found from 203.141.148.97 [203.141.148.97] to ::ffff:10.0.0.1:21
Nov 12 18:51:15 nasserver proftpd[16412]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - FTP session closed.
Nov 12 18:51:44 nasserver proftpd[16420]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - FTP session opened.
Nov 12 18:51:44 nasserver proftpd[16420]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - mod_wrap/1.2.4: using access files: /etc/ftpd.allow, /etc/ftpd.deny
Nov 12 18:51:44 nasserver proftpd[16420]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - mod_wrap/1.2.4: allowed connection from daoyama
Nov 12 18:51:44 nasserver proftpd[16420]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - Preparing to chroot to directory '/mnt/disk/users/nas4free'
Nov 12 18:51:44 nasserver proftpd[16420]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - USER nas4free: Login successful.
Nov 12 18:52:05 nasserver proftpd[16420]: 10.0.0.1 (203.141.148.97[203.141.148.97]) - FTP session closed.
At this time, I can login to the server.
Daisuke Aoyama
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
I see your login.
But If I remove your host from /etc/hosts you can't login. I remove
Also my boss, when he replace his ip and name ( blalala-<ip>-<swindlers>.net.il ) - he can't input
Anonymous I never not use, only password and username. My Paranoia
In general, if I invite somebody to my ftp I do not have to ask him IP or something, as provider name. I have to give a username and password.
However, it is wrong to remove wrappers. TRUE - allow users to choose their own mode - with or without the wrapper. Only one checkbox in ftp page webgui
But If I remove your host from /etc/hosts you can't login. I remove
Also my boss, when he replace his ip and name ( blalala-<ip>-<swindlers>.net.il ) - he can't input
Anonymous I never not use, only password and username. My Paranoia
In general, if I invite somebody to my ftp I do not have to ask him IP or something, as provider name. I have to give a username and password.
However, it is wrong to remove wrappers. TRUE - allow users to choose their own mode - with or without the wrapper. Only one checkbox in ftp page webgui
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
- daoyama
- Developer

- Posts: 394
- Joined: 25 Aug 2012 09:28
- Location: Japan
- Status: Offline
Re: FTP access denied
Please remove from /etc/hosts.alexey123 wrote:But If I remove your host from /etc/hosts you can't login.
Currently, enabled mod_wrap is default. So, it seems "disable mod_wrap" is need for FTP page.alexey123 wrote: However, it is wrong to remove wrappers. TRUE - allow users to choose their own mode - with or without the wrapper. Only one checkbox in ftp page webgui
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: FTP access denied
I remove all to my normal state
Thank you very matchSo, it seems "disable mod_wrap" is need for FTP page.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
Brent502
- NewUser

- Posts: 13
- Joined: 30 Oct 2012 21:50
- Status: Offline
Re: FTP access denied
Thanks guys for your help!! This one work for me!daoyama wrote: You don't need edit this.
Just add the value to System|Advanced|rc.conf.
Name: proftpd_modwrap_enable
Value: NO
Then, restart FTP service.
Daisuke Aoyama
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: [Solved] FTP access denied
understood and agreed
Brent502, pls repair your first post to solved
Brent502, pls repair your first post to solved
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600