proxy - 5 Feb 16:53:26 ntpdate[414]: no server suitable for synchronization found

05
2014-04
  • AnkurTank

    I want to setup ntp in beaglebone based custom board.

    /etc/ntp.conf file content is as mentioned below

    driftfile /var/run/ntp.drift
    
    server pool.ntp.org
    server 1.in.pool.ntp.org
    server 1.asia.pool.ntp.org
    server 2.asia.pool.ntp.org
    
    # By default, exchange time with everybody, but don't allow configuration.
    #restrict -4 default kod notrap nomodify nopeer noquery
    #restrict -6 default kod notrap nomodify nopeer noquery
    
    # Local users may interrogate the ntp server more closely.
    restrict 127.0.0.1
    #restrict ::1
    

    when i run command ntpdate -d 77.235.14.49 i get following output

    5 Feb 17:07:42 ntpdate[429]: ntpdate [email protected] Thu Jan 23 08:13:41 UTC 2014 (1)
    Looking for host 77.235.14.49 and service ntp
    host found : 77.235.14.49
    transmit(77.235.14.49)
    transmit(77.235.14.49)
    transmit(77.235.14.49)
    transmit(77.235.14.49)
    transmit(77.235.14.49)
    77.235.14.49: Server dropped: no data
    server 77.235.14.49, port 123
    stratum 0, precision 0, leap 00, trust 000
    refid [77.235.14.49], delay 0.00000, dispersion 64.00000
    transmitted 4, in filter 4
    reference time:    00000000.00000000  Thu, Feb  7 2036 11:58:16.000
    originate timestamp: 00000000.00000000  Thu, Feb  7 2036 11:58:16.000
    transmit timestamp:  d69ca10c.1f050e72  Wed, Feb  5 2014 17:07:48.121
    filter delay:  0.00000  0.00000  0.00000  0.00000 
             0.00000  0.00000  0.00000  0.00000 
    filter offset: 0.000000 0.000000 0.000000 0.000000
             0.000000 0.000000 0.000000 0.000000
    delay 0.00000, dispersion 64.00000
    offset 0.000000
    
     5 Feb 17:07:50 ntpdate[429]: no server suitable for synchronization found
    

    when i ping the same ip it works fine

    ping 77.235.14.49
    PING 77.235.14.49 (77.235.14.49): 56 data bytes
    64 bytes from 77.235.14.49: seq=0 ttl=47 time=268.123 ms
    64 bytes from 77.235.14.49: seq=1 ttl=48 time=262.530 ms
    64 bytes from 77.235.14.49: seq=2 ttl=48 time=263.236 ms
    64 bytes from 77.235.14.49: seq=3 ttl=47 time=266.751 ms
    64 bytes from 77.235.14.49: seq=4 ttl=48 time=262.649 ms
    64 bytes from 77.235.14.49: seq=5 ttl=48 time=262.303 ms
    64 bytes from 77.235.14.49: seq=6 ttl=48 time=262.409 ms
    ^C
    --- 77.235.14.49 ping statistics ---
    7 packets transmitted, 7 packets received, 0% packet loss
    round-trip min/avg/max = 262.303/264.000/268.123 ms
    

    I referred some of the questions in QA websites and they talk about firewall, I don't know how do i make those (firewall or related )changes in the embedded Linux board?

    Board is connected to organization's LAN and gets ip by dhcp. Can there be a problem with respect to proxy.

    If required where can i put proxy settings in Board?

  • Answers
  • Gururaj B

    Try using cntlm for proxy authentication. For more information refer: http://cntlm.sourceforge.net/


  • Related Question

    networking - Linux TFTP server external access through router
  • PhilBot

    I am using Ubuntu as the host machine for my embedded Linux board with the tftp-hpa service. I can boot just fine using the u-boot bootloader while passing the local ( 192.168.1.10 ) ip address of the TFTP server running on the host to the target board ( which has ip address 192.168.1.3 ). This is the case where both server and client are behind the router and on the 192.168.1.x network.

    I want to be able to export my directory beyond my router to the external network. My TFTP Server is configured ( via the /etc/default/tftp-hpa ) as follows:

    user@ubuntu:~$ cat /etc/default/tftpd-hpa
    
    RUN_DAEMON="yes"
    
    TFTP_USERNAME="tftp"
    
    TFTP_DIRECTORY="/home/user/exported-nfs"
    
    TFTP_ADDRESS="0.0.0.0:69"
    
    TFTP_OPTIONS="-l --secure"
    

    I have forwarded port 69 ( UDP ) to my server at 192.168.1.10 within the router config as shown here:

    enter image description here

    I also setup my router to use the server ( 192.168.1.10 ) as the DMZ:

    enter image description here

    This works:

    user@ubuntu:~$ tftp
    tftp> trace
    Packet tracing on.
    tftp> connect 192.168.1.10
    tftp> get /boot/uImage
    sent RRQ <file=/boot/uImage, mode=netascii>
    received DATA <block=1, 512 bytes>
    sent ACK <block=1>
    received DATA <block=2, 512 bytes>
    sent ACK <block=2>
    received DATA <block=3, 512 bytes>
    ...
    sent ACK <block=4465>
    received DATA <block=4466, 343 bytes>
    Received 2286423 bytes in 0.5 seconds
    tftp>
    

    And this does NOT work:

    user@ubuntu:~$ tftp
    tftp> trace
    Packet tracing on.
    tftp> connect 129.196.194.210
    tftp> 
    tftp> get /boot/uImage
    sent RRQ <file=/boot/uImage, mode=netascii>
    sent RRQ <file=/boot/uImage, mode=netascii>
    sent RRQ <file=/boot/uImage, mode=netascii>
    sent RRQ <file=/boot/uImage, mode=netascii>
    sent RRQ <file=/boot/uImage, mode=netascii>
    Transfer timed out.
    

    I can successfully SSH ( port 22 ) to my 192.168.1.10 server using the external router ip ( 129.196.194.210 ) so my port forwarding is working.

    user@ubuntu:~$ ifconfig
    eth0      Link encap:Ethernet  HWaddr 0a:0c:c9:b1:fa:43  
              inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::20c:29ff:feb1:da43/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:174803 errors:0 dropped:0 overruns:0 frame:0
              TX packets:155485 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:32417220 (32.4 MB)  TX bytes:94986400 (94.9 MB)
              Interrupt:19 Base address:0x2024 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:45130 errors:0 dropped:0 overruns:0 frame:0
              TX packets:45130 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:12913549 (12.9 MB)  TX bytes:12913549 (12.9 MB)
    
    user@ubuntu:~$ ssh [email protected]
    [email protected]'s password: 
    Linux ubuntu 2.6.32-42-generic #96-Ubuntu SMP Wed Aug 15 18:57:09 UTC 2012 i686 GNU/Linux
    Ubuntu 10.04.4 LTS
    
    Welcome to Ubuntu!
     * Documentation:  https://help.ubuntu.com/
    
    New release 'precise' available.
    Run 'do-release-upgrade' to upgrade to it.
    
    Last login: Tue Sep 11 07:55:30 2012 from 129.196.194.210
    user@ubuntu:~$ 
    

    But the TFTP access from outside the router is constantly failing and timing out. What am I doing wrong? How can I fix this? Thanks -


  • Related Answers
  • Stefan Seidel

    TFTP through NAT is very problematic since it uses UDP, not TCP for the data transfer. You'll need to set have your router act as a TFTP proxy, which most home routers won't be able to do (but I know that pfSense has this feature).