Subject: Rare project developers
List archive
- From: mc36 <>
- To: Gabriel Tetzner <>
- Cc:
- Subject: Re: [rare-dev] Exposing docker port on a vm with freeRouter
- Date: Mon, 15 Aug 2022 23:05:55 +0200
okkk, so as i see 172.31.32.29/32 is LOC, that is, freerouter got it from
dhcp...
so now, if you look at your forwarder, it's an infinite loop: you binded it
to eth1:9090,
which is 172.31.32.29:9090, according to your screenshot... then you
forwarded it to
172.31.32.29:9090, which is itself, and the same port.. so it simply ran out
of ram
regardless how much you gave it... :)
instead, if you want to mix freerouter and docker, do install freerouter as
the last,
and let freerouter take over the host's auto-created docker interfaces too...
alternatively, you can re-trigger the physical interface detection by running
the bottom
lines of the
https://github.com/rare-freertr/freeRtr/blob/master/misc/service/c.sh
script...
br,
cs
On 8/15/22 22:56, Gabriel Tetzner wrote:
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 < <>
< <>>> 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>
<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
>
- [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/15/2022
- Message not available
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/16/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/16/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/16/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/16/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/16/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/16/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/16/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/17/2022
- Message not available
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, mc36, 08/15/2022
- Re: [rare-dev] Exposing docker port on a vm with freeRouter, Gabriel Tetzner, 08/15/2022
Archive powered by MHonArc 2.6.19.