Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
if the clients set their cl_timeout value higher and if the server runs with a -20 priority it works fine. The only problem is that when it is mapchanging the routing processes dont get enough cpu so inet on the client pc's gets realy laggy (the server is also a router).
So im considering running another pc as server. My question problem is that i cant get ports forwarded, i dont know how to do it. This problem causes lots of inet-functions on clients pc to stop working (HLDS is one of them). Could you tell me how to portforward under linux?
my clientpc's are connected to eth1, the internet modem is connected to eth0, client ip's are 192.168.0.2-192.168.0.5, my internet ip is 217.120.71.225, could you please give me the line that i have to use then?
And wat lines do i put in the rc.local, to make it forward every time it boots?
well, i figured that is the port forwarding of the server. Its becauze im trying to run a server behind a linux router. The ports that the server use are not forwarded.
Its not only the Hl port thats not forwarded it are alot of em, for example i cant sent files with msn, icq or irc. I cant talk to people through msn.
So could someone plzz tell me how to forward those ports, i dont need to know what ports they are, i can find that out. I need an example of a commando how to forward a port.
For example:
Linux router internet ip: 213.51.6.99
linux router local ip:192.168.0.1
client pc local ip: 192.168.0.4
I want to run a server on the client pc. there for i need to forward port 27015.
what would the commandline look like then?
It says u cant use "-i" with an OUTPUT command, so I left -i and eth0 out of the line and it did work.
The other commandlines did all work.
I used the 3 lines to forward port 6891 which is used by msn to transfer files. Apparently the port wassent forwarded after i use these 3 lines because i couldnt sent with msn.
It might be because i have 2 ehternet cards in the router, eth0 is connected to the internet and eth1 is connected to the home lan. Can U tell me how the lines would look if u take that in account?
Not sure where I got the i eth0 on the OUTPUT chain from, something I copied from somewhere I guess.
The good news is msn is a known problem
msn uses a random port
Raz has posted this rule as a fix for it.
-------------------------------------------------------
by Raz
Quote:
I've tested this and have no problems once you use the correct rules in your firewall.
The output rule from your external IP address should allow your IP to send from ports 1023:65535 to destination
port of 1863 any IP address.
Your input rule to your external IP address should allow your IP to receive only a SYN flag with a source port of
1863 to a destination port of 1023:65525 from the IP range 64.4.13.0/24
UDP is not needed only TCP.
An example of an Linux IPchains rule would look like this:
The example external IP address is 64.45.11.23
im sorry, but i dont realy understand that line, there are two ip adresses in there, what is ment with the external?
Is the external the ip that i use for my router to connect to the inet?
And what is that seccond ip?
theres another problem, because i use iptables, i cant use ipchains, so what would the line look like then??
I know im getting a bit anoyin, im sorry but i would like it to work.
I looked at all this a while back and decided two things, It's too many ports to forward and it would pretty much defeat the purpose of what I have setup for my router. And it's not as good as ftp.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.