That is probably the way to do it. Another reason for updating to Akka 2.4.
/Patrik lör 6 maj 2017 kl. 18:10 skrev 'Michal Borowiecki' via Akka User List < akka-user@googlegroups.com>: > I've not tried that, but it reminded me of something in the docs that says: > > *Important*: Using setups involving Network Address Translation, Load > Balancers or Docker containers violates assumption 1, unless additional > steps are taken in the network configuration to allow symmetric > communication between involved systems. In such situations Akka can be > configured to bind to a different network address than the one used for > establishing connections between Akka nodes. See Akka behind NAT or in a > Docker container > <http://doc.akka.io/docs/akka/2.5.1/scala/remoting.html#remote-configuration-nat> > . > > > I think SSH tunnelling counts as NAT, so Akka behind NAT or in a Docker > container > <http://doc.akka.io/docs/akka/2.5.1/scala/remoting.html#remote-configuration-nat> > section should give you the answers. > > Please let me know if that helped. > > Cheers, > > Michal > > On 02/05/17 22:58, Evan Chan wrote: > > Hi guys, > > I have a host which is Akka 2.3.15 (yes I know that's ancient, but can't > help it for now) running Akka cluster. > Now I have a remote client connecting to it, using > system.actorSelection(.....). > > The client can connect from the host that the server is running on, no > problem -- if I use the exact hostname that the server was started with in > the akka remote TCP config. > > Now, I wish to use ssh tunneling to connect to the server. This does not > appear to work. I get errors like: > > [2017-05-02 14:19:30,560] ERROR akka.remote.EndpointWriter [] [ > akka.tcp://filo-standal...@xx.yy.65.65:2552/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2Ffilo-cli%40192.168.1.108%3A60669-0/endpointWriter] > - dropping message [class akka.actor.ActorSelectionMessage] for non-local > recipient [Actor[akka.tcp://filo-standalone@localhost:1235/]] arriving at > [akka.tcp://filo-standalone@localhost:1235] inbound addresses are [ > akka.tcp://filo-standal...@xx.yy.65.65:2552] > > > Basically xx.yy.65.65 is the local server IP address and also the address > the server is set to for Akka config. > "localhost" 1235 is the SSH tunnel address and port which forwards to the > server and real Akka port (2552). > > Any configs to get SSH tunneling to work? > > thanks, > Evan > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to akka-user+unsubscr...@googlegroups.com. > To post to this group, send email to akka-user@googlegroups.com. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > > > -- > <http://www.openbet.com/> Michal Borowiecki > Senior Software Engineer L4 > T: +44 208 742 1600 > > > +44 203 249 8448 > > > > E: michal.borowie...@openbet.com > W: www.openbet.com > OpenBet Ltd > > Chiswick Park Building 9 > > 566 Chiswick High Rd > > London > > W4 5XT > > UK > <https://www.openbet.com/email_promo> > This message is confidential and intended only for the addressee. If you > have received this message in error, please immediately notify the > postmas...@openbet.com and delete it from your system as well as any > copies. The content of e-mails as well as traffic data may be monitored by > OpenBet for employment and security purposes. To protect the environment > please do not print this e-mail unless necessary. OpenBet Ltd. Registered > Office: Chiswick Park Building 9, 566 Chiswick High Road, London, W4 5XT, > United Kingdom. A company registered in England and Wales. Registered no. > 3134634. VAT no. GB927523612 > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to akka-user+unsubscr...@googlegroups.com. > To post to this group, send email to akka-user@googlegroups.com. > Visit this group at https://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.