LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-28-2015, 10:16 PM   #1
cpchenhk
LQ Newbie
 
Registered: Jul 2015
Posts: 1

Rep: Reputation: Disabled
ip redirect


hi experts, i have two host. let say , host1, IP 10.10.10.10 , host 2 IP, 20.20.20.20 , i don't want others to know my host 1 IP , as it all time got DDOS,
so i only give host2 IP , when doing web enquiry , host2 will point to host1 to get data , and host 1 send back data to host2,

it seems like IP mapping ,
can you advise, how to do ? or any other good way to do
my purpose is hidden my host1 IP

thanks
CP
 
Old 07-29-2015, 03:15 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,149

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
You can do this by setting up DNAT on host2 using iptables. All requests to port 80 or 443 would be received on host2 and forwarded to host1, which can be on a local network or elsewhere on the internet. iptables rules can also be used to filter the DDOS traffic.
 
  


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
Nginx, Horde, Https, Redirect, This webpage has a redirect loop axetone Ubuntu 0 02-08-2015 10:44 PM
How to redirect an IP to a new IP postcd Linux - Networking 3 02-20-2014 08:29 AM
redirect please Linux - Networking 5 06-22-2009 03:21 AM
redirect matt1982 Programming 2 12-20-2004 09:53 AM
redirect spank Linux - Newbie 2 03-01-2004 03:38 PM

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

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