Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-22-2010, 12:12 AM
|
#1
|
LQ Newbie
Registered: Sep 2010
Posts: 7
Rep:
|
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.
|
|
|
11-22-2010, 02:31 AM
|
#2
|
LQ Newbie
Registered: Nov 2009
Posts: 25
Rep:
|
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
|
|
|
11-22-2010, 02:50 AM
|
#3
|
LQ Newbie
Registered: Sep 2010
Posts: 7
Original Poster
Rep:
|
ftp issues.
Quote:
Originally Posted by davinders
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.
|
|
|
11-22-2010, 05:02 AM
|
#4
|
Member
Registered: May 2009
Location: Milan, Italy
Distribution: Ubuntu, Debian, Fedora, Oracle Linux
Posts: 109
Rep:
|
|
|
|
11-22-2010, 09:49 PM
|
#5
|
LQ Newbie
Registered: Sep 2010
Posts: 7
Original Poster
Rep:
|
Greetings,
thanks for your help but I still couldn't do it.can you please tell me a simple way...
|
|
|
11-23-2010, 12:27 AM
|
#6
|
LQ Newbie
Registered: Sep 2010
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
11-24-2010, 12:12 AM
|
#7
|
LQ Newbie
Registered: Sep 2010
Posts: 7
Original Poster
Rep:
|
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.
|
|
|
11-24-2010, 01:24 AM
|
#8
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,680
|
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.
|
11-30-2010, 11:44 PM
|
#9
|
LQ Newbie
Registered: Sep 2010
Posts: 7
Original Poster
Rep:
|
Quote:
Originally Posted by John VV
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....
|
|
|
All times are GMT -5. The time now is 03:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|