Date: Mon, 27 May 2002 12:30:20 -0400 From: "Matthew Emmerton" <matt@gsicomp.on.ca> To: "Curtis Polk" <cmackjr@swbell.net>, <freebsd-questions@FreeBSD.ORG> Subject: Re: IPNAT Problem Message-ID: <002b01c2059b$cbcc9f90$1200a8c0@gsicomp.on.ca> References: <3CF25DE2.68DB258B@swbell.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> I have IPNAT working, sort of. I'd like to do a redirect from my public > > machine to the private Web server. Here is ipnat.rules: > > map xl0 192.168.2.0/24 -> 0/32 > rdr xl0 aaa.bbb.ccc.ddd port=80 -> 192.168.2.3 port=80 > > The map works fine, but the redirect does not. I've tried adding the > CIDR > mask, /32 to the public host address, no help. Any help would be > appreciated. Since the mapping has already occured by the time you do redirects, you need to use something that ipnat recognizes as the "inside" IP address. This is what I use: rdr tun0 0.0.0.0/0 port 80 -> 192.168.0.2 port 80 -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002b01c2059b$cbcc9f90$1200a8c0>