Let NTP listen only on one interface


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Let NTP listen only on one interface
# 1  
Old 04-01-2008
Let NTP listen only on one interface

Hallo,

I have a machine which serves as NTP server. This machine has more (3) Network interfaces (+ loopback). By default NTP "binds" itself to all available interfaces, i.e. it listens on port 123 on all interfaces:

Code:
netstat -an|grep 123
udp        0      0  127.0.0.1.123          *.*
udp        0      0  1.2.3.4.123           *.*
udp        0      0  *.123                  *.*
udp        0      0  1.2.5.4.123           *.*
udp        0      0  1.2.6.4.123          *.*

I would like to "bind" NTP to only one interface, say the 1.2.3.4. Is it possible? I do not find any hint on the net.

Thanks.

p.s. I am interested in a solution for linux and HP-UX, in case of OS dependency.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

2. HP-UX

What is the Listen Address of my process ?

Hi, We cant set the listen address of my java process to the IP address or any of the DNS names listen in the hosts file of the server. We can access the resources of the pid in the web browser through http://<IP / DNS>:port/console Based on the pid, how can we find what is the listen... (6 Replies)
Discussion started by: mohtashims
6 Replies

3. Solaris

Listen given port

Good morning! I would like to test a particular port in Solaris, to see if the firewall rules are ok. Should I install an application, but as yet I have not, have to force solaris to keep an open door, and put any application listening to port 1099, and will test a terminal connectivity via... (5 Replies)
Discussion started by: poyato
5 Replies

4. HP-UX

Setting up NTP HP-UX clients from solaris NTP server

Hi I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server? FR (3 Replies)
Discussion started by: fretagi
3 Replies

5. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

6. SCO

Change SCO - GUI or Desktop interface to DOS based interface

Hi all I have installed a demo version of SCO OpenServer 5.0.2, I finally found it is Desktop Interface, I would like to know how to change its interface to dos based interface? If you have any ideas, please tell me then. Thank you (2 Replies)
Discussion started by: TinhNhi
2 Replies

7. Solaris

Command line Interface or GUI Interface not shown on solaris

Dear all, I am a newbie in solaris and I need your advice. I have a Solaris version 5.9 installed on Sunfire V240. I am able to ssh the machine from putty remotely. My problem is that I cannot see the display from KVM switch I have connected to it. I need also to be able to see the GUI... (2 Replies)
Discussion started by: mbouster
2 Replies

8. UNIX for Dummies Questions & Answers

listen to ports...

Hi all, How can I log all requests on ports for programs like ftp, telnet, rsh, xdmcp etc... I want to see if anyone uses these programs/protocols and how often. Is it difficult to setup a log for these ports and listen on all requests? /combat (4 Replies)
Discussion started by: tonlu
4 Replies

9. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies
Login or Register to Ask a Question
ntptrace(1)						      General Commands Manual						       ntptrace(1)

NAME
ntptrace - trace a chain of NTP servers back to the primary source SYNOPSIS
ntptrace [ -vdn ] [ -r retries ] [ -t timeout ] [ server ] DESCRIPTION
ntptrace determines where a given Network Time Protocol (NTP) server gets its time from, and follows the chain of NTP servers back to their master time source. If given no arguments, it starts with localhost . Here is an example of the output from ntptrace : % ntptrace localhost: stratum 4, offset 0.0019529, synch distance 0.144135 server2ozo.com: stratum 2, offset 0.0124263, synch distance 0.115784 usndh.edu: stratum 1, offset 0.0019298, synch distance 0.011993, refid On each line, the fields are (left to right): the host name, the host stratum, the time offset between that host and the local host (as measured by ntptrace ; this is why it is not always zero for " localhost "), the host synchronization distance, and (only for stratum-1 servers) the reference clock ID. All times are given in sec- onds. Note that the stratum is the server hop count to the primary source, while the synchronization distance is the estimated error rela- tive to the primary source. These terms are precisely defined in RFC-1305. OPTIONS
-d Turns on some debugging output. -n Turns off the printing of host names; instead, host IP addresses are given. This may be useful if a nameserver is down. -r retries Sets the number of retransmission attempts for each host (default = 5). -t timeout Sets the retransmission timeout (in seconds) (default = 2). -v Prints verbose information about the NTP servers. BUGS
This program makes no attempt to improve accuracy by doing multiple samples. SEE ALSO
More documentation is available in the package ntp-doc. AUTHOR
David L. Mills <mills@udel.edu> ntp 4.1.1b-r5 ntptrace(1)