forward Redis requests across AWS regionsHow do you get Redis connections working within an Amazon VPC private subnet?AWS - how to serve faster to oversea usersAWS StrongSwan IPSec VPNAWS Site-to-Site VPN and Remote-Access VPN Server using PritunlService VPC for on premise connection in awsVPN connection between 2 AWS regionsVerizon VPN to AWS VPCConnect to Redis through Haproxy (or maybe stunnel) skipping TLSscrapy-redis can't connect to AWS Redis ElastiCacheBest practise for connecting physical site to aws region which is not local?

How do I professionally let my manager know I'll quit over smoking in the office?

NSE Numerical IQ Test no.12: 759802, 358829, 847123,?

Drawing people along with x and y axis

Why tighten down in a criss-cross pattern?

What is "industrial ethernet"?

Understanding the reasoning of the woman who agreed with King Solomon to "cut the baby in half"

What does it mean to "control target player"?

How to make clear to people I don't want to answer their "Where are you from?" question?

Can White Castle?

Why do textbooks often include the solutions to odd or even numbered problems but not both?

Loss of power when I remove item from the outlet

What's the difference between a deep fryer and a chip pan?

Is there a maximum distance from a planet that a moon can orbit?

Does this Wild Magic result affect the sorcerer or just other creatures?

How to get cool night-vision without lame drawbacks?

Can humans ever directly see a few photons at a time? Can a human see a single photon?

How much will studying magic in an academy cost?

How long would it take to cross the Channel in 1890's?

Should developer taking test phones home or put in office?

Are all instances of trolls turning to stone ultimately references back to Tolkien?

"How can you guarantee that you won't change/quit job after just couple of months?" How to respond?

Minimum distance between holes in inner tube

What is the legal status of travelling with methadone in your carry-on?

Should I prioritize my 401k over my student loans?



forward Redis requests across AWS regions


How do you get Redis connections working within an Amazon VPC private subnet?AWS - how to serve faster to oversea usersAWS StrongSwan IPSec VPNAWS Site-to-Site VPN and Remote-Access VPN Server using PritunlService VPC for on premise connection in awsVPN connection between 2 AWS regionsVerizon VPN to AWS VPCConnect to Redis through Haproxy (or maybe stunnel) skipping TLSscrapy-redis can't connect to AWS Redis ElastiCacheBest practise for connecting physical site to aws region which is not local?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have a Redis instance running on AWS Elasticache in US-East. I have VPN servers running in Tokyo and US-East.



The problem: How to allow Redis connections while VPNd to the Tokyo VPN? You can only open Elasticache security groups to the same region, so it doesn't work for the Tokyo VPN.



It seems like I should be able to make the Tokyo VPN tunnel all the Redis traffic through the US-East VPN but I just don't really know how to do that. Can anyone get me started in the right direction? Do I setup something with iptables or ssh port forwarding or what?



I only want to tunnel the Redis traffic (single TCP port). The rest of the traffic should be handled normally.



My Tokyo VPN is Ubuntu 12.04.4 LTS (L2TP VPN) and the US-East VPN is running some Ubuntu 12.04 AMI that comes pre-installed with OpenVPN.



I know the proper AWS way of working here is to duplicate my Redis instance and application servers in Tokyo, or to use VPC, but I would rather just stick with my existing infrastructure / architecture. I don't think converting to VPC is a non-trivial amount of work, and the only reason I'm using a VPN in Tokyo is so our single employee living in China has a fast VPN to the rest of our services running in US-East. The Great Firewall of China was causing problems for him when he was using our US-East VPN.










share|improve this question

















  • 1





    It should take less than an hour to set up VPC if you've never done it before.

    – Michael Hampton
    Apr 21 '14 at 13:22











  • Is it easy to convert an existing infrastructure to VPC though? I don't want to have to recreate all my instances or stop/restart them.

    – tayl0r
    Apr 21 '14 at 13:24











  • Just read some stuff about converting from EC2 to VPC. Definitely not something I want to do right now.

    – tayl0r
    Apr 21 '14 at 14:04











  • Given that Redis is a blocking, single threaded server, the network latency will murder performance.

    – Brennen Smith
    Jun 5 at 21:20

















1















I have a Redis instance running on AWS Elasticache in US-East. I have VPN servers running in Tokyo and US-East.



The problem: How to allow Redis connections while VPNd to the Tokyo VPN? You can only open Elasticache security groups to the same region, so it doesn't work for the Tokyo VPN.



It seems like I should be able to make the Tokyo VPN tunnel all the Redis traffic through the US-East VPN but I just don't really know how to do that. Can anyone get me started in the right direction? Do I setup something with iptables or ssh port forwarding or what?



I only want to tunnel the Redis traffic (single TCP port). The rest of the traffic should be handled normally.



