• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

NTP server issues

General pfSense Questions
5
45
6.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    stephenw10 Netgate Administrator
    last edited by Apr 12, 2020, 4:14 PM

    /var/etc/ntpd.conf

    1 Reply Last reply Reply Quote 0
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Apr 12, 2020, 4:15 PM

      See I am only listening on a few interfaces...

      [2.4.5-RELEASE][admin@sg4860.local.lan]/root: cat /var/etc/ntpd.conf 
      # 
      # pfSense ntp configuration file 
      # 
      
      tinker panic 0 
      # Orphan mode stratum
      tos orphan 12
      
      
      # Upstream Servers
      server 192.168.3.32 iburst maxpoll 9 prefer
      pool us.pool.ntp.org iburst maxpoll 9
      
      
      enable stats
      statistics clockstats loopstats peerstats
      statsdir /var/log/ntp
      logconfig =syncall +clockall +peerall +sysall
      driftfile /var/db/ntpd.drift
      restrict default kod limited nomodify nopeer notrap
      restrict -6 default kod limited nomodify nopeer notrap
      restrict source kod limited nomodify notrap
      interface ignore all
      interface ignore wildcard
      interface listen igb3
      interface listen igb0
      interface listen igb2
      interface listen igb2.4
      interface listen igb5
      [2.4.5-RELEASE][admin@sg4860.local.lan]/root: 
      

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

      4 2 Replies Last reply Apr 12, 2020, 4:22 PM Reply Quote 0
      • 4
        4o4rh @johnpoz
        last edited by Apr 12, 2020, 4:22 PM

        @johnpoz I want to listen on the lan interfaces for switches/access point devices and vlans for end user equip.

        I have the same config for each of the VPNs and they work

        login-to-view
        login-to-view

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by johnpoz Apr 12, 2020, 4:28 PM Apr 12, 2020, 4:25 PM

          Exactly I only listen on a few of my local lan side interfaces... I don't see ::1/128 listed there.. maybe its trying to do ipv6?

          I really don't see the point of doing manual outbound nat.. Why would you not just use automatic, and set hybrid for the stuff you want to policy route out your vpn..

          Do you not have ntp listening on an interface that you nat?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          • 4
            4o4rh @johnpoz
            last edited by Apr 12, 2020, 4:30 PM

            @johnpoz If i use a single LAN interface, it looks like this

            # 
            # pfSense ntp configuration file 
            # 
            
            tinker panic 0 
            # Orphan mode stratum
            tos orphan 12
            
            
            # Upstream Servers
            pool nl.pool.ntp.org iburst maxpoll 9
            pool de.pool.ntp.org iburst maxpoll 9
            
            
            enable stats
            statistics clockstats loopstats peerstats
            statsdir /var/log/ntp
            logconfig =syncall +clockall +peerall +sysall
            driftfile /var/db/ntpd.drift
            restrict default kod limited nomodify nopeer notrap
            restrict -6 default kod limited nomodify nopeer notrap
            restrict source kod limited nomodify notrap
            interface ignore all
            interface ignore wildcard
            interface listen igb1
            

            login-to-view

            login-to-view

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by johnpoz Apr 12, 2020, 4:35 PM Apr 12, 2020, 4:34 PM

              So you have a vip on igb1?

              I would sniff on your wan - do you see traffic going out to those servers? With source IP natted to your wan IP?

              Is your default route out your wan, or via vpn.. IE you pulled routes?

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.7.2, 24.11

              4 1 Reply Last reply Apr 12, 2020, 4:35 PM Reply Quote 0
              • 4
                4o4rh @johnpoz
                last edited by Apr 12, 2020, 4:35 PM

                @johnpoz if you mean the 10.10.10.1 it is coming from pFBlocker - i am disabling that and snort to check the effect

                1 Reply Last reply Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator
                  last edited by Apr 12, 2020, 4:37 PM

                  Snort huh... yeah could be problematic..

                  But its a given if your ntpd can not get into sync by talking to the ntp servers you point it to, either direct or pool then no clients would sync with it. ;) since its not a valid time source until it has gotten into sync with valid time source.

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  4 1 Reply Last reply Apr 12, 2020, 6:13 PM Reply Quote 0
                  • 4
                    4o4rh @johnpoz
                    last edited by Apr 12, 2020, 6:13 PM

                    thanks guys for all the help. I found the answer in here.
                    https://forum.netgate.com/topic/131506/ntp-not-working-solved-totally/27

                    by jimp Rebel Alliance Developer Netgate Jun 21, 2018, 5:27 PM

                    Firewall > NAT, Outbound tab. Add rule to top.
                    Disabled: Unchecked
                    Do not NAT: Unchecked
                    Interface: WAN (make one of these rules for each WAN)
                    Protocol: any
                    Source: This Firewall (self)
                    Destination: any
                    Not: Unchecked
                    Translation Address: Interface Address
                    Port or Range: Blank
                    Description: NAT anything out from the firewall itself

                    1 Reply Last reply Reply Quote 0
                    • J
                      johnpoz LAYER 8 Global Moderator
                      last edited by Apr 12, 2020, 6:33 PM

                      So the problem was I thought you were not natting.. Which prob has something to do with manual nats and all your vpn interfaces...

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      45 out of 45
                      • First post
                        45/45
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.