О доступе к сайту на локалхост извне

Настройка, программирование, распределённые вычисления

Модераторы: Olej, bellic, vikos

Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост из вне

Непрочитанное сообщение Olej » 10 окт 2019, 21:56

Olej писал(а):
08 окт 2019, 22:53
2. miredo: Miredo: Teredo IPv6 tunneling for Linux and BSD (проект не развивается с 2013г.)
MIREDO
Miredo (miredo-client) — утилита для работы с Teredo — протоколом для передачи IPv6 пакетов через IPv4 сети.

С его помощью мы можем быстро настроить IPv6 подключение там, где оно не предусмотрено по тем или иным причинам. Для этого, достаточно установить и запустить соответствующее ПО (я делаю это на Fedora 29):
Miredo: установка IPv6 в GNU/Linux за 1 минуту
В современных дистрибутивах GNU/Linux существует возможность получить автоматически настроенный IPv6-туннель, введя всего одну команду – даже если ваш провайдер не поддерживает IPv6 или предоставляет выход в Интернет только через свой NAT. Достаточно лишь установить программу под названием Miredo
По miredo я нашёл только родной сайт с исходниками https://www.remlab.net/files/miredo/debian/:

Код: Выделить всё

olej@ACER:~/Загрузки/DDNS$ ls -l miredo_*
-rw-r--r-- 1 olej olej 223152 окт 10 18:56 miredo_1.2.5-1_i386.deb
-rw-r--r-- 1 olej olej 474236 окт 10 18:57 miredo_1.2.5.orig.tar.xz
.deb - это под 32-бит:

Код: Выделить всё

olej@ACER:~/Загрузки/DDNS$ sudo dpkg -i miredo_1.2.5-1_i386.deb 
[sudo] пароль для olej: 
dpkg: ошибка при обработке архива miredo_1.2.5-1_i386.deb (--install):
 архитектура пакета (i386) не соответствует архитектуре системы (amd64)
При обработке следующих пакетов произошли ошибки:
 miredo_1.2.5-1_i386.deb
А вот разархивировав miredo_1.2.5.orig.tar.xz мы получим исходники ... с которыми ничего лучше не придумаешь сделать, как собрать:

Код: Выделить всё

olej@ACER:~/miredo-1.2.5$ pwd
/home/olej/miredo-1.2.5
Проект не самый вчерашний - последние даты файлов где-то 2012г.

Код: Выделить всё

olej@ACER:~/miredo-1.2.5$ ./configure 
configure: checking system...
checking for build hostname... ACER
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: checking required programs...
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to accept ISO C99... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... gawk
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make supports nested variables... yes
configure: checking required libraries...
checking for /proc/self/maps... yes
checking whether everything is installed to the same prefix... no
checking whether binary relocation support should be enabled... no
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for clock_gettime in -lrt... yes
checking for library containing socket... none required
checking for library containing inet_ntop... none required
checking for res_init in -lresolv... no
checking which hook scripts to use... iproute
checking for pthread_create in -lpthread... yes
configure: checking header files...
checking whether to enable assertions... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking net/if_tun.h usability... no
checking net/if_tun.h presence... no
checking for net/if_tun.h... no
checking net/tun/if_tun.h usability... no
checking net/tun/if_tun.h presence... no
checking for net/tun/if_tun.h... no
checking for net/if_var.h... no
configure: checking target characteristics...
checking if gcc accepts -Wall... yes
checking if gcc accepts -Wextra... yes
checking if gcc accepts -Wundef... yes
checking if gcc accepts -Wpointer-arith... yes
checking if gcc accepts -Wbad-function-cast... yes
checking if gcc accepts -Wcast-align... yes
checking if gcc accepts -Wwrite-strings... yes
checking if gcc accepts -Waggregate-return... yes
checking if gcc accepts -Wstrict-prototypes... yes
checking if gcc accepts -Wold-style-definition... yes
checking if gcc accepts -Wmissing-prototypes... yes
checking if gcc accepts -Wmissing-noreturn... yes
checking if gcc accepts -Wpacked... yes
checking if gcc accepts -Wnested-externs... yes
checking if gcc accepts -Wredundant-decls... yes
checking if gcc accepts -Wvolatile-register-var... yes
checking whether byte ordering is bigendian... no
checking if struct sockaddr has a sa_len member... no
checking for clockid_t... yes
configure: checking library functions...
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for library containing getopt_long... none required
checking for devname_r... no
checking for kldload... no
checking for pthread_condattr_setclock... yes
checking for timer_create... yes
checking for clearenv... yes
checking for closefrom... no
checking for strlcpy... no
checking for clock_gettime... yes
checking for clock_nanosleep... yes
checking for fdatasync... yes
configure: checking optional features...
checking sys/capability.h usability... no
checking sys/capability.h presence... no
checking for sys/capability.h... no
checking Judy.h usability... no
checking Judy.h presence... no
checking for Judy.h... no
checking for tdestroy... yes
checking whether to build for test coverage... no
checking whether to include Teredo client support... yes
checking user to run as... nobody
configure: writing results...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating m4/Makefile
config.status: creating doc/Makefile
config.status: creating misc/Makefile
config.status: creating compat/Makefile
config.status: creating libtun6/Makefile
config.status: creating libteredo/Makefile
config.status: creating libteredo/test/Makefile
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating Doxyfile
config.status: creating config.h
config.status: executing libtool commands
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile

Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост извне

