Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2002 07:19:54 -0500
From:      "Kliment Andreev" <klimenta@futurebit.com>
To:        "Marco Radzinschi" <marco@radzinschi.com>, "Shvetima Gulati" <shvetima@engineering.ucsb.edu>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: port forwarding
Message-ID:  <002501c29221$7bdd9350$0300a8c0@futurebit.local>
References:  <20021121225635.R6565-100000@radzinschi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > What is the easiest way of forwarding a port in FreeBSD. Suppose I want
> > my server to listen on port 8280, but want all connection attempts to
port
> > 80  to be forwarded to this port ... can that be done?

Put this in /etc/ipnat.rules

rdr dc0 0/0 port 80 -> 127.0.0.1 port 8280 tcp

And this in /etc/rc.conf

ipfilter_enable="YES"
ipnat_enable="YES"
ipmon_enable="YES"
ipfs_enable="YES"

I am using similar configuration for squid. But remember to check the
documentation first.
Here is a great article

http://www.defcon1.org/~ghostrdr/FreeBSD-STABLE_and_IPFILTER.html




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?002501c29221$7bdd9350$0300a8c0>