|
NAME
SYNOPSIS
DESCRIPTION
The proxy establishes a
pf(4)
rdr rule using the anchor
facility to rewrite packets between the client and the server. Once the rule
is established, Assuming the TFTP command request is from $client to $server, the
proxy connected to the server using the $proxy source address, and $port is
negotiated, rdr proto udp from $server to $proxy port $port -> $client The options are as follows:
CONFIGURATIONTo make use of the proxy, pf.conf(5) needs the following rules. The anchors are mandatory. Adjust the rules as needed for your configuration. In the NAT section: nat on $ext_if from $int_if -> ($ext_if:0)
no nat on $ext_if to port tftp
rdr-anchor "tftp-proxy/*"
rdr on $int_if proto udp from $lan to any port tftp -> \
127.0.0.1 port 6969
In the filter section, an anchor must be added to hold the pass rules: anchor "tftp-proxy/*" inetd(8) must be configured to spawn the proxy on the port that packets are being forwarded to by pf(4). An example inetd.conf(5) entry follows: 127.0.0.1:6969 dgram udp wait root \ /usr/libexec/tftp-proxy tftp-proxy SEE ALSOtftp(1), pf(4), pf.conf(5), ftp-proxy(8), inetd(8), syslogd(8), tftpd(8) CAVEATS
|