Непрочитанное сообщение Olej » 10 окт 2019, 21:57

Компиляция:

Код: Выделить всё

olej@ACER:~/miredo-1.2.5$ make
make  all-recursive
make[1]: вход в каталог «/home/olej/miredo-1.2.5»
Making all in po
make[2]: вход в каталог «/home/olej/miredo-1.2.5/po»
make[2]: выход из каталога «/home/olej/miredo-1.2.5/po»
Making all in doc
make[2]: вход в каталог «/home/olej/miredo-1.2.5/doc»
  SED    miredo.8
  SED    miredo-server.8
  SED    miredo-checkconf.8
make[2]: выход из каталога «/home/olej/miredo-1.2.5/doc»
Making all in misc
make[2]: вход в каталог «/home/olej/miredo-1.2.5/misc»
  CAT    client-hook
  SED    miredo.conf
  SED    miredo-server.conf
  SED    miredo.service
make[2]: выход из каталога «/home/olej/miredo-1.2.5/misc»
Making all in compat
make[2]: вход в каталог «/home/olej/miredo-1.2.5/compat»
  CC     dummy.lo
  CC     closefrom.lo
  CC     strlcpy.lo
  CCLD   libcompat.la
ar: `u' modifier ignored since `D' is the default (see `U')
make[2]: выход из каталога «/home/olej/miredo-1.2.5/compat»
Making all in libteredo
make[2]: вход в каталог «/home/olej/miredo-1.2.5/libteredo»
Making all in .
make[3]: вход в каталог «/home/olej/miredo-1.2.5/libteredo»
  CC     init.lo
In file included from init.c:27:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC     relay.lo
In file included from relay.c:29:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC     security.lo
  CC     md5.lo
  CC     packets.lo
In file included from packets.c:29:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC     peerlist.lo
peerlist.c: In function 'teredo_list_create':
peerlist.c:291:23: warning: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
  memset (l, 0, sizeof (l));
                       ^
  CC     clock.lo
  CC     stub.lo
  CC     maintain.lo
In file included from maintain.c:29:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
maintain.c: In function 'maintenance_thread':
maintain.c:246:11: warning: variable 'server_ip' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  uint32_t server_ip = 0;
           ^~~~~~~~~
maintain.c:247:11: warning: variable 'count' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  unsigned count = 0;
           ^~~~~
maintain.c:252:4: warning: variable 'last_error' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
  } last_error = TERR_NONE;
    ^~~~~~~~~~
  CC     teredo.lo
  CC     v4global.lo
  CCLD   libteredo-common.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CCLD   libteredo.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC     server.lo
In file included from server.c:26:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD   libteredo-server.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC     mire.o
  CCLD   teredo-mire
make[3]: выход из каталога «/home/olej/miredo-1.2.5/libteredo»
Making all in test
make[3]: вход в каталог «/home/olej/miredo-1.2.5/libteredo/test»
make[3]: Цель «all» не требует выполнения команд.
make[3]: выход из каталога «/home/olej/miredo-1.2.5/libteredo/test»
make[2]: выход из каталога «/home/olej/miredo-1.2.5/libteredo»
Making all in libtun6
make[2]: вход в каталог «/home/olej/miredo-1.2.5/libtun6»
  CC     tun6.lo
