ftp server behind nat
I'm trying to setup a publicly accessible ftp server. My linux box is behind a router doing NAT so in order to allow passive as well as active mode i put the following in my vsftpd.conf:
pasv_address=<my wan ip here>
and i also set my router to forward that port range.
when i connect to the server from another machine behind my router, all is well; after the PASV command, my server responds with:
"entering passive mode my_wan_ip,255,23" (or two similar numbers that denote a port in the 65000-65534 range)
however, if i try to connect from the other side of the router, my server repsonds to the PASV command with:
"entering passive mode my_wan_ip,117,XX"
Why is my server now advertising a port that is not in the range i specified??
Any help would be most appreciated!