Allow use of interface name in rules file. This way if you have a dynamic
authorkstailey <kstailey@openbsd.org>
Thu, 13 Feb 1997 01:19:05 +0000 (01:19 +0000)
committerkstailey <kstailey@openbsd.org>
Thu, 13 Feb 1997 01:19:05 +0000 (01:19 +0000)
commit435e9b2886a5b8c0c08f37753501936655b8996d
treeb47ea68b277644093848397d53be6e0a92ffd825
parentc6edc73c0f552850d8993c9b9fb0e3185511e4b2
Allow use of interface name in rules file.  This way if you have a dynamic
IP address you don't have to edit the rules file every time you connect.

Example of usage:

coyote% cat /etc/nat.rules
map ppp0 10.0.0.0/8 -> ppp0/32 portmap tcp/udp 10000:20000

ppp0 is automagically transformed into the IP address of the ppp0 interface.
sbin/ipnat/ipnat.c