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.
Hello... I have my domain (OliXNet.com) and I have a server and one client on LAN. I would like to access that client with address something.OliXNet.com. Server is running on Mandrake 10.1. And I'm new to Linux.
Thank you very much
Access the client how, Is it hosting a website? Do you want to telnet/ssh to it? FTP to the client? It is most definitely possible and you don't need a second IP.
What services do you want to acces on that LAN station?
You can configure in DNS zone OliXNet.com that something is your IP address
( if your public IP is let's say 193.1.1.1.add a line like this at the end of olixnet.com ;
something A 193.1.1.1)
Restart bind.
Finally you have to DNAT requests to that machine
iptables -t nat -A PREROUTING -m tcp -p tcp --dport 22 -j DNAT --to 192.168.1.1
Thank you for the answer!
But this will redirect all the requests on ports 21, 22 to the LAN client. I want to redirect only requests going to client.olixnet.com. Other requests (going to eg. server.olixnet.com) should be handled by the server. Sorry, I probably asked incorrectly.
Both Oddo and I figure we might be able to help, but we have no idea what services/protocols you want access to.
Are you running your own DNS or is that service provided by someone else.
Last edited by musicman_ace; 02-07-2005 at 11:26 AM.
It's not my own DNS server. I would like to access ports 21, 22, maybe 80 and some gaming ports. So FTP, SSH, HTTP and games.. Thank you very much for the answers
Ok...there is no problem...You can "remap" your ftp and ssh daemons on lan station to listen on different ports, let's say ssh-2222, and ftp 2121( of course if your ISP doesn't drop theese requests). Then you DNAT 2222 and 2121 like this
iptables -t nat...... --dport 222 -j DNAT --to 192.168.x.x:22
About your subdomain something:
I dig for olixnet.com and I have learned out that the authority DNS server is ns.forpsi.net belonging to IHOLDINGS.COM, INC.
Is this your provider? I guess you can ask them to add a subdomain in your zone.( it should be written in the contract or the rules you got when you bought the domain).
Anyway I advise you to do the DNAT first, try from somewhere outside, and than talk to your ISP.
Yes, that`s my isp. I know about this, but is there any way to forward all the requests going to client.olixnet.com to my client? Like this: Server gets a request to client.olixnet.com:80, so it sends it to client.olixnet.com:80 or serverg gets a request to client.olixnet.com:7979 (no matter what this is), so it sends it to client.olixnet.com:7979. I mean is there any way to forward all the traffic going to client.olixnet.com to that client?
Sorry, if this is a dumb question and sorry, for loosing your time, but I need to know... Thanx
In my mind, if you don't have direct control over your domain's DNS and zone configurations, it ain't going to happen. Maybe oddo's suggests can work out, maybe you'll have to run a small DNS slave on your server?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.