LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-22-2010, 12:12 AM   #1
M.Iftikhar Alam
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Rep: Reputation: 0
Ftp server issues.


Hi,

I want to create a virtual host and virtual ip in proftpd linux centos. can anyone please help me on this, I'm new in linux.Please help me ASAP. I shall be thankful to you.

Last edited by M.Iftikhar Alam; 11-22-2010 at 12:16 AM.
 
Old 11-22-2010, 02:31 AM   #2
davinders
LQ Newbie
 
Registered: Nov 2009
Posts: 25

Rep: Reputation: 1
Hi..

u can create a IP like eth0:0

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0

then change the IP accordingly & add the IP & new host name in DNS server or local hosts.conf file.

then restart the network service.



Regards
Davinder Singh
http://linuxdrugs.blogspot.com
 
Old 11-22-2010, 02:50 AM   #3
M.Iftikhar Alam
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
ftp issues.

Quote:
Originally Posted by davinders View Post
Hi..

u can create a IP like eth0:0

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0

then change the IP accordingly & add the IP & new host name in DNS server or local hosts.conf file.

then restart the network service.



Regards
Davinder Singh
http://linuxdrugs.blogspot.com
Hi.
Thank you so much for your help but i think you're not understanding my question. I don't have a dns server. I want to create virtual ip and a virtual host in proftpd server and I need a step by step guidance.
 
Old 11-22-2010, 05:02 AM   #4
MCD555
Member
 
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 109

Rep: Reputation: 10
Hi,

take a look at this:

http://proftpd.mirror.facebook.net/d...wto/Vhost.html

May it helps.

Regards,
 
Old 11-22-2010, 09:49 PM   #5
M.Iftikhar Alam
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Greetings,
thanks for your help but I still couldn't do it.can you please tell me a simple way...
 
Old 11-23-2010, 12:27 AM   #6
M.Iftikhar Alam
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
ftp issues.

Hi.
I just want to create a virtual host.can you please guide me...

Last edited by M.Iftikhar Alam; 11-23-2010 at 04:17 AM.
 
Old 11-24-2010, 12:12 AM   #7
M.Iftikhar Alam
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Hi.
I am trying to configure proftpd for some virtualhosts.

It is accepting connections and logins, however it is chrooting my users to the first VirtualHost they are found under. Here is my example

## first virtual host
<VirtualHost 192.168.129.108>
DefaultRoot ~
AllowOverwrite on
<Limit LOGIN>
AllowUser user1
DenyAll
</Limit>
</VirtualHost>
## second virtual host
<VirtualHost 192.168.129.112>
DefaultRoot ~
AllowOverwrite on
<Limit LOGIN>
AllowUser user2
DenyAll
</Limit>
</VirtualHost>

I want to deny all access to user1 from second virtual host and user2 to first virtual host.
For Example.
User1 won't connect into ftp through 192.168.129.112 and user2 won't connect into ftp through 192.168.129.108.
Can anyone please help me....

Last edited by M.Iftikhar Alam; 11-24-2010 at 01:33 AM.
 
Old 11-24-2010, 01:24 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,680

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
it is mostly the same as on a apache web server
http://httpd.apache.org/docs/2.2/vhosts/

the "Allow,Deny" order is the same
alow,deny
allow 123.456.678.321
deny 987.654.321.345
-------------
or
-------------
deny,allow
deny all
allow 123.456.789.987

simple logic
 
1 members found this post helpful.
Old 11-30-2010, 11:44 PM   #9
M.Iftikhar Alam
LQ Newbie
 
Registered: Sep 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
it is mostly the same as on a apache web server
http://httpd.apache.org/docs/2.2/vhosts/

the "Allow,Deny" order is the same
alow,deny
allow 123.456.678.321
deny 987.654.321.345
-------------
or
-------------
deny,allow
deny all
allow 123.456.789.987

simple logic
Thank u so much for your help Mr.John... I've done it....
 
  


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
file transfer from one ftp server to another ftp server divyashree Linux - Newbie 7 02-24-2010 02:48 AM
fc10, FTP server issues robina Linux - Newbie 1 12-13-2008 07:16 AM
ftp server issues JROCK1980 *BSD 1 04-14-2007 02:22 PM
FTP server issues vital_101 Ubuntu 5 09-26-2006 08:22 AM
ftp server issues munyard Linux - Software 1 11-07-2002 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:59 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration