1
Development and Code Review / Re: a Terraform module for OPNsense on Digital Ocean
« on: August 07, 2019, 10:15:17 am »
Nice, I will try
Thank you for work!
Thank you for work!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
So you have the tunnel with the routed /48 at your opnsense and just assign on the different interfaces the appropriate /64 subnets, right? No other routingsetting on opnsense at this point to set? That was the thing I wasn't sure about. Thank you very much.Hi!
The other thing I won't really understand at the moment is the Prefix delegation range on the DHCPv6 server how this will be used, but that is another question...
Hyper-V is quite fragile when it comes to clocks and NTP, the suggestion from the pfSense forum sounds interesting... have you ever tried to "disarm" NTP by providing an invalid server?I will try this.
System: Settings: General: NTP server: "no"
<?php
require_once("/etc/inc/service-utils.inc");
require_once("/etc/inc/globals.inc");
require_once("/etc/inc/gwlb.inc");
$log_file = "/var/log/apinger.log";
$log_date = date('d/m/Y H:i:s', time());
$counter = 0;
$a_gateways = return_gateways_array();
$gateways_status = array();
$gateways_status = return_gateways_status(true);
foreach ($a_gateways as $gname => $gateway) {
if ($gateways_status[$gname]) {
$str_data = $gateways_status[$gname]['delay'];
$pos = substr($str_data,0,strpos($str_data, "ms"));
if (floatval($pos) > 500 ) {
$counter++;
}
}
}
if ($counter > 0) {
service_control_restart(apinger,restartservice);
$log_data = 'Counter = '.$counter. ' date: '.$log_date. ' | service restarted!'. PHP_EOL;
file_put_contents($log_file, $log_data, FILE_APPEND);
}
?>