Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
Im trying to setup a FTP Server on my linux machine that im using as a HTTP server and a router.
Im using VSFTPD as the FTP server and i cant connect to it. A friend told me to try TELNET or something and that failed. (I think it was in console telnet 21)
Onto the forwarding. Im trying to forward any given port to 192.168.0.5:80 As im trying to run a webserver on linux and one on my Windows PC so i dont have to keep updating files on each and i can just type xxx.xxx.xxx.xxx:PORT and it will forward to my windows files that are up to date.
The description of your goal is unclear. It sounds like you are trying to make a web site and want to see it happening on IIS and Apache, is that correct? If this is the case, you can install Samba on the Linux box and make the share show up in the web server, with a symbolic link perhaps. Then map the share to a network drive letter on the Windows box and make that drive a Virtual Folder in IIS. You'll have one directory that both feed off of.
Linux (acting as the internet server, firewall, router and a webserver)
Windows (my pc with XAMPP on it)
I want to be able to forward any port to my windows PC but i dont know how to.
Problem 2)
I have a VSFTPD installed on my linux machine and it doesnt allow me to connect. It doesnt say anything about passwords it just says unable to connect.
Yes by default root is not allowed to make FTP connection..but you can change this (not suggestable). Just modify the file '/etc/vsftpd.ftpusers' and remove the entry by name of root.
About your first issue I think you are looking something like 1:1 NAT. So for that you can use 'iptables' with DNAT.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.