You are not logged in.
hi to everybody,
does ntp require particular iptables rule to work ?
thanks
Last edited by nTia89 (2011-08-12 12:07:26)
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
Offline
You don't need any special port opened to just use ntpd to set your clock correctly. The "--state RELATED,ESTABLISHED" rule is enough to allow replies back to you from timeservers.
Offline
does ntp require particular iptables rule to work ?
NTP uses UDP port 123, so that will need to have an open path in both directions between the client and server(s). This can be done either explicitly with --dport and --sport or using connection tracking as ataraxia has pointed out.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
so, i need, for example:
iptables -A INPUT -i eth0 -m state --state RELATED,ESTABLISHED -j ACCEPTbefore start npd ?
and every time i launch it, because iptables reset every reboot, is right ?
Last edited by nTia89 (2011-08-12 09:29:54)
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline
and every time i launch it, because iptables reset every reboot, is right ?
Not if you save the rules after you set them ![]()
/etc/rc.d/iptables saveAre you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
ok
solved
+pc: custom | AMD Opteron 175 | nForce4 Ultra | 2GB ram DDR400 | nVidia 9800GT 1GB | ArchLinux x86_64 w/ openbox
+laptop: Apple | MacBook (2,1) | 2GB ram | Mac OS X 10.4 -> DIED
+ultrabook: Dell | XPS 13 (9343) | 8GB ram | 256GB ssd | FullHD display | Windows 8.1 64bit ArchLinux x86_64 w/ Gnome
Offline