jeger escreveu:Senhores, venho aqui solicitar uma ajuda.
Tenho o BFW 3 instalado aqui e utilizo o Dyndns. Mas, ao configurar o ipupdate, ele não atualiza e ao testar um client no windows do meu servidor, ele identifica o IP 127.0.0.1 como o externo.
Alguém tem alguma noção do que pode estar acontecendo?
Abs
jeger escreveu:Tecnicoadriano.dyndns.org
O IP está atualizado no dyndns.org com o ip antigo (177.x.x.x).. O novo é 187.x.x.x... E ele não atualiza..
Quando eu consulto pelo software do dyndns, ele diz que não consegue adquirir o ip da wan... E quando eu acesso o endereço que este software usa para verificar qual é o ip externo, a resposta obtida é 127.0.0.1
Abs
jeger escreveu:Que nada... Eu tenho um modem ADSL, que está como bridge (Provedor mundivox). O ip externo está configurado direto no Brazilfw. Está tudo funcionando, inclusive o portforward pelo BFW, mas infelizmente, o único problema que eu tenho é a atualização do Dyndns. Percebi um erro no console: "/usr/local/sbin/ipupdate-monitor: line 12: dydns: not found"... Alguma noção?
jeger escreveu:Não adianta... Já tentei de tudo e não atualiza... Muito estranho é aparecer essa mensagem....
Ninguém aqui nunca passou por isso?
Abs
#!/bin/sh
# Copyright (C) 2011 Washington Rodrigues <woshman@brazilfw.com.br>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. /etc/brazilfw/brazilfw.cfg
. /lib/system-functions
CURL="curl -s --connect-timeout 3 --interface"
LOG="/var/log/ipupdate.log"
CONFIG="$(readconfig /etc/brazilfw/ipupdate.cfg)"
log() {
echo "$(date +%b" "%d" "%H:%M:%S) $@" >> $LOG
}
return_external_ip() {
echo "$(getexternaladdr | awk -vALIAS="$1" -F":" '{ if($1==ALIAS){ print $2 }}')"
}
getinfo() {
if [ -e "/tmp/$1.inet" ]; then
. /tmp/$1.inet
WAN_IP="$IPADDR"
EXT_IP="$(return_external_ip $1)"
[ "$EXT_IP" = "problem" -o "EXT_IP" = "0.0.0.0" ] && STATUS="down"
else
STATUS="down"
fi
}
is_ip_change() {
[ "$(dig +short $2)" = "$(return_external_ip $1)" ] && echo "false" || echo "true"
}
resp() {
RESPTXT=""
case $1 in
good*) RESPTXT="DNS hostname update successful.";;
nochg*) RESPTXT="IP address is current, no update performed.";;
notfqdn) RESPTXT="The hostname specified is not a fully-qualified domain name";;
nohost) RESPTXT="Hostname $4 does not exist under specified account.";;
badauth) RESPTXT="Invalid username password combination";;
badagent) RESPTXT="The user agent was not sent or HTPP method is not permitted";;
*donator) RESPTXT="An update request was sent including a feature that is not available to that particular user such as offline options.";;
abuse) RESPTXT="Username ($2) is blocked due to abuse.";;
dnserr) RESPTXT="DNS error encountered";;
911) RESPTXT="A fatal error on out side such as a database outage. Retry the update no soonert 30 minutes.";;
esac
echo "$RESPTXT"
}
noip() {
RESP="$($CURL $1 -u "$2:$3" http://dynupdate.no-ip.com/nic/update?hostname=$4)"
if [ "$?" = 0 ]; then
log "(No IP #$4) $(resp "$RESP")"
else
log "(No IP #$4) Connection timeout."
fi
}
dyndns() {
RESPTXT=""
RESP="$($CURL $1 -u "$2:$3" http://members.dyndns.org/nic/update?hostname=$4)"
if [ "$?" = 0 ]; then
log "(DynDNS #$4) $(resp "$RESP")"
else
log "(DynDNS #$4) Connection timeout."
fi
}
dnsdynamic() {
RESPTXT=""
RESP="$($CURL $1 -u "$2:$3" -k https://www.dnsdynamic.org/api/?hostname=$4)"
if [ "$?" = 0 ]; then
log "(DNSdynamic #$4) $(resp "$RESP")"
else
log "(DNSdynamic #$4) Connection timeout."
fi
}
changeip() {
RESP="$($CURL $1 "http://www.changeip.com/update.asp?u=$2&p=$3&cmd=update&set=$4&offline=0" | head -n1)"
if [ "$?" = 0 ]; then
log "(ChangeIP #ID:$4) $RESP"
else
log "(ChangeIP #ID:$4) Connection timeout."
fi
}
freedns() {
RESP="$($CURL $1 "http://freedns.afraid.org/dynamic/update.php?$3" | head -n1)"
if [ "$?" = 0 ]; then
log "(FreeDNS #$2) $RESP"
else
log "(FreeDNS #$2) Connection timeout."
fi
}
zonomi() {
RESP="$($CURL $1 "https://zonomi.com/app/dns/dyndns.jsp?host=$2&api_key=$3" | head -n1)"
if [ "$?" = 0 ]; then
log "(ZONOMI #$2) $RESP"
else
log "(ZONOMI #$2) Connection timeout."
fi
}
wincoddns() {
RESP="$(/usr/local/sbin/ddnsquery -t SET -p $2 $1 -a $3)"
if [ "$?" = 0 ]; then
log "(WINCO-DDNS #$1) $(resp "good")"
else
log "(WINCO_DDNS #$1) $RESP"
fi
}
if [ ! -e "/etc/brazilfw/ipupdate.cfg" -o "$IPUPDATE" != "yes" ]; then
exit
else
while :; do
echo "$CONFIG" | while read LINK SERVICE DOMAIN USERNAME PASSWORD; do
getinfo $LINK
if [ "$STATUS" != "down" ]; then
if [ "$(is_ip_change $LINK $DOMAIN)" = "true" -o "$(isnumeric $DOMAIN)" = "true" ]; then
case $SERVICE in
dnsdynamic) dnsdynamic $WAN_IP $USERNAME $PASSWORD $DOMAIN;;
changeip) changeip $WAN_IP $USERNAME $PASSWORD $DOMAIN;;
no-ip) noip $WAN_IP $USERNAME $PASSWORD $DOMAIN;;
freedns) freedns $WAN_IP $DOMAIN $USERNAME;;
dyndns) dydns $WAN_IP $USERNAME $PASSWORD $DOMAIN;;
zonomi) zonomi $WAN_IP $DOMAIN $USERNAME;;
winco-ddns) wincoddns $DOMAIN $USERNAME $EXT_IP;;
esac
fi
fi
done
[ -z "$IPUPDATE_REFRESH" ] && IPUPDATE_REFRESH=600
sleep $IPUPDATE_REFRESH
done
fi
jeger escreveu:Alguém tem alguma noção do que pode estar acontecendo?
Essa informação procede. O problema com dyndns foi resolvido e virá corrigido no BFW 3.0.258.dsolive escreveu:depois que atualizei para a versão 3.0.257, o ipudate não faz atualização para os domínios cadastrados no dyndns.
Voltar para BrazilFW 3.x - Ajuda em Geral
Usuários navegando neste fórum: Nenhum usuário registrado e 64 visitantes