Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 24-08-2007, 04:38 PM   #1 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default httpd as FTP server and DSL Sharing


I have 2 LAN cards on my system. One for DSL and another for LAN (not setup now). I want to share my DSL over LAN. How to do?

Also, for FTP server, i tried proftpd, pure-ftpd. Both failed. I saw an option in SELinux about httpd as FTP server. Please tell me how to make httpd act as an FTP server.


******
Note: LAN and FTP are NOT related to each other.
******
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 24-08-2007, 05:35 PM   #2 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: httpd as FTP server and DSL Sharing

check howtoforge for setting up a ftp server. It should have some nice articles on it, with lots of screenshots.
For sharing your internet over LAN, one way is to use NAT
set up a internal IP like say 192.168.0.1 on eth1 and setup a couple of firewall rules like this.
Code:
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
and you may have to enable ip forwarding like this
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
mehulved is offline  
Old 24-08-2007, 05:56 PM   #3 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: httpd as FTP server and DSL Sharing

From ur avatar, it seems u r on *fedora*! U have 'vsftpd' there! And httpd as ftp server?

Both are different! http and ftp are completely different!! try vsftpd and google first. I'll check it out later!! Neways why even bother when u can do stuff from ssh? Check it out!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 24-08-2007, 10:30 PM   #4 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: httpd as FTP server and DSL Sharing

Quote:
Originally Posted by mediator
From ur avatar, it seems u r on *fedora*! U have 'vsftpd' there! And httpd as ftp server?

Both are different! http and ftp are completely different!! try vsftpd and google first. I'll check it out later!! Neways why even bother when u can do stuff from ssh? Check it out!
Yup! That's right. I have Fedora 7. BTW, how to do it using SSH?
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 25-08-2007, 12:53 AM   #5 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: httpd as FTP server and DSL Sharing

Ah sorry its scp actually. Ftp is used for file transfer! When u have ssh daemon installed as an alternative....then, AFAIK scp is installed too with it.

1. U can control the remote machine with ssh. Secure connection!!

Suppose ur account/UID is 'unknown' and home directory as '/home/unknown', then simply execute
Code:
ssh -l uknown <IP_Address_of_your-machine>
2. Next, u want file to be transferred? U use scp for that!!
Suppose u want to tranfer a file 'facts' from my machine 10 from directory '/home/mediator' to ur machine 15 to directory '/home/unknown/files', u simply execute...
Code:
scp 192.0.0.10:/home/mediator/facts 192.0.0.15:/home/unknown/files
Observe the code, its very easy, easier than ftp!! U transfer from source to destination. U can use wildcards too if u wanna copy large number of files!!

So basically one terminal session for controlling the machine, and anotha for transferring. And its all secure. Experience the difference!!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 25-08-2007, 03:05 AM   #6 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: httpd as FTP server and DSL Sharing

One can use sftp rather than scp.
mehulved is offline  
Old 25-08-2007, 01:23 PM   #7 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: httpd as FTP server and DSL Sharing

@mediator, i want FTP for some other purpose. My uncle wanted to send me videos. So he can directly upload videos using FTP! This is my purpose. Understand? He has a Win32 Machine. Lives in Chennai, TN. I live in Pune.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Old 25-08-2007, 01:40 PM   #8 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: httpd as FTP server and DSL Sharing

Doesn't matter! For windows, u have GUI and standalone application like putty called "winscp" and u transfer there just by dragging the file/software/data wateva!! Check it out!!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 25-08-2007, 02:51 PM   #9 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: httpd as FTP server and DSL Sharing

Why not simply use http instead of ftp? http is much better.
mehulved is offline  
Old 10-09-2007, 05:58 PM   #10 (permalink)
Wise Old Owl
 
The Unknown's Avatar
 
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
Default Re: httpd as FTP server and DSL Sharing

Friends, i solved this using LQ's solution. The LQ guy said that to enable DSL sharing, edit /etc/sysctl.conf and change the directive net.ipv4.ip_forward = 0 to 1. This solved my problem. And FTP server was reconfigured, so now its workin. This is what @Mehul said but that ip forward method was temporary. This one is permanent.

Anyways, thanks guys.
__________________
KDE on ArchLinux
PHP, MySQL, PostgreSQL, Linux, Apache; Message me to hire (freelancing only)
Explore Technology @ http://www.itech7.com
Cheap and Reliable VPS Hosting @ http://j.mp/arHk5e
The Unknown is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Services offered by Windows 2003 Server and Linux Server? kumars Open Source 2 14-05-2007 03:24 PM
How to run a webserver/ftp server/torrent server in a GPRS/EDGE/3G Connection Prince Stephen Ranji Broadband and DTH 1 06-07-2006 10:57 AM
Sharing broadband connection TO the server com MenTaLLyMenTaL Broadband and DTH 1 25-12-2005 03:43 PM
DNS Server in WINDOWS 2000 & 2003 server justhink Software Q&A 1 13-06-2005 12:54 PM

 
Latest Threads
- by Sujeet
- by soumya
- by clmlbx
- by Charan

Advertisement




All times are GMT +5.5. The time now is 12:58 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2