[Firehol-support] Re: Redirecting ports to other computers

Thomas Arendsen Hein thomas at intevation.de
Fri Jan 28 05:56:43 GMT 2005

* Francis Brosnan Blazquez <francis at aspl.es> [20050127 23:07]:
> A concrete scenario is follows: a have two boxes behind a firewall
> (running firehol ;-) and I need to allow incoming connections to, for
> example, port 2222 and enroute this connection to port 22.

Assuming a dialup connection on ppp0 with two internal hosts to
forward to:

dnat to "" inface "ppp0" proto "tcp" dport "2222"
dnat to "" inface "ppp0" proto "tcp" dport "2223"

and you need to allow this traffic in a router:

router "ext2int" inface "ppp0" outface "eth0"
    route "ssh" accept dst ""


Email: thomas at intevation.de

More information about the Firehol-support mailing list