Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ntp
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ba747heavy
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 216
Location: New Mexico, USA

PostPosted: Fri Dec 31, 2004 4:16 pm    Post subject: ntp Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Fri Dec 31, 2004 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
ba747heavy
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 216
Location: New Mexico, USA

PostPosted: Sun Jan 02, 2005 5:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum