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

Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020