Date: Mon, 3 Nov 2014 04:12:34 +1100 (EST) From: Ian Smith <smithi@nimnet.asn.au> To: "William A. Mahaffey III" <wam@hiwaay.net> Cc: freebsd-questions@freebsd.org Subject: Re: Minor rpc question .... Message-ID: <20141103032648.W52402@sola.nimnet.asn.au> In-Reply-To: <20141103012236.X52402@sola.nimnet.asn.au> References: <mailman.69.1414929601.54988.freebsd-questions@freebsd.org> <20141103012236.X52402@sola.nimnet.asn.au>
next in thread | previous in thread | raw e-mail | index | archive | help
William, I've just seen your response at http://lists.freebsd.org/pipermail/freebsd-questions/2014-November/262026.html but as I take questions@ as a digest, I won't get it here till tomorrow .. I should have asked you to cc me. So this is a brief hatchet job: > 02500 18777 23476935 allow tcp from 192.168.0.0/16 to me > 65000 1795 424041 count ip from any to any > 65100 1371 269257 deny { tcp or udp } from any to any dst-port 111,137,138,513 in > w/ port 513 obviously being denied. However, I don't know where that > is happening :-/ & I thought rule 02500 would let all local traffic > through .... /etc/rc.firewall 'workstation' ruleset allows you to enable inbound access to services, like rwhod. see /etc/defaults/rc.conf for details of rc.conf variables, and rc.firewall for how they're invoked. Rule 2500 only allows tcp, rwho is udp - but 2500 is a bit sweeping anyway, perhaps best to enable specific services, even internally? Ah, yes - I see firewall_myservices and firewall_allowservices are only for TCP services. That's a strange omission, if I'm reading it right, especially re rpc. Rather than fixing this properly now for UDP services, I'd just add into /etc/rc.firewall after what's now your 2500 or at any rate before 65000: ${fwcmd} allow udp from ${mynetwork} 513 to me 513 You're already enabling udp services outbound, statefully, which is why you can query other hosts. Now they'll be able to reach you too :) 'service ipfw restart' and you should be good to go. You could remove 513 from firewall_nologports - but now it'll already be passed by then. g'night, Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141103032648.W52402>