In file included from tun6.c:26:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC     diag.lo
In file included from diag.c:26:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD   libtun6.la
ar: `u' modifier ignored since `D' is the default (see `U')
make[2]: выход из каталога «/home/olej/miredo-1.2.5/libtun6»
Making all in src
make[2]: вход в каталог «/home/olej/miredo-1.2.5/src»
  CC     main.lo
In file included from main.c:27:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC     miredo.lo
In file included from miredo.c:29:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC     conf.lo
In file included from conf.c:26:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcpgettext_expr':
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function 'dcnpgettext_expr':
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC     binreloc.lo
  CCLD   libmiredo.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC     privproc.o
  CCLD   miredo-privproc
  CC     relayd.o
In file included from relayd.c:27:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function ‘dcpgettext_expr’:
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function ‘dcnpgettext_expr’:
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD   miredo
  CC     serverd.o
In file included from serverd.c:26:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function ‘dcpgettext_expr’:
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function ‘dcnpgettext_expr’:
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD   miredo-server
  CC     checkconf.o
In file included from checkconf.c:26:
../include/gettext.h:185:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function ‘dcpgettext_expr’:
../include/gettext.h:209:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:224:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h: In function ‘dcnpgettext_expr’:
../include/gettext.h:255:5: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/gettext.h:270:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined]
 #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CCLD   miredo-checkconf
make[2]: выход из каталога «/home/olej/miredo-1.2.5/src»
make[2]: вход в каталог «/home/olej/miredo-1.2.5»
make[2]: выход из каталога «/home/olej/miredo-1.2.5»
make[1]: выход из каталога «/home/olej/miredo-1.2.5»
Предупреждений - много. Ошибок - нет.

Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост извне

Непрочитанное сообщение Olej » 10 окт 2019, 22:01

Установка:

Код: Выделить всё

olej@ACER:~/miredo-1.2.5$ sudo make install
[sudo] пароль для olej: 
Making install in po
make[1]: вход в каталог «/home/olej/miredo-1.2.5/po»
installing en.gmo as /usr/local/share/locale/en/LC_MESSAGES/miredo.mo
installing en_GB.gmo as /usr/local/share/locale/en_GB/LC_MESSAGES/miredo.mo
installing fr.gmo as /usr/local/share/locale/fr/LC_MESSAGES/miredo.mo
if test "miredo" = "gettext-tools"; then \
  /usr/bin/mkdir -p /usr/local/share/gettext/po; \
  for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot   Makevars.template; do \
    /usr/bin/install -c -m 644 ./$file \
	    /usr/local/share/gettext/po/$file; \
  done; \
  for file in Makevars; do \
    rm -f /usr/local/share/gettext/po/$file; \
  done; \
else \
  : ; \
fi
make[1]: выход из каталога «/home/olej/miredo-1.2.5/po»
Making install in doc
make[1]: вход в каталог «/home/olej/miredo-1.2.5/doc»
make[2]: вход в каталог «/home/olej/miredo-1.2.5/doc»
make[2]: Цель «install-exec-am» не требует выполнения команд.
test -z "/usr/local/share/man/man1" || /usr/bin/mkdir -p "/usr/local/share/man/man1"
 /usr/bin/install -c -m 644 teredo-mire.1 '/usr/local/share/man/man1'
test -z "/usr/local/share/man/man5" || /usr/bin/mkdir -p "/usr/local/share/man/man5"
 /usr/bin/install -c -m 644 miredo.conf.5 miredo-server.conf.5 '/usr/local/share/man/man5'
test -z "/usr/local/share/man/man8" || /usr/bin/mkdir -p "/usr/local/share/man/man8"
 /usr/bin/install -c -m 644 miredo.8 miredo-server.8 miredo-checkconf.8 '/usr/local/share/man/man8'
make[2]: выход из каталога «/home/olej/miredo-1.2.5/doc»
make[1]: выход из каталога «/home/olej/miredo-1.2.5/doc»
Making install in misc
make[1]: вход в каталог «/home/olej/miredo-1.2.5/misc»
make[2]: вход в каталог «/home/olej/miredo-1.2.5/misc»
make[2]: Цель «install-exec-am» не требует выполнения команд.
test -z "/usr/local/etc/miredo" || /usr/bin/mkdir -p "/usr/local/etc/miredo"
 /usr/bin/install -c client-hook '/usr/local/etc/miredo'
