-4

How can I actually open port 123 on my CentOS server, so I can synchronise my server with another server's time?

I couldn't be able to open 123 port using google guides.

Quentin McLoad
  • 149
  • 1
  • 2
  • 4

1 Answers1

2

In iptables

To open OUTBOUND

iptables -A OUTPUT -p udp --dport 123 -j ACCEPT

To open INBOUND

iptables -A INPUT -p udp --dport 123 -j ACCEPT
Ben Lessani
  • 5,244
  • 17
  • 37