ADD: Network Time + iptables rule

merlyn

New Member
Joined
Nov 10, 2007
Messages
127
Reaction score
0
Did this get put on the list "to do" ?

I know I am still disabling iptables in order to get the time/date to my cisco phones.

thanks ...
merlyn
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

Just open port UDP123 via webmin - networking - Linux Firewall, and it should just work for you.

The easiest way is to pick on of the existing UDP rules, e.g. 4569, and clone it, then change the port to 123

Joe
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,206
Reaction score
5,229
Here's a script to do it for you

Code:
#!/bin/bash

sed -i '
/\-A INPUT \-p tcp \-m tcp \-\-dport 5038 \-j ACCEPT/ {
a\
\# Allow connections to NTP time server\
\-A INPUT \-p udp \-m udp \-\-dport 123 \-j ACCEPT
}' /etc/sysconfig/iptables

service iptables stop
service iptables start
 

merlyn

New Member
Joined
Nov 10, 2007
Messages
127
Reaction score
0
Thanks Ward !!

That makes it super easy. I can definetly use this when i do a fresh install in the next few weeks of my home setup.

(thanks Joe BTW forgot to reply to your webmin way of doing it)
 

Members online

Forum statistics

Threads
25,825
Messages
167,856
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top