Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-08-2004, 06:12 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 29

Rep: Reputation: 15
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 ---

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 :-)...


Old 04-08-2004, 11:46 AM   #2
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Server | Behind router aceMan Linux - Networking 4 09-27-2005 12:42 AM
My server serves crooks... c0c0deuz Linux - Security 15 06-13-2005 07:48 AM
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 05:45 AM
setting up web server and D-Link router jax8 Linux - Networking 2 06-09-2004 12:54 PM
setting up a safe and secure server/router Ciccio Linux - Security 3 04-25-2003 11:46 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration