 |
24-08-2007, 04:38 PM
|
#1 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
24-08-2007, 05:35 PM
|
#2 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
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
|
|
|
24-08-2007, 05:56 PM
|
#3 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
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!
|
|
|
24-08-2007, 10:30 PM
|
#4 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
25-08-2007, 12:53 AM
|
#5 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
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!
|
|
|
25-08-2007, 03:05 AM
|
#6 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: httpd as FTP server and DSL Sharing
One can use sftp rather than scp.
|
|
|
25-08-2007, 01:23 PM
|
#7 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
25-08-2007, 01:40 PM
|
#8 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
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!
|
|
|
25-08-2007, 02:51 PM
|
#9 (permalink)
|
|
18 Till I Die............
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
|
Re: httpd as FTP server and DSL Sharing
Why not simply use http instead of ftp? http is much better.
|
|
|
10-09-2007, 05:58 PM
|
#10 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2006
Location: Pune, Maharashtra, India
Posts: 1,728
|
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
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|