Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what rule to pass to IPtables to allow a ntp-client?[solved]
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
Stefan Pantiru
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2004
Posts: 80
Location: Iasi, Romania

PostPosted: Mon Sep 27, 2004 11:19 am    Post subject: what rule to pass to IPtables to allow a ntp-client?[solved] Reply with quote

The topic sais it all, actually...

I have this minimalistic ip-tables ruleset generated by adsl-setup, and my ntpdate only works in debug mode, otherwise saying that there are no available servers or something. When I disable iptables it works just fine.

So... what is the line to add to rules-save?

Thank you.
_________________
Viata-i grea, dar trece...


Last edited by Stefan Pantiru on Mon Sep 27, 2004 3:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
InfinityX
Guru
Guru


Joined: 31 Jan 2004
Posts: 385

PostPosted: Mon Sep 27, 2004 12:39 pm    Post subject: Reply with quote

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


Is all I need.
Back to top
View user's profile Send private message
splooge
l33t
l33t


Joined: 30 Aug 2002
Posts: 636

PostPosted: Mon Sep 27, 2004 2:19 pm    Post subject: Reply with quote

Believe it or not, there's a difference between routing and network address translation. For a home NAT box I really don't see the purpose of dropping outbound packets by default.

iptables -P OUTPUT ACCEPT

is the rule you can use to allow all outbound traffic through.
_________________
http://get.a.clue.de
Back to top
View user's profile Send private message
Stefan Pantiru
Tux's lil' helper
Tux's lil' helper


Joined: 23 May 2004
Posts: 80
Location: Iasi, Romania

PostPosted: Mon Sep 27, 2004 3:15 pm    Post subject: Reply with quote

InfinityX, you helped me indirectly...

It was not necessary to have
Code:
iptables -A OUTPUT -p udp --dport 123 -j ACCEPT

but from your post I noticed what was wrong:

I had this line:
Code:
[0:0] -A INPUT -p tcp --dport 123 -j ACCEPT

instead of this:
Code:
[0:0] -A INPUT -p udp --dport 123 -j ACCEPT


Thank you!
_________________
Viata-i grea, dar trece...
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