ipfw for udp on FreeBSD 12.1?

Kristof Provost kp at freebsd.org
Wed Feb 5 21:30:29 UTC 2020


On 2020-02-06 00:21:10 (+0300), Andreas X <hamdi20193d at gmail.com> wrote:
> Hello.
> 
> I use ipfw with options such as: firewall_type="workstation" and
> firewall_myservices="21 22 80 443" for my server via rc.conf file.
> 
> I need to add an UDP port range to allow, for vsftpd (PASV). However ipfw
> doesn't has any settings as I heard and "firewall_myservices" only supports
> TCP ports. Any idea how to manage that issue?
> 
> The internet has a lot of tutorials for adding "firewall_myservices_tcp"
> "firewall_myservices_udp" support, none of them worked for 12.1
> 
> And, anyone got any idea why FreeBSD 10 supports such tags for IPFW, but
> 12.1 not?
> 
> https://svnweb.freebsd.org/base/head/etc/rc.firewall?view=markup&pathrev=273201

I'd expect firewall_myservices="53/udp" to open UDP port 53.

As per that commit message you should update your existing services to
be 21/tcp and such.

Regards,
Kristof


More information about the freebsd-questions mailing list