[pfSense] Dynamic DNS update issue - "The IP address given is not valid"

2014-02-06 Thread Adam Hunt
I am attempting to update the record of my dynamic IP address with
CloudFlare. While 2.1-RELEASE doesn't support CloudFlare's DDNS service[1]
there is a patchset[2] that was graciously developed by Andres Senetar and
merged into master. I didn't feel like upgrading to 2.1.1-PRERELEASE just
gain support for a DDNS provider so I went ahead and patched my 2.1 install.

Once finding out that the login was my email and not username and that the
password was my CloudFlare API key I have found myself confronted with an
error, "The IP address given is not valid", that I do not entirely
understand. I'm also not all that familiar with PHP.

Can anyone assist me in figuring out what is going on.

Many thanks,

Adam Hunt


[1]
https://support.cloudflare.com/hc/en-us/articles/200168816-Does-CloudFlare-work-with-Dynamic-DNS-Can-I-update-my-DNS-records-remotely-

[2] https://github.com/pfsense/pfsense/pull/663
___
List mailing list
List@lists.pfsense.org
http://lists.pfsense.org/mailman/listinfo/list


Re: [pfSense] Restoring from XML prevents VM from booting [SOLVED]

2014-02-06 Thread Brian Candler

On 06/02/2014 12:23, Stefan Baur wrote:

I find that the one restored
>via web interface has:
>
>* an extra file /boot.config containing "-D"
>* extra settings in /boot/loader.conf
>
>boot_multicons="YES"
>boot_serial="YES"
>comconsole_speed="115200"
>console="comconsole,vidconsole"

So these parameters are added blindly regardless of whether they were
set before, is that what you're saying? If so, that sounds like a nasty
bug to me.
Not exactly blindly: the boot config is overwritten based on what's in 
the XML. See setup_serial_port() in /etc/inc/pfsense-utils.inc


$fd = fopen($boot_config_file,"w");
...
if(isset($config['system']['enableserial'])) {
fwrite($fd, "-D");
}
...
if(isset($config['system']['enableserial'])) {
$new_boot_config[] = 
'boot_multicons="YES"';

$new_boot_config[] = 'boot_serial="YES"';
$new_boot_config[] = 
'comconsole_speed="' . $serialspeed . '"';
$new_boot_config[] = 
'console="comconsole,vidconsole"';


Regards,

Brian.

___
List mailing list
List@lists.pfsense.org
http://lists.pfsense.org/mailman/listinfo/list


Re: [pfSense] Restoring from XML prevents VM from booting [SOLVED]

2014-02-06 Thread Stefan Baur
Am 06.02.2014 13:10, schrieb Brian Candler:
> On 05/02/2014 17:47, Espen Johansen wrote:
>> Might be that serial redirection makes it show nothing.
> Yes, the serial port was the problem - thank you!

Interesting ...


> The production physical box (which this XML was pulled from) *was*
> configured to use a serial port, but the boot loader hangs if it can't
> find one inside the VM.

Mine wasn't configured to use a serial port, but still hung.


[...]

> When you restore XML via the web interface, I now see some boot loader
> settings are tweaked. Comparing a machine restored via the web interface
> versus one where I just copied config.xml, I find that the one restored
> via web interface has:
> 
> * an extra file /boot.config containing "-D"
> * extra settings in /boot/loader.conf
> 
> boot_multicons="YES"
> boot_serial="YES"
> comconsole_speed="115200"
> console="comconsole,vidconsole"

So these parameters are added blindly regardless of whether they were
set before, is that what you're saying? If so, that sounds like a nasty
bug to me.

-Stefan
___
List mailing list
List@lists.pfsense.org
http://lists.pfsense.org/mailman/listinfo/list


Re: [pfSense] Restoring from XML prevents VM from booting [SOLVED]

2014-02-06 Thread Brian Candler

On 05/02/2014 17:47, Espen Johansen wrote:

Might be that serial redirection makes it show nothing.

Yes, the serial port was the problem - thank you!

The production physical box (which this XML was pulled from) *was* 
configured to use a serial port, but the boot loader hangs if it can't 
find one inside the VM.


Solution: go into VirtualBox VM settings > Ports
  Serial Ports > Port 1
  [X] Enable Serial Port
  Port Number: (leave at COM1)
  Port Mode: Disconnected

Alternatively, you can set
  Port Mode: Raw File
  Port File/Path: /tmp/serial-pfsense1
and then it writes both to the VGA console and the serial port file.

When you restore XML via the web interface, I now see some boot loader 
settings are tweaked. Comparing a machine restored via the web interface 
versus one where I just copied config.xml, I find that the one restored 
via web interface has:


* an extra file /boot.config containing "-D"
* extra settings in /boot/loader.conf

boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"

Thanks again for pointing me in the right direction.

Regards,

Brian.

___
List mailing list
List@lists.pfsense.org
http://lists.pfsense.org/mailman/listinfo/list