My Tokyo VPN is Ubuntu 12.04.4 LTS (L2TP VPN) and the US-East VPN is running some Ubuntu 12.04 AMI that comes pre-installed with OpenVPN.



I know the proper AWS way of working here is to duplicate my Redis instance and application servers in Tokyo, or to use VPC, but I would rather just stick with my existing infrastructure / architecture. I don't think converting to VPC is a non-trivial amount of work, and the only reason I'm using a VPN in Tokyo is so our single employee living in China has a fast VPN to the rest of our services running in US-East. The Great Firewall of China was causing problems for him when he was using our US-East VPN.










share|improve this question

















  • 1





    It should take less than an hour to set up VPC if you've never done it before.

    – Michael Hampton
    Apr 21 '14 at 13:22











  • Is it easy to convert an existing infrastructure to VPC though? I don't want to have to recreate all my instances or stop/restart them.

    – tayl0r
    Apr 21 '14 at 13:24











  • Just read some stuff about converting from EC2 to VPC. Definitely not something I want to do right now.

    – tayl0r
    Apr 21 '14 at 14:04











  • Given that Redis is a blocking, single threaded server, the network latency will murder performance.

    – Brennen Smith
    Jun 5 at 21:20













1












1








1








I have a Redis instance running on AWS Elasticache in US-East. I have VPN servers running in Tokyo and US-East.



The problem: How to allow Redis connections while VPNd to the Tokyo VPN? You can only open Elasticache security groups to the same region, so it doesn't work for the Tokyo VPN.



It seems like I should be able to make the Tokyo VPN tunnel all the Redis traffic through the US-East VPN but I just don't really know how to do that. Can anyone get me started in the right direction? Do I setup something with iptables or ssh port forwarding or what?



I only want to tunnel the Redis traffic (single TCP port). The rest of the traffic should be handled normally.



My Tokyo VPN is Ubuntu 12.04.4 LTS (L2TP VPN) and the US-East VPN is running some Ubuntu 12.04 AMI that comes pre-installed with OpenVPN.



I know the proper AWS way of working here is to duplicate my Redis instance and application servers in Tokyo, or to use VPC, but I would rather just stick with my existing infrastructure / architecture. I don't think converting to VPC is a non-trivial amount of work, and the only reason I'm using a VPN in Tokyo is so our single employee living in China has a fast VPN to the rest of our services running in US-East. The Great Firewall of China was causing problems for him when he was using our US-East VPN.










share|improve this question














I have a Redis instance running on AWS Elasticache in US-East. I have VPN servers running in Tokyo and US-East.



The problem: How to allow Redis connections while VPNd to the Tokyo VPN? You can only open Elasticache security groups to the same region, so it doesn't work for the Tokyo VPN.



It seems like I should be able to make the Tokyo VPN tunnel all the Redis traffic through the US-East VPN but I just don't really know how to do that. Can anyone get me started in the right direction? Do I setup something with iptables or ssh port forwarding or what?



I only want to tunnel the Redis traffic (single TCP port). The rest of the traffic should be handled normally.



My Tokyo VPN is Ubuntu 12.04.4 LTS (L2TP VPN) and the US-East VPN is running some Ubuntu 12.04 AMI that comes pre-installed with OpenVPN.



I know the proper AWS way of working here is to duplicate my Redis instance and application servers in Tokyo, or to use VPC, but I would rather just stick with my existing infrastructure / architecture. I don't think converting to VPC is a non-trivial amount of work, and the only reason I'm using a VPN in Tokyo is so our single employee living in China has a fast VPN to the rest of our services running in US-East. The Great Firewall of China was causing problems for him when he was using our US-East VPN.







networking amazon-web-services redis






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 21 '14 at 11:59









tayl0rtayl0r

112




112







  • 1





    It should take less than an hour to set up VPC if you've never done it before.

    – Michael Hampton
    Apr 21 '14 at 13:22











  • Is it easy to convert an existing infrastructure to VPC though? I don't want to have to recreate all my instances or stop/restart them.

    – tayl0r
    Apr 21 '14 at 13:24











  • Just read some stuff about converting from EC2 to VPC. Definitely not something I want to do right now.

    – tayl0r
    Apr 21 '14 at 14:04











  • Given that Redis is a blocking, single threaded server, the network latency will murder performance.

    – Brennen Smith
    Jun 5 at 21:20












  • 1





    It should take less than an hour to set up VPC if you've never done it before.

    – Michael Hampton
    Apr 21 '14 at 13:22











  • Is it easy to convert an existing infrastructure to VPC though? I don't want to have to recreate all my instances or stop/restart them.

    – tayl0r
    Apr 21 '14 at 13:24











  • Just read some stuff about converting from EC2 to VPC. Definitely not something I want to do right now.

    – tayl0r
    Apr 21 '14 at 14:04











  • Given that Redis is a blocking, single threaded server, the network latency will murder performance.

    – Brennen Smith
    Jun 5 at 21:20







