LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 04-08-2004, 05:12 AM   #1
xone
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 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
 
Old 04-08-2004, 10:46 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

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


Reply


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-26-2005 11:42 PM
My server serves crooks... c0c0deuz Linux - Security 15 06-13-2005 06:48 AM
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 04:45 AM
setting up web server and D-Link router jax8 Linux - Networking 2 06-09-2004 11:54 AM
setting up a safe and secure server/router Ciccio Linux - Security 3 04-25-2003 10:46 PM


All times are GMT -5. The time now is 04:58 AM.

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