--- natd.c.orig Tue Jun 10 11:11:28 2003 +++ natd.c Tue Jun 10 11:35:59 2003 @@ -131,6 +131,7 @@ struct sockaddr_in addr; fd_set readMask; int fdMax; + int proxy_only; /* * Initialize packet aliasing software. * Done already here to be able to alter option bits @@ -170,7 +171,9 @@ /* * Check that valid aliasing address has been given. */ - if (aliasAddr.s_addr == INADDR_NONE && ifName == NULL) + + proxy_only = (PacketAliasSetMode(0,0) & PKT_ALIAS_PROXY_ONLY); + if (aliasAddr.s_addr == INADDR_NONE && ifName == NULL && !proxy_only) errx (1, "aliasing address not given"); if (aliasAddr.s_addr != INADDR_NONE && ifName != NULL)