Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2007 19:48:04 +1000
From:      "Jacob Hart" <jacob.hart+freebsd-current@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Allow TCP/UDP services in /etc/rc.firewall
Message-ID:  <139a3a1b0708190248w66b746f9w313600578334572@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
------=_Part_2730_32213699.1187516884264
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Small patch that changes workstation profile in /etc/rc.firewall to
allow UDP services.  All ports without a protocol specifier are
treated as TCP by default to keep backwards compatibility.

For example, setting

firewall_myservices="22 tcp:2000 udp:2001"

in /etc/rc.conf creates ipfw rules for tcp ports 22,2000 and udp port 2001.

-j

------=_Part_2730_32213699.1187516884264
Content-Type: text/x-patch; name="rc.firewall.diff"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="rc.firewall.diff"
X-Attachment-Id: f_f5jcuyo1

LS0tIC9ldGMvcmMuZmlyZXdhbGwub3JpZwkyMDA3LTA4LTE5IDE4OjAzOjQzLjAwMDAwMDAwMCAr
MTAwMAorKysgL2V0Yy9yYy5maXJld2FsbAkyMDA3LTA4LTE5IDE5OjE4OjQyLjAwMDAwMDAwMCAr
MTAwMApAQCAtMzQ5LDggKzM0OSwxMCBAQAogCSMKIAlmb3IgaSBpbiAke2ZpcmV3YWxsX2FsbG93
c2VydmljZXN9IDsgZG8KIAkgIGZvciBqIGluICR7ZmlyZXdhbGxfbXlzZXJ2aWNlc30gOyBkbwot
CSAgICAke2Z3Y21kfSBhZGQgcGFzcyB0Y3AgZnJvbSAkaSB0byBtZSAkagotCSAgZG9uZQorICAg
ICAgICAgICAgcHJvdG89YChlY2hvICRqIHwgYXdrICcvOi8ge3NwbGl0KCQwLGEsIjoiKTsgcHJp
bnQgYVsxXX0nKWAKKyAgICAgICAgICAgIHBvcnQ9YChlY2hvICRqIHwgc2VkIC1lICdzLy4qOi8v
MScpYAorICAgICAgICAgICAgJHtmd2NtZH0gYWRkIHBhc3MgJHtwcm90bzotdGNwfSBmcm9tICRp
IHRvIG1lICR7cG9ydH0KKyAgICAgICAgICBkb25lCiAJZG9uZQogCiAJIyBBbGxvdyBhbGwgY29u
bmVjdGlvbnMgZnJvbSB0cnVzdGVkIElQcy4K
------=_Part_2730_32213699.1187516884264--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?139a3a1b0708190248w66b746f9w313600578334572>