LinuxQuestions.org
Help answer threads with 0 replies.
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 11-22-2015, 10:06 AM   #1
tram12
LQ Newbie
 
Registered: Nov 2015
Posts: 2

Rep: Reputation: Disabled
Route all traffic, incoming and outgoing thru another machine


Hi.

I hope someone can help me find the best solution for this scenario. The setup is kind of simple.

I have two servers with different public IPs (server A and B). I want server B to be "hidden" behind server A. All traffic to AND from server B should go thru server A (also outgoing so that the IP of server A is the one showing on all outgoing traffic).

The setup will experience high load during business hours so I need the best possible performance, encryption between the servers is not needed.

What solution do you recommend? Im running Ubuntu on both servers.

Thank you for your opinion.
 
Old 11-22-2015, 10:35 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
For ipv4 use NAT in iptables on server A to hide server B. For traffic originating from B source NAT rewrites the source address on outbound packets and the dest address of inbound packets. If you run services on B that need to be reachable from the internet you need port forwarding and dest NAT.
 
1 members found this post helpful.
Old 12-03-2015, 02:02 PM   #3
tram12
LQ Newbie
 
Registered: Nov 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello.

Thank you.

I googled your solution and came across this article with some working examples:

https://thewiringcloset.wordpress.co...ble-snat-dnat/

So, problem solved.

Thanks.
 
  


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
Administration of all incoming / outgoing traffic ideas Biosko Linux - Security 2 08-20-2015 05:24 PM
Rotuing Gameserver Traffic thorugh VPN Incoming/Outgoing tilloo3 Linux - Networking 11 05-25-2015 09:20 AM
How to route incoming traffic to two hosts behind nat mwx Linux - Networking 3 05-25-2010 02:25 PM
Network traffic -- monitor my incoming and outgoing ports bskrakes Linux - Networking 5 04-02-2008 08:44 AM
Incoming and outgoing traffic (packets) increased tooparam General 4 09-22-2006 01:20 PM

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

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