LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-26-2014, 04:45 AM   #1
SignorX
LQ Newbie
 
Registered: Jun 2011
Posts: 20

Rep: Reputation: Disabled
Redirect a wan request into a lan server


Hi guys,

I have the following problem: When I am in my home lan I would like to redirect all the requests to a website into a server (local server). Is it possibile? Does it concern the router or the client machine?

Thank you for your help
 
Old 12-26-2014, 04:23 PM   #2
VitalkaDrug
LQ Newbie
 
Registered: Aug 2014
Location: Russia, Far East, Komsomolsk-on-Amur
Distribution: Debian
Posts: 5

Rep: Reputation: Disabled
Just add appropriate record into your /etc/hosts file:

192.168.12.200 vitalkadrug.ru

After saving it all local application have to try to connect to 192.168.12.200 instead real IP of vitalkadrug.ru.

Last edited by VitalkaDrug; 12-26-2014 at 04:25 PM.
 
Old 12-28-2014, 05:12 AM   #3
SignorX
LQ Newbie
 
Registered: Jun 2011
Posts: 20

Original Poster
Rep: Reputation: Disabled
Thank you very much for your help: it works!
 
  


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
[SOLVED] redirect http request to an ftp server x201s Linux - Server 7 06-09-2012 02:24 PM
DNS Server WAN-LAN connection problem DKLeader Linux - Newbie 3 10-08-2009 04:59 PM
Cannot view pages on lan server via wan i.p. devwink Linux - Networking 6 10-15-2008 11:51 PM
Connectivity problem with Mandrake Linux 10.1 LAN/WAN/Samba Server BiO|Happy Linux - Networking 3 05-05-2005 02:51 PM
LAN/WAN IP address and http to virtual server behind DSL modem E-Rick Linux - Networking 3 10-19-2004 10:01 AM

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

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