test -z "/usr/local/share/doc/miredo/examples" || /usr/bin/mkdir -p "/usr/local/share/doc/miredo/examples"
 /usr/bin/install -c -m 644 miredo.conf miredo-server.conf '/usr/local/share/doc/miredo/examples'
test -z "/usr/local/lib/systemd/system" || /usr/bin/mkdir -p "/usr/local/lib/systemd/system"
 /usr/bin/install -c -m 644 miredo.service '/usr/local/lib/systemd/system'
make[2]: выход из каталога «/home/olej/miredo-1.2.5/misc»
make[1]: выход из каталога «/home/olej/miredo-1.2.5/misc»
Making install in compat
make[1]: вход в каталог «/home/olej/miredo-1.2.5/compat»
make[2]: вход в каталог «/home/olej/miredo-1.2.5/compat»
make[2]: Цель «install-exec-am» не требует выполнения команд.
make[2]: Цель «install-data-am» не требует выполнения команд.
make[2]: выход из каталога «/home/olej/miredo-1.2.5/compat»
make[1]: выход из каталога «/home/olej/miredo-1.2.5/compat»
Making install in libteredo
make[1]: вход в каталог «/home/olej/miredo-1.2.5/libteredo»
Making install in .
make[2]: вход в каталог «/home/olej/miredo-1.2.5/libteredo»
make[3]: вход в каталог «/home/olej/miredo-1.2.5/libteredo»
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libteredo.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libteredo.so.5.0.0 /usr/local/lib/libteredo.so.5.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libteredo.so.5.0.0 libteredo.so.5 || { rm -f libteredo.so.5 && ln -s libteredo.so.5.0.0 libteredo.so.5; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libteredo.so.5.0.0 libteredo.so || { rm -f libteredo.so && ln -s libteredo.so.5.0.0 libteredo.so; }; })
libtool: install: /usr/bin/install -c .libs/libteredo.lai /usr/local/lib/libteredo.la
libtool: install: /usr/bin/install -c .libs/libteredo.a /usr/local/lib/libteredo.a
libtool: install: chmod 644 /usr/local/lib/libteredo.a
libtool: install: ranlib /usr/local/lib/libteredo.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c teredo-mire '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/teredo-mire /usr/local/bin/teredo-mire
test -z "/usr/local/include/libteredo" || /usr/bin/mkdir -p "/usr/local/include/libteredo"
 /usr/bin/install -c -m 644 teredo.h teredo-udp.h tunnel.h '/usr/local/include/libteredo'
make[3]: выход из каталога «/home/olej/miredo-1.2.5/libteredo»
make[2]: выход из каталога «/home/olej/miredo-1.2.5/libteredo»
Making install in test
make[2]: вход в каталог «/home/olej/miredo-1.2.5/libteredo/test»
make[3]: вход в каталог «/home/olej/miredo-1.2.5/libteredo/test»
make[3]: Цель «install-exec-am» не требует выполнения команд.
make[3]: Цель «install-data-am» не требует выполнения команд.
make[3]: выход из каталога «/home/olej/miredo-1.2.5/libteredo/test»
make[2]: выход из каталога «/home/olej/miredo-1.2.5/libteredo/test»
make[1]: выход из каталога «/home/olej/miredo-1.2.5/libteredo»
Making install in libtun6
make[1]: вход в каталог «/home/olej/miredo-1.2.5/libtun6»
make[2]: вход в каталог «/home/olej/miredo-1.2.5/libtun6»
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
 /bin/bash ../libtool   --mode=install /usr/bin/install -c   libtun6.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libtun6.so.0.1.1 /usr/local/lib/libtun6.so.0.1.1
