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


  Search this Thread
Old 05-04-2004, 04:33 AM   #1
LQ Newbie
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
Linking Public IP to a Private IP

Hi guys,

I am trying to sort a problem on a Wireless WAN with IP linking. I have a customer who want to have a public IP address for VPN access and web serving or whatever. The problem is that the network is run using private IP addresses and is NATed at the main router. I have IPtables running on the main router with rule to allow every card to talk to every other card (really basic stuff) and I have added a rule to the routing table which is as follows:

ip route add nat (public IP) via (private IP)
ip rule add nat (public IP) from (private IP)

Now if I type the public IP from anywhere in side the network I can get to the private IP but if I type the public IP from the internet I get nothing. Anyone got any ideas? Is what Im trying even possible?


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
public, private, protected...?(C++) name_in_use450 Programming 6 10-07-2008 11:43 PM
public service, private CVS? prell Programming 7 01-15-2005 12:18 AM
Using GPG without public or private keys darin3200 Linux - Security 3 01-10-2005 03:40 AM
public vs private ip emailssent Linux - Networking 2 09-28-2004 02:11 AM
Help with SSH and public/private keys stodge Linux - Security 5 05-14-2003 01:22 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:51 AM.

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