LinuxQuestions.org
Help answer threads with 0 replies.
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 07-17-2001, 06:51 AM   #1
teeno
Member
 
Registered: Jul 2001
Posts: 72

Rep: Reputation: 15
Question How can I get access to a computer on my LAN?


All I want to be able to do is forward all packets directed to my external IP address to a computer on my LAN.

Is it possible? If so how?

My external IP address is: 12.232.14.6
The linux box has an IP address of: 192.168.10.154
My computer on the LAN has an address of: 192.168.10.16

I need all traffic sent by my computer to be translated from 192.168.10.16 to 12.232.14.6.

All traffic received on 12.232.14.6 to be directed to 192.168.10.16.

Could some one please explain why this can’t be done?

Thank you.
 
Old 07-17-2001, 07:06 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
this can be done - You want IP Masquerading (AKA NAT)!! This will do this for you... Have a look at http://www.linuxdoc.org/HOWTO/IP-Masquerade-HOWTO.html for details. You basically just get both network cards running then, enable masquerading (2 commands) as per the howto and enable forwarding (as per howto, 1 command) then set this box as your default gateway and that should be it.

HTH

Jamie...
 
Old 07-17-2001, 07:21 AM   #3
teeno
Member
 
Registered: Jul 2001
Posts: 72

Original Poster
Rep: Reputation: 15
Thank for responding to my question.

However, I already have masquerading working on the linux box and it is not doing what I need.

I need to be able to address my computer on the LAN then the external IP address. This means that all the traffic directed to the public IP address (external) has to pass though the linux box and routed to my local computer. This makes the linux box transparent.

Is this possible?

Thank you again for your help.
 
Old 07-17-2001, 07:26 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Now I understand... What services do you need to make available? It sounds like you need to have some sort of port forwarding working, so access to 12.232.14.6:80 gets passed through to 192.168.10.16:80 kind of thing. Either that or you could enable masquerading the 'other way', so any connections that come in to 12.232.14.6 get masqueraded back into the network, although this will give you serious security issues and I'm not sure what the return path of your packets would be.

cheers

Jamie...
 
Old 07-17-2001, 07:40 AM   #5
teeno
Member
 
Registered: Jul 2001
Posts: 72

Original Poster
Rep: Reputation: 15
I have had port-forwarding working. Its fine but I need to forward too many ports and it doesn't work properly.

I just can’t understand why the IP address cannot be map though. I will try to able masq both ways but I can't see how it could work.

Do you know of any good sources of info?
 
Old 07-17-2001, 07:44 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by teeno
I just can’t understand why the IP address cannot be map though.
Its becuase you can't set a route to your internal IP addresses as they're private address space... Unfortunately I can't offer any references for the masq option, its was just thought really.

HTH

Jamie...
 
  


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
Beginner LAN - computer name instead of IP LancerNZ Linux - Networking 6 02-28-2005 10:04 PM
Can I access a FC2 computer from XP over a LAN? deanbrown3d Linux - Newbie 14 08-19-2004 10:47 AM
Restrict Access to Internet from one computer on LAN fuzzie Linux - Networking 1 06-06-2004 02:16 AM
I can't share my computer on LAN thuongkiet82 Linux - Networking 2 05-20-2004 07:06 AM
Wake up computer on LAN Linh Linux - Networking 2 06-15-2003 05:33 PM

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

All times are GMT -5. The time now is 04:41 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