libtool: install: (cd /usr/local/lib && { ln -s -f libtun6.so.0.1.1 libtun6.so.0 || { rm -f libtun6.so.0 && ln -s libtun6.so.0.1.1 libtun6.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libtun6.so.0.1.1 libtun6.so || { rm -f libtun6.so && ln -s libtun6.so.0.1.1 libtun6.so; }; })
libtool: install: /usr/bin/install -c .libs/libtun6.lai /usr/local/lib/libtun6.la
libtool: install: /usr/bin/install -c .libs/libtun6.a /usr/local/lib/libtun6.a
libtool: install: chmod 644 /usr/local/lib/libtun6.a
libtool: install: ranlib /usr/local/lib/libtun6.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include/libtun6" || /usr/bin/mkdir -p "/usr/local/include/libtun6"
 /usr/bin/install -c -m 644 tun6.h '/usr/local/include/libtun6'
make[2]: выход из каталога «/home/olej/miredo-1.2.5/libtun6»
make[1]: выход из каталога «/home/olej/miredo-1.2.5/libtun6»
Making install in src
make[1]: вход в каталог «/home/olej/miredo-1.2.5/src»
make[2]: вход в каталог «/home/olej/miredo-1.2.5/src»
/bin/bash /home/olej/miredo-1.2.5/admin/install-sh -d "/usr/local/var/run"
test -z "/usr/local/libexec/miredo" || /usr/bin/mkdir -p "/usr/local/libexec/miredo"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c miredo-privproc '/usr/local/libexec/miredo'
libtool: install: /usr/bin/install -c .libs/miredo-privproc /usr/local/libexec/miredo/miredo-privproc
test -z "/usr/local/sbin" || /usr/bin/mkdir -p "/usr/local/sbin"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c miredo miredo-server miredo-checkconf '/usr/local/sbin'
libtool: install: /usr/bin/install -c .libs/miredo /usr/local/sbin/miredo
libtool: install: /usr/bin/install -c miredo-server /usr/local/sbin/miredo-server
libtool: install: /usr/bin/install -c miredo-checkconf /usr/local/sbin/miredo-checkconf
make[2]: Цель «install-data-am» не требует выполнения команд.
make[2]: выход из каталога «/home/olej/miredo-1.2.5/src»
make[1]: выход из каталога «/home/olej/miredo-1.2.5/src»
make[1]: вход в каталог «/home/olej/miredo-1.2.5»
make[2]: вход в каталог «/home/olej/miredo-1.2.5»
make[2]: Цель «install-exec-am» не требует выполнения команд.
make  install-data-hook
make[3]: вход в каталог «/home/olej/miredo-1.2.5»
************************
* Miredo configuration *
************************
 
An example configuration file has been installed at:
  /usr/local/share/doc/miredo/examples/miredo.conf
 
No pre-existing configuration file for Miredo
could be found, so the example as been copied as
  /usr/local/etc/miredo/miredo.conf too.
 
Please take time to review the settings and adjust them
if necessary. Once finished, save the file as:
  /usr/local/etc/miredo/miredo.conf and run miredo (as root).
make[3]: выход из каталога «/home/olej/miredo-1.2.5»
make[2]: выход из каталога «/home/olej/miredo-1.2.5»
make[1]: выход из каталога «/home/olej/miredo-1.2.5»
Это здесь:

Код: Выделить всё

olej@ACER:/usr/local/sbin$ pwd
/usr/local/sbin

olej@ACER:/usr/local/sbin$ ls -l
итого 392
-rwxr-xr-x 1 root root 134640 окт 10 19:21 miredo
-rwxr-xr-x 1 root root 106144 окт 10 19:21 miredo-checkconf
-rwxr-xr-x 1 root root 159504 окт 10 19:21 miredo-server

Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост извне

Непрочитанное сообщение Olej » 10 окт 2019, 22:05

Теперь - время запуска!
Поэтому смотрим состояние сетевых интерфейсов до запуска:

Код: Выделить всё

olej@ACER:~/Загрузки/DDNS$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether c0:3f:d5:51:9a:5b brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.103/24 brd 192.168.1.255 scope global dynamic noprefixroute enp2s0
       valid_lft 140233sec preferred_lft 140233sec
    inet6 fe80::c23f:d5ff:fe51:9a5b/64 scope link 
       valid_lft forever preferred_lft forever

Код: Выделить всё

olej@ACER:~/Загрузки/DDNS$ ping6 ipv6.google.com
connect: Сеть недоступна

Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост извне

Непрочитанное сообщение Olej » 10 окт 2019, 22:13

Olej писал(а):
10 окт 2019, 22:05
Теперь - время запуска!
Запуск от root - это понятно по функциональности...

Код: Выделить всё

olej@ACER:/usr/local/sbin$ sudo ./miredo
[sudo] пароль для olej: 
./miredo: error while loading shared libraries: libtun6.so.0: cannot open shared object file: No such file or directory
Библиотека его - не конфигурирована.
Вот его библиотеки:

Код: Выделить всё

olej@ACER:/usr/local/sbin$ ls -l /usr/local/lib
итого 664
-rw-r--r-- 1 root root  334596 окт 10 19:21 libteredo.a
-rwxr-xr-x 1 root root     961 окт 10 19:21 libteredo.la
lrwxrwxrwx 1 root root      18 окт 10 19:21 libteredo.so -> libteredo.so.5.0.0
lrwxrwxrwx 1 root root      18 окт 10 19:21 libteredo.so.5 -> libteredo.so.5.0.0
-rwxr-xr-x 1 root root  193464 окт 10 19:21 libteredo.so.5.0.0
-rw-r--r-- 1 root root   72236 окт 10 19:21 libtun6.a
-rwxr-xr-x 1 root root     942 окт 10 19:21 libtun6.la
lrwxrwxrwx 1 root root      16 окт 10 19:21 libtun6.so -> libtun6.so.0.1.1
lrwxrwxrwx 1 root root      16 окт 10 19:21 libtun6.so.0 -> libtun6.so.0.1.1
-rwxr-xr-x 1 root root   47080 окт 10 19:21 libtun6.so.0.1.1
drwxr-xr-x 4 root root    4096 июн 27 21:07 node_modules
drwxrwsr-x 4 root staff   4096 апр 11 23:39 python2.7
drwxrwsr-x 3 root staff   4096 дек 22  2018 python3.7
drwxr-xr-x 3 root root    4096 окт 10 19:21 systemd
Чтобы конфигурировать его библиотеки:
1. в /etc/ld.so.conf.d создаю файл:

Код: Выделить всё

root@ACER:/etc/ld.so.conf.d# pwd
/etc/ld.so.conf.d

root@ACER:/etc/ld.so.conf.d# touch miredo.conf
2. записываю в файл:

Код: Выделить всё

root@ACER:/etc/ld.so.conf.d# cat miredo.conf 
# miredo library configuration
/usr/local/lib
3. конфигурируем и проверяем:

Код: Выделить всё

root@ACER:/etc/ld.so.conf.d# ldconfig

root@ACER:/etc/ld.so.conf.d# ldconfig -p | grep libtun6
	libtun6.so.0 (libc6,x86-64) => /usr/local/lib/libtun6.so.0
	libtun6.so (libc6,x86-64) => /usr/local/lib/libtun6.so

Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост извне

Непрочитанное сообщение Olej » 10 окт 2019, 22:16

Olej писал(а):
10 окт 2019, 22:13
Теперь - время запуска!

Код: Выделить всё

olej@ACER:/usr/local/sbin$ sudo ./miredo 
Смотрим сетевые интерфейсы:

Код: Выделить всё

olej@ACER:/usr/local/sbin$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether c0:3f:d5:51:9a:5b brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.103/24 brd 192.168.1.255 scope global dynamic noprefixroute enp2s0
       valid_lft 131884sec preferred_lft 131884sec
    inet6 fe80::c23f:d5ff:fe51:9a5b/64 scope link 
       valid_lft forever preferred_lft forever
3: teredo: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc pfifo_fast state UNKNOWN group default qlen 500
    link/none 
    inet6 2001:0:53aa:64c:30f2:7aa1:3ee3:4e89/32 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::ffff:ffff:ffff/64 scope link 
       valid_lft forever preferred_lft forever
    inet6 fe80::acf4:1260:b68:6566/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever
Вот он: teredo - туннельный интерфейс IPv6.
Или так:

Код: Выделить всё

olej@ACER:~/Загрузки/DDNS$ /sbin/ifconfig teredo
teredo: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1280
        inet6 fe80::ffff:ffff:ffff  prefixlen 64  scopeid 0x20<link>
        inet6 2001:0:53aa:64c:30f2:7aa1:3ee3:4e89  prefixlen 32  scopeid 0x0<global>
        inet6 fe80::acf4:1260:b68:6566  prefixlen 64  scopeid 0x20<link>
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 17  bytes 1480 (1.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 41  bytes 2888 (2.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Проверка трафика:

Код: Выделить всё

olej@ACER:~/Загрузки/DDNS$ ping6 ipv6.google.com
PING ipv6.google.com(waw02s07-in-x0e.1e100.net (2a00:1450:401b:802::200e)) 56 data bytes
64 bytes from waw02s07-in-x0e.1e100.net (2a00:1450:401b:802::200e): icmp_seq=3 ttl=56 time=67.4 ms
64 bytes from waw02s07-in-x0e.1e100.net (2a00:1450:401b:802::200e): icmp_seq=4 ttl=56 time=67.2 ms
64 bytes from waw02s07-in-x0e.1e100.net (2a00:1450:401b:802::200e): icmp_seq=5 ttl=56 time=68.4 ms
64 bytes from waw02s07-in-x0e.1e100.net (2a00:1450:401b:802::200e): icmp_seq=6 ttl=56 time=67.5 ms
64 bytes from waw02s07-in-x0e.1e100.net (2a00:1450:401b:802::200e): icmp_seq=7 ttl=56 time=67.6 ms
^C
--- ipv6.google.com ping statistics ---
7 packets transmitted, 5 received, 28.5714% packet loss, time 39ms
rtt min/avg/max/mdev = 67.238/67.618/68.386/0.517 ms

Код: Выделить всё

olej@ACER:~/Загрузки/DDNS$ sudo traceroute -6 -T ipv6.google.com
[sudo] пароль для olej: 
traceroute to ipv6.google.com (2a00:1450:401b:802::200e), 30 hops max, 80 byte packets
 1  * * *
 2  * * *
 3  amsix-router.google.com (2001:7f8:1::a501:5169:1)  269.057 ms  269.057 ms core1.ams.net.google.com (2001:7f8:1::a501:5169:2)  269.029 ms
 4  * * *
 5  2001:4860::c:4000:d9a9 (2001:4860::c:4000:d9a9)  255.867 ms *  255.787 ms
 6  * 2001:4860::c:4000:f874 (2001:4860::c:4000:f874)  260.705 ms  260.696 ms
 7  2001:4860::9:4000:d78c (2001:4860::9:4000:d78c)  157.574 ms  157.515 ms 2001:4860::9:4000:d78d (2001:4860::9:4000:d78d)  146.511 ms
 8  2001:4860:0:1184::1 (2001:4860:0:1184::1)  137.167 ms  126.154 ms 2001:4860:0:1::1f3b (2001:4860:0:1::1f3b)  146.321 ms
 9  2001:4860:0:1::1f39 (2001:4860:0:1::1f39)  154.127 ms  154.101 ms waw02s07-in-x0e.1e100.net (2a00:1450:401b:802::200e)  86.294 ms

Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост из вне

Непрочитанное сообщение Olej » 10 окт 2019, 23:10

Olej писал(а):
10 окт 2019, 21:56
По miredo я нашёл только родной сайт с исходниками https://www.remlab.net/files/miredo/debian/:
А ещё лучше взять исходники с GIT, версия 2.1.6, где мелкие правки от автора есть и 2018г. и 2019г.

Код: Выделить всё

olej@ACER:~/2019_WORK/own.WORK/mirego$ git clone https://git.remlab.net/git/miredo.git
Клонирование в «miredo»…

Код: Выделить всё

olej@ACER:~/2019_WORK/own.WORK$ cd miredo

olej@ACER:~/2019_WORK/own.WORK/miredo$ ls -l
итого 180
-rw-r--r-- 1 olej olej   718 окт 10 23:00 AUTHORS
-rwxr-xr-x 1 olej olej  1955 окт 10 23:00 autogen.sh
-rw-r--r-- 1 olej olej  2278 окт 10 23:00 ChangeLog.old
drwxr-xr-x 2 olej olej  4096 окт 10 23:00 compat
-rw-r--r-- 1 olej olej  8144 окт 10 23:00 configure.ac
-rw-r--r-- 1 olej olej 17992 окт 10 23:00 COPYING
drwxr-xr-x 2 olej olej  4096 окт 10 23:00 doc
-rw-r--r-- 1 olej olej 51920 окт 10 23:00 Doxyfile.in
drwxr-xr-x 2 olej olej  4096 окт 10 23:00 include
drwxr-xr-x 3 olej olej  4096 окт 10 23:00 libteredo
drwxr-xr-x 2 olej olej  4096 окт 10 23:00 libtun6
drwxr-xr-x 2 olej olej  4096 окт 10 23:00 m4
-rw-r--r-- 1 olej olej  4454 окт 10 23:00 Makefile.am
drwxr-xr-x 2 olej olej  4096 окт 10 23:00 misc
-rw-r--r-- 1 olej olej 26460 окт 10 23:00 NEWS
drwxr-xr-x 2 olej olej  4096 окт 10 23:00 po
-rw-r--r-- 1 olej olej  6770 окт 10 23:00 README
drwxr-xr-x 2 olej olej  4096 окт 10 23:00 src
-rw-r--r-- 1 olej olej  1074 окт 10 23:00 THANKS
-rw-r--r-- 1 olej olej  1407 окт 10 23:00 TODO

Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост извне

Непрочитанное сообщение Olej » 10 окт 2019, 23:24

Детальное описание технологии и проекта:
Teredo tunneling
Teredo (сетевой протокол)


Аватара пользователя
Olej
Писатель
Сообщения: 21338
Зарегистрирован: 24 сен 2011, 14:22
Откуда: Харьков
Контактная информация:

Re: О доступе к сайту на локалхост из вне

Непрочитанное сообщение Olej » 18 окт 2019, 21:46

Olej писал(а):
08 окт 2019, 22:53
1. ngrok : Download & setup ngrok
NGROK
Ngrok — это платформа, которая с помощью установленной утилиты, позволяет, организовать удалённый доступ на веб-сервер или какой-то другой сервис, запущенный ПК. Доступ организуется через созданный при запуске ngrok безопасный туннель. ПК, при этом, может находиться за NAT’ом, и не иметь статического IP адреса.
...
Возвращаясь ещё к ngrok...
Полезно знать об Ngrok
Авторизуемся. Если вы планируете использовать сервер часто, имеет смысл зарегистрироваться на ngrok.com, забрать со страницы настроек авторизации токен, и добавить его в локальный клиент с помощью команды:
Авторизация нужна не только для этого, а и для того, чтобы использовать произвольные порты, например SSH.
Авторизация здесь: https://dashboard.ngrok.com/auth. Забираем там для себя токен, и добавить его в локальный клиент с помощью команды:

Код: Выделить всё

olej@ACER:~/bin$ ./ngrok authtoken 1SO8IRvPHXBx0RPBKY0woLigVZy_4bfSvksveWuc8hNufQk3X
Authtoken saved to configuration file: /home/olej/.ngrok2/ngrok.yml
Запускаю через ngrok обратный SSH тоннель:

Код: Выделить всё

olej@ACER:~/bin$ ./ngrok tcp 22
ngrok by @inconshreveable                                                                                                                      (Ctrl+C to quit)
                                                                                                                                                               
Session Status                online                                                                                                                           
Account                        (Plan: Free)                                                                                                                    
Version                       2.3.35                                                                                                                           
Region                        United States (us)                                                                                                               
Web Interface                 http://127.0.0.1:4040                                                                                                            
Forwarding                    tcp://0.tcp.ngrok.io:10538 -> localhost:22                                                                                       
                                                                                                                                                               
Connections                   ttl     opn     rt1     rt5     p50     p90                                                                                      
                              0       0       0.00    0.00    0.00    0.00      
А теперь из совершенно другого компьютера (где угодно в Интернет, или со своей LAN) обращаемся по SSH на подготовленный локальный хост:

Код: Выделить всё

[olej@DELL ~]$ ssh -l olej 0.tcp.ngrok.io -p 10538
The authenticity of host '[0.tcp.ngrok.io]:10538 ([3.14.212.173]:10538)' can't be established.
ECDSA key fingerprint is SHA256:+SB/PcK+CfPw5Ki0QF72YSeB4YyZVRj3SIMg85iR260.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[0.tcp.ngrok.io]:10538,[3.14.212.173]:10538' (ECDSA) to the list of known hosts.
olej@0.tcp.ngrok.io's password: 
Linux ACER 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Oct  6 23:22:44 2019 from 192.168.1.11

olej@ACER:~$ uname -a
Linux ACER 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) x86_64 GNU/Linux
Это самое то, чтобы эпизодически иметь возможность подключиться к локальному хосту заказчика, чтобы ему там что-то подправить под текущий проект...

Ответить

Вернуться в «Сети»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 8 гостей