diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2010-01-12 23:27:24 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2010-01-12 23:27:24 +0000 |
commit | 4af9f329b52c4405b5127d302489b8f9989eacd5 (patch) | |
tree | b2ee0f6506098f9fefaa33f655b8e35e0af84301 /usr.sbin | |
parent | 6ee254699bf787d78835419be2b3241fb037d444 (diff) |
when generating rdr rules, ensure the nat address is PF_ADDR_NONE to avoid
confusing pf.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/relayd/pfe_filter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/relayd/pfe_filter.c b/usr.sbin/relayd/pfe_filter.c index bd2e515c979..d303d1fa7a8 100644 --- a/usr.sbin/relayd/pfe_filter.c +++ b/usr.sbin/relayd/pfe_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfe_filter.c,v 1.41 2010/01/12 03:20:51 mcbride Exp $ */ +/* $OpenBSD: pfe_filter.c,v 1.42 2010/01/12 23:27:23 dlg Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -456,6 +456,7 @@ sync_ruleset(struct relayd *env, struct rdr *rdr, int enable) memset(&rio.rule.dst.addr.v.a.mask.addr8, 0xff, 16); } + rio.rule.nat.addr.type = PF_ADDR_NONE; rio.rule.rdr.addr.type = PF_ADDR_TABLE; if (strlen(t->conf.ifname)) (void)strlcpy(rio.rule.rdr.ifname, t->conf.ifname, |