LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   problems setting up apache and vsftp server behind a router that serves as a server (https://www.linuxquestions.org/questions/linux-security-4/problems-setting-up-apache-and-vsftp-server-behind-a-router-that-serves-as-a-server-167664/)

xone 04-08-2004 05:12 AM

problems setting up apache and vsftp server behind a router that serves as a server
 
Hi everybody,

I am having problems setting up my Apache and vsftp servers behind a rounter. I have enabled the two services and they are up and running. I have set up port forwarding to my computer for those services and have configured the "hosts.allow" file to :

ftpd: ALL
httpd: ALL

and for some reason it is still not working. Am I missing something here.
I forgot, I have dynamic IP and I've set it up at dynDNY.com ---

p.s. I also do not know how to change the defuault ftp dicrecotry from var/ftp to whatever...

I did try to add the line "root_local= directory name" to the /etc/ vsftpd/vsftpd.conf
file but it did not work. It screwed up everything, so I had to remove it.

HELP :-)...

thanx

xone

Capt_Caveman 04-08-2004 10:46 AM

I'm not sure about ftp, but I am positive that apache (httpd) does not use tcp_wrappers, so modifying hosts.allow/deny doesn't do anything. I would focus more on general networking connectivity, firewalling/routing, and application missconfigurations.

To start, turn off any firewall apps running on the internal server and use the netstat -pantu command to verify that apache/ftpd is actively listening for connections. If you still cannot connect, try running ethereal on the internal server to capture some traffic while you try to connect through the router in order to see if packets are even getting to the internal box. Also it would be helpful if you posted your firewall (after removing any identifiable IP addresses). Adding a few logging rules around any forwarding or drop rules will probably help trace where a packet is going to as well.


All times are GMT -5. The time now is 07:10 PM.