LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-12-2009, 11:47 AM   #1
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Rep: Reputation: 22
Can I mask my LAN IP as a WAN IP?


I have a server with a 192 IP address. It has some demo software on it that cannot use the 192 IP. Evidently its "demo" status is linked to the IP, so you can imangine that all the 192's in the world have passed their demo status for this software. I would like it to think it has my WAN IP. Is this possible?

Port forwarding would seem to do the trick, but the machine still uses its LAN IP. Would a virtual IP on eth0 do the trick?

Using CentOS 5.3
Network setup
WAN > LAN > Client
Modem > Linksys WRT54G > Server
24... 192...

So I want my server with IP 192... to think it has a 24... address


Thanks
 
Old 04-12-2009, 12:30 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can't see how port forwarding would help as that would remove the wan ip address before it hits your server. You could use a secondary interface, e.g. eth0:123 to hold it and add a route on each box trying to reach that ip to route via it's normal ip.
 
Old 04-12-2009, 12:33 PM   #3
deathsfriend99
Member
 
Registered: Nov 2007
Distribution: CentOS 6
Posts: 200

Original Poster
Rep: Reputation: 22
I tried adding eth0:1 as the 24... IP address. It worked. I thought that might be the solution, but it didn't work before. I forgot to add it to the DNS.
 
  


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
Hello LAN! but where's the WAN?! charlie0313 Linux - Wireless Networking 3 01-08-2008 07:26 PM
LAN cannot access other LAN systems, only WAN Myrion Linux - Networking 1 09-06-2007 07:29 PM
Lan with three WAN... tusher Linux - Networking 3 06-28-2006 02:01 PM
LAN but no WAN BCarey Linux - Networking 4 05-07-2006 12:24 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM

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

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