Skip to contentSkip to conversation

NTP

DISCUSSION Steve Comfort 3 participants 3 messages Jul 2, 2004

lore
Share & tools
lore
#0 lore raw

Hi all,

Could someone tell me what rules I need in order to enable NTP?

Best regards
Steve

#1 lore raw
Quoted 3 lines · Steve Comfort

Hi all,

Could someone tell me what rules I need in order to enable NTP?

Simply allow incoming UDP on port 123. The 'normal' way is for both the source and destination ports to be 123, but it is common (esp. with debugging) for the source port to be >1024.

Cheers,
Gavin.

#2 lore raw
In reply to Steve Comfort
Quoted 3 lines · Steve Comfort

Hi all,

Could someone tell me what rules I need in order to enable NTP?

NTP uses UDP port 123.

What rules you need depends on what you're trying to do - run an NTP server (allow UDP 123 in the INPUT chain), access an NTP server (allow UDP 123 in the OUTPUT chain), or allow clients and servers to talk to each other through a router (allow UDP 123 through the FORWARD chain).

If in doubt, add a LOG rule, try using the protocol, and see what gets logged
- that will tell you what sort of packets you need to ACCEPT instead.

Regards,

Antony.

Signature · 6 lines
Software development can be quick, high quality, or low cost.

The customer gets to pick any two out of three.

                                                     Please reply to the list;
                                                           please don't CC me.