Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] Exposing docker port on a vm with freeRouter

Subject: Rare project developers

List archive

Re: [rare-dev] Exposing docker port on a vm with freeRouter


Chronological Thread 
  • From: Gabriel Tetzner <>
  • To: mc36 <>
  • Cc:
  • Subject: Re: [rare-dev] Exposing docker port on a vm with freeRouter
  • Date: Mon, 15 Aug 2022 17:56:01 -0300

image.png

Em seg., 15 de ago. de 2022 às 17:52, mc36 <> escreveu:
what about show ipv4 route inet? does freerouter know about that 172.31.32.29 ?

On 8/15/22 22:50, Gabriel Tetzner wrote:
> Hi,
>
> sudo nano docker-compose:
>
> version: '3'
> services:
>     prometheus:
>        image: prom/prometheus:latest
>        container_name: prometheus
>        restart: always
>        ports:
>        - 9090:9090
>        command:
>        - --config.file=/etc/prometheus/prometheus.yml
>        volumes:
>        - /etc/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
>        - /etc/prometheus/alert.rules:/etc/prometheus/alert.rules:ro
>
> server forwarder prometheus:
>
> server forwarder prometheus
>    access-log
>    access-rate 5 5000
>    access-total 5
>    access-peer 5
>    port 9090
>    logging
>    target vrf inet
>    target interface ethernet1
>    target address  172.31.32.29
>    target port 9090
>    interface ethernet1
>    vrf inet
>    exit
> !
>
>
>
> Em seg., 15 de ago. de 2022   s 17:45, mc36 < <mailto:>> escreveu:
>
>     hi,
>
>     On 8/15/22 22:39, Gabriel Tetzner wrote:
>      > I think it is that way, since the public ip is associated with the freeRouter now, or is there another way to redirect the debian OS port (9090) to the freeRouter so that it is
>      > accessible externally? Or how to do this?
>      >
>
>     but in generally speaking, yeahh, the forwarder server is a way to do the work...
>     here is the test for it: http://sources.freertr.org/cfg/serv-forward.tst <http://sources.freertr.org/cfg/serv-forward.tst>
>
>        > But I can't access the prometheus server externally, I tried to make the server forwarder work to redirect this port, but I lose access to ssh from the vm.
>
>     did you created a new forwarder or reused the one for the ssh?
>
>     br,
>     cs
>



Archive powered by MHonArc 2.6.19.

Top of Page