Sign inSign up

shilazi/pingtunnel

By shilazi

•Updated about 3 years ago

https://github.com/esrrhs/pingtunnel

Image
0

134

shilazi/pingtunnel repository overview

⁠A simple image for pingtunnel⁠

⁠Dockerfile

FROM alpine:3.18.3

ARG TUNNEL_VER=2.7

ENV GIT_REPO=https://github.com/esrrhs/pingtunnel
ENV TUNNEL_ZIP=pingtunnel_linux_amd64.zip

RUN set -x \
    && wget ${GIT_REPO}/releases/download/${TUNNEL_VER}/${TUNNEL_ZIP} \
    && unzip ${TUNNEL_ZIP} -d /tmp

# ---------- 8< ----------

FROM alpine:3.18.3

RUN set -x \
    && apk add --no-cache bash ca-certificates

COPY --from=0 /tmp/pingtunnel /usr/bin/pingtunnel

ENTRYPOINT ["pingtunnel"]

⁠Usage

⁠Server
echo 1 | sudo tee /proc/sys/net/ipv4/icmp_echo_ignore_all
version: '3.9'

services:
  pingtunnel:
    image: shilazi/pingtunnel:2.7
    container_name: pingtunnel
    command: -type server -key 1024
    network_mode: host
    privileged: true
    restart: unless-stopped
⁠Client
pingtunnel -type client -l :4000 -s ${VPS_IP} -t 127.0.0.1:4000 -key 1024

⁠Doubt

In my case, it dose not work well. If you need help, but github issues not enabled, there is no way to find help. 😂

Tips: icmp is used for data transfer, so the server network cannot be monitored via ping.

Tag summary

Content type

Image

Digest

sha256:9de5b963d…

Size

7.5 MB

Last updated

about 3 years ago

docker pull shilazi/pingtunnel:2.7