Redirect *:port to ip:port on the same machine?

Tomas Quintero tomasq at gmail.com
Wed May 11 15:46:56 PDT 2005


On 5/11/05, Andrew P. <infofarmer at gmail.com> wrote:
> Hello!
> 
> I have a program that binds to ip:port. What are
> my options, if I want it to listen on all interfaces
> (*:port)? Let's say reconfiguring the program
> and/or running one instance per interface is
> not possible. I've got ipfw as a firewall.
> 
> Thanks!
> Andrew P.

In something like PF, for instance I have FTP connections forwarding
to FTP-Proxy locally so I use a line like:

rdr on $int_if inet proto tcp from $int_net to any port ftp ->
127.0.0.1 port 8021

I have no idea how you would write that for IPFW however.

-- 
-Tomas Quintero


More information about the freebsd-questions mailing list