1




1





It should take less than an hour to set up VPC if you've never done it before.

– Michael Hampton
Apr 21 '14 at 13:22





It should take less than an hour to set up VPC if you've never done it before.

– Michael Hampton
Apr 21 '14 at 13:22













Is it easy to convert an existing infrastructure to VPC though? I don't want to have to recreate all my instances or stop/restart them.

– tayl0r
Apr 21 '14 at 13:24





Is it easy to convert an existing infrastructure to VPC though? I don't want to have to recreate all my instances or stop/restart them.

– tayl0r
Apr 21 '14 at 13:24













Just read some stuff about converting from EC2 to VPC. Definitely not something I want to do right now.

– tayl0r
Apr 21 '14 at 14:04





Just read some stuff about converting from EC2 to VPC. Definitely not something I want to do right now.

– tayl0r
Apr 21 '14 at 14:04













Given that Redis is a blocking, single threaded server, the network latency will murder performance.

– Brennen Smith
Jun 5 at 21:20





Given that Redis is a blocking, single threaded server, the network latency will murder performance.

– Brennen Smith
Jun 5 at 21:20










1 Answer
1






active

oldest

votes


















0














I figured out I can actually just use SSH port forwarding for this, and then connect to localhost instead of the Redis address.



ssh -L 6379:redisinstance.cache.amazonaws.com:6379 taylor@us-east.vpn.amazonaws.com


So, Redis traffic goes through the us-east box via ssh, while the rest of the traffic goes through the Tokyo VPN.






share|improve this answer

























  • Exactly. Two tips: add compression to your SSH connection (-C or Compression yes in .ssh/config) and use autossh. We'll add a howto on how to do this at userify.com shortly.

    – Jamieson Becker
    Feb 7 '17 at 17:03













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f590309%2fforward-redis-requests-across-aws-regions%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I figured out I can actually just use SSH port forwarding for this, and then connect to localhost instead of the Redis address.



ssh -L 6379:redisinstance.cache.amazonaws.com:6379 taylor@us-east.vpn.amazonaws.com


So, Redis traffic goes through the us-east box via ssh, while the rest of the traffic goes through the Tokyo VPN.






share|improve this answer

























  • Exactly. Two tips: add compression to your SSH connection (-C or Compression yes in .ssh/config) and use autossh. We'll add a howto on how to do this at userify.com shortly.

    – Jamieson Becker
    Feb 7 '17 at 17:03















0














I figured out I can actually just use SSH port forwarding for this, and then connect to localhost instead of the Redis address.



ssh -L 6379:redisinstance.cache.amazonaws.com:6379 taylor@us-east.vpn.amazonaws.com


So, Redis traffic goes through the us-east box via ssh, while the rest of the traffic goes through the Tokyo VPN.






share|improve this answer

























  • Exactly. Two tips: add compression to your SSH connection (-C or Compression yes in .ssh/config) and use autossh. We'll add a howto on how to do this at userify.com shortly.

    – Jamieson Becker
    Feb 7 '17 at 17:03













0












0








0







I figured out I can actually just use SSH port forwarding for this, and then connect to localhost instead of the Redis address.



ssh -L 6379:redisinstance.cache.amazonaws.com:6379 taylor@us-east.vpn.amazonaws.com


So, Redis traffic goes through the us-east box via ssh, while the rest of the traffic goes through the Tokyo VPN.






share|improve this answer















I figured out I can actually just use SSH port forwarding for this, and then connect to localhost instead of the Redis address.



ssh -L 6379:redisinstance.cache.amazonaws.com:6379 taylor@us-east.vpn.amazonaws.com


So, Redis traffic goes through the us-east box via ssh, while the rest of the traffic goes through the Tokyo VPN.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 31 '14 at 3:44









DaAwesomeP

1186




1186










answered Apr 28 '14 at 11:22









tayl0rtayl0r

112




112












  • Exactly. Two tips: add compression to your SSH connection (-C or Compression yes in .ssh/config) and use autossh. We'll add a howto on how to do this at userify.com shortly.

    – Jamieson Becker
    Feb 7 '17 at 17:03

















  • Exactly. Two tips: add compression to your SSH connection (-C or Compression yes in .ssh/config) and use autossh. We'll add a howto on how to do this at userify.com shortly.

    – Jamieson Becker
    Feb 7 '17 at 17:03
















Exactly. Two tips: add compression to your SSH connection (-C or Compression yes in .ssh/config) and use autossh. We'll add a howto on how to do this at userify.com shortly.

– Jamieson Becker
Feb 7 '17 at 17:03





Exactly. Two tips: add compression to your SSH connection (-C or Compression yes in .ssh/config) and use autossh. We'll add a howto on how to do this at userify.com shortly.

– Jamieson Becker
Feb 7 '17 at 17:03

















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f590309%2fforward-redis-requests-across-aws-regions%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company