View previous topic :: View next topic |
Author |
Message |
ba747heavy Apprentice
Joined: 11 Aug 2003 Posts: 216 Location: New Mexico, USA
|
Posted: Fri Dec 31, 2004 4:16 pm Post subject: ntp |
|
|
I am trying to get my gentoo box to sync up with an ntp server, but it doesn't want to cooperate. If my firewall is going, it won't sync up, saying it can't find a suitable server. However, when my firewall is off, it does sync up. I figure the problem lies with my firewall, but I can't figure it out.
Code: | Zion ~ # iptables -L | grep ntp
ACCEPT udp -- anywhere anywhere udp dpt:ntp
ACCEPT tcp -- anywhere anywhere tcp dpt:ntp
ACCEPT udp -- anywhere anywhere udp dpt:ntp
ACCEPT tcp -- anywhere anywhere tcp dpt:ntp |
Seems to indicate my firewall has the right ports open. Any ideas? _________________ Fred Clausen
"leet [speak] is a cry for help from a shallow mind" - Doomwookie Jan 05 |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Fri Dec 31, 2004 8:22 pm Post subject: |
|
|
The easiest way to figure out what's going on with a firewall is to create a rule called DROP_LOG
Code: |
-A DROP_LOG -j LOG --log-level 6
-A DROP_LOG -j DROP
|
and use that rule instead of DROP. What you will get is a log of what did not work. You can also remove the -j DROP to keep things open and only log what would have been dropped. |
|
Back to top |
|
|
ba747heavy Apprentice
Joined: 11 Aug 2003 Posts: 216 Location: New Mexico, USA
|
Posted: Sun Jan 02, 2005 5:49 am Post subject: |
|
|
I don't understand it, but if I remove the -u from the NTPCLIENT_OPTS in /etc/conf.d/ntp-client, it works.
Thanks for that suggestion on the firewall, I will have to do that and see if I can figure out why -u has to go. _________________ Fred Clausen
"leet [speak] is a cry for help from a shallow mind" - Doomwookie Jan 05 |
|
Back to top |
|
|
|