Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
we have a minor issue with time synchronization in proprietary equipment.
the client needs to synchronize time with server, but not using NTP.
it is not very important so doesn't need to be done often.
the problem is that it won't synchronize. I can see the server is sending tcp packet with date&time, but the client ignores it.
I suspect the problem is in format (manual specifies there are two possible options like MM: DD: YYYY and so on, but server seems to use some other)
Is there an easy way to run some program in Linux Debian, to send that simple packet with correct date?
(the IP address of server can be configured in client)
You could muck with a telnet server (bad), netcat, a web server CGI or use something that might be already there, is configurable, has builtin ACLs etc, etc like Xinetd. For example a simple service configuration like:
Code:
]$ cat /etc/xinetd.d/timetell
# default: on
# description:
service timetell
{
disable = no
socket_type = stream
protocol = tcp
port = 9999
type = UNLISTED
wait = no
user = root
server = /bin/date
server_args = +%Y:%m:%d
log_on_failure += USERID
only_from = 127.0.0.1 192.168.0.0/16
}
...would return just "fullyear:month:day" plain text when polled on port TCP/9999.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.