Jump to content

Recommended Posts

Posted

Товарищи, есть какие-то способы поднять сабж? С костылями, или может быть какой-то из (неизвестных мне) брокеров поддерживает DDNS имя вместо адреса?

Posted

Вот есть такой 6in4.ru, и там даже есть ручной скрипт для обновления динамики, вот только есть одно но:

 

curl -v --request PUT \
--url https://6in4.ru/tunnel/329d******************42ac140005/TUNNEL ID \
--header 'Content-Type: application/json' \
--data '{"ipv4remote": "NEW LOCAL IP"}'

 

Как автоматически подставлять актуальный айпишник вместо "NEW LOCAL IP"? curl не понимает переменные?

#!/bin/sh

WANIP=$(curl -s http://whatismyip.akamai.com/)

curl -v --request PUT --url https://6in4.ru/tunnel/329db0a7***********c140005/**** --header 'Content-Type: application/json' --data '{"ipv4remote": " $WANIP "}'
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.