Expose Localhost Service on Another Interfacerpc.statd and avahi-daemon listening on all networks?Cannot...

What are the map units that WGS84 uses?

Looking for the comic book where Spider-Man was [mistakenly] addressed as Super-Man

Why did Boris Johnson call for new elections?

SQL Always On COPY ONLY backups - what's the point if I cant restore the AG from these backups?

How do I write a vertically-stacked definition of a sequence?

How quickly would a wooden treasure chest rot?

How do I anonymously report the Establishment Clause being broken?

Looking for a big fantasy novel about scholarly monks that sort of worship math?

How to create large inductors (1H) for audio use?

Why Is Sojdlg123aljg a Common Password?

What exactly is Apple Cider

Why are some hotels asking you to book through Booking.com instead of matching the price at the front desk?

What are the solutions of this Diophantine equation?

Matlab fmincon for a problem with many nonlinear constraints

Pronounceable encrypted text

Why would one hemisphere of a planet be very mountainous while the other is flat?

Balm of the Summer Court fey energy dice usage limits

Examples where "thin + thin = nice and thick"

First Number to Contain Each Letter

Can you fix a tube with a lighter?

How do I use NEC PC-6001 .p6 or .cas files?

What is the purpose of the rotating plate in front of the lock?

These roommates throw strange parties

Draw the ☣ (Biohazard Symbol)



Expose Localhost Service on Another Interface


rpc.statd and avahi-daemon listening on all networks?Cannot connect to fedora on port 80Docker communication between containersDocker between-container iptables and fail2ban?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have a service bound to localhost:1025:



$ netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1527/sshd
tcp 0 0 127.0.0.1:1025 0.0.0.0:* LISTEN 12998/protonmail-br


I also have a running docker container, that can only access services on the host bound to the docker0 interface at 172.17.0.1.



From the container I can access services that are bound to all interfaces such as ssh, but I cannot access the service bound to localhost:1025.



Is there any way that I can create some kind of proxy that can bind to 172.17.0.1:1025 and transparently forward all traffic to and from the real service at localhost:1025?










share|improve this question































    0















    I have a service bound to localhost:1025:



    $ netstat -tulpn
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1527/sshd
    tcp 0 0 127.0.0.1:1025 0.0.0.0:* LISTEN 12998/protonmail-br


    I also have a running docker container, that can only access services on the host bound to the docker0 interface at 172.17.0.1.



    From the container I can access services that are bound to all interfaces such as ssh, but I cannot access the service bound to localhost:1025.



    Is there any way that I can create some kind of proxy that can bind to 172.17.0.1:1025 and transparently forward all traffic to and from the real service at localhost:1025?










    share|improve this question



























      0












      0








      0








      I have a service bound to localhost:1025:



      $ netstat -tulpn
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1527/sshd
      tcp 0 0 127.0.0.1:1025 0.0.0.0:* LISTEN 12998/protonmail-br


      I also have a running docker container, that can only access services on the host bound to the docker0 interface at 172.17.0.1.



      From the container I can access services that are bound to all interfaces such as ssh, but I cannot access the service bound to localhost:1025.



      Is there any way that I can create some kind of proxy that can bind to 172.17.0.1:1025 and transparently forward all traffic to and from the real service at localhost:1025?










      share|improve this question














      I have a service bound to localhost:1025:



      $ netstat -tulpn
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
      tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1527/sshd
      tcp 0 0 127.0.0.1:1025 0.0.0.0:* LISTEN 12998/protonmail-br


      I also have a running docker container, that can only access services on the host bound to the docker0 interface at 172.17.0.1.



      From the container I can access services that are bound to all interfaces such as ssh, but I cannot access the service bound to localhost:1025.



      Is there any way that I can create some kind of proxy that can bind to 172.17.0.1:1025 and transparently forward all traffic to and from the real service at localhost:1025?







      networking iptables docker proxy






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      JShorthouseJShorthouse

      6872 silver badges10 bronze badges




      6872 silver badges10 bronze badges

























          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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/4.0/"u003ecc by-sa 4.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%2funix.stackexchange.com%2fquestions%2f539280%2fexpose-localhost-service-on-another-interface%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

















          draft saved

          draft discarded



















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f539280%2fexpose-localhost-service-on-another-interface%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

          Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

          The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

          Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...