Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jan 2002 11:43:19 -0800
From:      Zev Thompson <zev@interchange.ubc.ca>
To:        freebsd-questions@freebsd.org
Subject:   IPNAT: redirecting multiple ports to internal network
Message-ID:  <3.0.5.32.20020109114319.018d5e60@pop.interchange.ubc.ca>

next in thread | raw e-mail | index | archive | help
Hi,  just a simple question regarding ipf / ipnat. When I was using ipfw /
natd, I could specify one rule like this to direct a range of ports from
the firewall to a non-routable inside IP:

redirect_port tcp 192.168.1.2:12000-12100 12000-12100

But when I try this with ipnat, a similar rule fails:

# ipnat - redirect ports 12000 to 12100 to my machine
rdr ex0 0/32 port 12000-12100 -> 192.168.1.2 port 12000-12100 tcp

I have other rules that use one-to-one matching with single port numbers,
and they look just like that:

rdr ex0 0/32 port 80 -> 192.168.1.2 port 80 tcp

And that works as expected.

I read the man page for ipnat(5) already and it's cryptic for someone who
doesn't know the syntax it's written in (have a look, you'll see what I mean).

Thanks in advance to any who reply.

Zev


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?3.0.5.32.20020109114319.018d5e60>