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.
Hi, I've got a linux server set up as an internet gateway with two windows xp machines connected to it via a switch. I've been trying to forward ports 3389 and 4899 to one of the xp machines but have been unable to get it to work. I have however, successfullu forwarded port 80 to the same machine. Here are my firewall rules reguarding the ports.
Straight from my website, check the link below, you'll find a diamond in the rough every now and again ... ok, actually, I write this junk up on my website because I have a horrible memory and I need reference to it:
It's always a pain in the ass for me to remember how to do this, I always forget a step and add an extra step that matters not.
So, here's the example of port forwarding using iptables.
I have an internal server on port 10.0.0.2, running apache on port 80. I want to be able to reach it via port 81 from my gateway computer.
I've already gotten port forwarding to work, just not on the ports that I want it to forward. I've forwarded port 80 successfully but haven't had any success with 3389 or 4899. Also I have to use ipchains, not iptables.
*blush* sorry, didn't even see that it was ipchains, my apologies. However, if you got 80 to work, 80 is just a number, there's nothing special about it, the other numbers you put in there should work as well.
What you've given above, minus forwarding port 80 line ( don't see that, but I'm guessing it's the same. ) Sorry, don't know what to tell you.
I recently upgraded my kernel to 2.6 so I can use iptables now. I'm still having the same exact problem though. Here's my entire firewall script. Anyone see any problems?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.