LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-05-2005, 05:56 AM   #1
OliXNet
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Rep: Reputation: 0
Accessing LAN from outside


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
 
Old 02-05-2005, 06:49 AM   #2
daft
LQ Newbie
 
Registered: Jan 2005
Distribution: Debain
Posts: 25

Rep: Reputation: 15
I think you need 2 internet IP's for that
 
Old 02-06-2005, 05:20 AM   #3
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
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.
 
Old 02-06-2005, 05:30 AM   #4
OliXNet
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I would like to access client trough SSH, FTP and to play some games online without use of public servers.
 
Old 02-06-2005, 05:34 AM   #5
oddo
Member
 
Registered: Sep 2003
Location: Bucharest
Distribution: Slackware *.*
Posts: 36

Rep: Reputation: 15
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

iptables -t nat -A PREROUTING -m tcp -p tcp --dport 21 -j DNAT --to 192.168.1.1

Make sure that the machine 192.168.1.1 has internet access

Last edited by oddo; 02-06-2005 at 05:36 AM.
 
Old 02-06-2005, 05:59 AM   #6
OliXNet
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 02-07-2005, 09:34 AM   #7
OliXNet
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
cmon.. noone knows? Please..
 
Old 02-07-2005, 11:20 AM   #8
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
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.
 
Old 02-07-2005, 12:10 PM   #9
OliXNet
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 02-07-2005, 04:43 PM   #10
oddo
Member
 
Registered: Sep 2003
Location: Bucharest
Distribution: Slackware *.*
Posts: 36

Rep: Reputation: 15
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.

Good luck
 
Old 02-08-2005, 02:22 AM   #11
OliXNet
LQ Newbie
 
Registered: Dec 2004
Posts: 12

Original Poster
Rep: Reputation: 0
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
 
Old 02-08-2005, 05:46 AM   #12
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer accessing lan but not dsl on it suman_rath Linux - Networking 3 06-28-2005 06:36 PM
LAN accessing problem aditya1 Linux - Networking 1 03-09-2005 12:42 PM
Accessing my linux box by name on the LAN (from Windows) malbery Linux - Networking 2 12-07-2004 05:42 AM
dnsmasq for accessing lan machines from outside netgear router? aaronvegh Linux - Networking 0 08-11-2004 02:04 PM
Accessing MY virtual hosts from MY Lan. TheSwine Linux - Networking 2 03-02-2004 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration