<div dir="ltr">One of my favorite sayings is "never suspect a conspiracy, that which can be explained by incompetence". This is likely an accidental side effect of something else they've done because unless they are now trying to sell you some kind of Bell branded time-sync service, I can't think of any business reason why they would do this intentionally.<br><div><br></div><div>Although, one thing I can think of is, perhaps there is a whole lot of unsecured NTP on their network being actively exploited?</div><div><br></div><div>Might be worth going through the pain of opening a ticket to see if you can get an official answer. I believe the CRTC regulations prevent them from arbitrarily manipulating, blocking, or shaping the network traffic without disclosing what they are doing.</div><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 25, 2019 at 4:55 AM Trevor Cordes <<a href="mailto:trevor@tecnopolis.ca">trevor@tecnopolis.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2019-01-25 Trevor Cordes wrote:<br>
> Looks like chrony (and others) lets you specify src port, but I'm<br>
> loathe to uproot the system I know because Bell is braindead.  (MTS<br>
> didn't use to block it, and block-happy Shaw does not block it.)<br>
<br>
Epiphany moment: iptables can probably solve this.  20 minutes later:<br>
<br>
iptables -t mangle -A OUTPUT -o $iext -p udp --sport 123 --dport 123 -j MARK --set-mark 30<br>
iptables -t nat -A POSTROUTING -p udp -m mark --mark 30 -j SNAT --to-source :60000-61000<br>
<br>
Works perfectly!  ntpd now syncs with peers.  ntpdate doesn't need -u.<br>
I don't need to switch to chrony.  And I don't need to wait for ntpd to<br>
add this feature*.  Go take a hike Bell!!!<br>
<br>
*<a href="http://bugs.ntp.org/show_bug.cgi?id=1109" rel="noreferrer" target="_blank">http://bugs.ntp.org/show_bug.cgi?id=1109</a>  ... looks like never<br>
<br>
Note, it could be just 1 rule, but I used 2 to make sure that I only<br>
SNAT packets originating from within the actual firewall/router itself,<br>
and not packets being forwarded from within the internal LAN (PC's).  I<br>
can't figure out a way to specify "really originated locally" other<br>
than with mark, but I'm open to ideas.  It's not as easy as it sounds<br>
with multiple interfaces on the box, unless there's a trick I'm missing.<br>
<br>
If I wanted internal LAN PCs to also have their traffic go through, I'd<br>
need to use a -j MASQUERADE (it's a dynamic IP) in an extra rule and<br>
change the syntax slightly.  Since all internal PCs should be set to<br>
use the firewall as ntp server, this shouldn't be a problem (in fact<br>
could help me id broken PC ntp setups).<br>
_______________________________________________<br>
Roundtable mailing list<br>
<a href="mailto:Roundtable@muug.ca" target="_blank">Roundtable@muug.ca</a><br>
<a href="https://muug.ca/mailman/listinfo/roundtable" rel="noreferrer" target="_blank">https://muug.ca/mailman/listinfo/roundtable</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>John Lange<br><br></div></div></div>