Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-17-2001, 07:51 AM
|
#1
|
Member
Registered: Jul 2001
Posts: 72
Rep:
|
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.
|
|
|
07-17-2001, 08:06 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
07-17-2001, 08:21 AM
|
#3
|
Member
Registered: Jul 2001
Posts: 72
Original Poster
Rep:
|
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.
|
|
|
07-17-2001, 08:26 AM
|
#4
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
07-17-2001, 08:40 AM
|
#5
|
Member
Registered: Jul 2001
Posts: 72
Original Poster
Rep:
|
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?
|
|
|
07-17-2001, 08:44 AM
|
#6
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 08:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|