LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-02-2004, 06:15 PM   #1
g452
Member
 
Registered: May 2003
Location: tswane
Distribution: Slackware 9.1
Posts: 113

Rep: Reputation: 15
Question fake ip's


hi all,

i have a question that i hope can be answered and that isn't stupid ... well here goes ...

i run apache with php4 and mysql and webmin to manage everything - now i want to be able to host all the web sites i work on locally so they can be mirrored to the sites that is actually online - so basically i want to be able to work on them and view them as though they where really online - so my question is can it be done ?? like they should have the same URL as the ones online and maybe get them to work on seperate ip's or fake ip's ... the pc i work my sites on is only connected to a lan - so it is like isolated from the WWW -

i use Slack 9.1 BTW -

laterz
 
Old 06-02-2004, 08:38 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
The easiest way would be to add your domain to the /etc/hosts file by appending it to the loopback IP or a private IP.
For example:
Code:
127.0.0.1   mydomain.pvt   mydomain
If you want to use a private IP, you will have to implement an IP alias.
Take a look at this small HowTO, it will show you two methods for implementation.
I am not sure which method Slackware uses (my guess is the old one), try both.
http://www.troubleshooters.com/linux/ipalias.htm
 
Old 06-03-2004, 05:38 PM   #3
g452
Member
 
Registered: May 2003
Location: tswane
Distribution: Slackware 9.1
Posts: 113

Original Poster
Rep: Reputation: 15
cool, thanx for the reply

so it seems like it is possible to have diff ip ranges without too much trouble -

i'll have a look at the howto-

laterz
 
Old 06-04-2004, 01:26 PM   #4
g452
Member
 
Registered: May 2003
Location: tswane
Distribution: Slackware 9.1
Posts: 113

Original Poster
Rep: Reputation: 15
ok - i got this going at least

/sbin/ifconfig eth0:0 192.168.2.1

and when i ping that it works - now my question is my nic is addy 192.168.1.XXX - will it still work to use the 192.168.2.1 as an ip for apache ????

i need this only on my local lan - so not too worried bout anything else - a pvt network

laterz
 
  


Reply



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
Fake Directories wwnexc Linux - Software 14 09-05-2005 11:43 PM
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 12:23 PM
fake out netcraft.com chrisknight Linux - General 8 03-13-2004 07:53 PM
[Debian] Make is fake? zaltar Linux - Newbie 5 11-01-2003 10:29 AM
fake email oulevon General 4 05-23-2001 05:07 PM

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

All times are GMT -5. The time now is 11:49 AM.

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