Gateway polling interval/frequency not working?


  • Rebel Alliance Global Moderator

    So saw this thread.

    http://forum.pfsense.org/index.php/topic,56224.0.html

    And hey why not change it from 1 sec to 10, save a few bytes per day.  I did a capture at 78bytes each way send and recv x every second, for a day, for a week for a month.  Your looking at like 400MB a month.  I could live with /10 of that or only 40MB

    Anyway went to change it - and seems doesn't take.. I verified its not changing the polling time, still 1 second via capture and its not staying in the form.  All other values do, just not frequency.

    Now I do need to update to current snap, but just git sync'd before this test and not working.  So too screen shots, showing I set it to 10, then hit save, then apply - then go back in and the field is blank.

    2.1-BETA0 (i386)
    built on Sat Nov 17 15:45:28 EST 2012
    FreeBSD 8.3-RELEASE-p4





  • Indeed, changing the interval and checking /var/etc/apinger.conf section target default it seems the ping interval is kept at 1.



  • @dhatz:

    Indeed, changing the interval and checking /var/etc/apinger.conf section target default it seems the ping interval is kept at 1.

    There is no code in /etc/inc/gwlb.inc to set anything other than 1 second but my /var/etc/apinger.conf has a section```
    target "121.50.x.x" {
            description "WAN"
            srcip "203.144.x.x"
            interval 10s
            alarms override "loss","delay","down";
            rrd file "/var/db/rrd/WAN-quality.rrd"
    }

    below the "target default" section.


  • This is working properly on AMD64 11/26 0331 snapshot, i see you're using i386.


  • Rebel Alliance Global Moderator

    so updated to latest snap

    2.1-BETA0 (i386)
    built on Wed Dec 5 19:47:57 EST 2012
    FreeBSD 8.3-RELEASE-p5

    Ran gitsync even after - and still not working.  Same thing takes all other entries other than the actual Frequency Probe.  Put in value, after save go back in and Frequency Probe is blank



  • I use these settings a lot and have had no problem - using nanobsd. I tried entering the various values on the screenshots above, and it all got saved in config.xml and ended up in apinger.conf
    My gwlb.inc has code that sets and uses all the values on the GUI.
    I had a look in the code and couldn't see any obvious code path that would mess up saving the setting.
    johnpoz: I wonder what is interesting/different from the usual about your interfaces and gateways?


  • Rebel Alliance Global Moderator

    So I do have 2 gateways.  One is the IPv6 one, since I have a HE tunnel.  Now what is weird is its working on the ipv6 gateway.   But seems on the ipv4 gateway I can not edit the description either.  There is info in there, but it wont let me remove it.



  • Rebel Alliance Developer Netgate

    That can happen if your config.xml actually contains two gateway entries for the same gateway name.

    Only way around that is to edit the duplicate out of the config… (either backup/edit/restore, or viconfig)


  • Rebel Alliance Global Moderator

    Thanks jimp - that was it, or atleast there was a problem in the config.xml.  There was a duplicated gateway_item with same name and interval section was  missing the opening tag

    
    		 <gateway_item><interface>wan</interface>
    			<gateway>dynamic</gateway>
    			<name>WAN_DHCP</name>
    			<weight>1</weight>
    			<ipprotocol>inet</ipprotocol>
    			 <interval><defaultgw></defaultgw></interval></gateway_item> 
    			 <gateway_item><interface>wan</interface>
    			<gateway>dynamic</gateway>
    			<name>WAN_DHCP</name>
    			<weight>1</weight>
    			<ipprotocol>inet</ipprotocol>
    			 <interval><defaultgw></defaultgw></interval></gateway_item> 
    
    

    Now it looks to be working, I opened up the gateway and shows the 10 I put in there on edit.  I am also able to edit it now, and changes stick.  Odd wonder how long that has been messed up.  Thanks!!!


Locked