Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 09:20:14 +0100
From:      krad <kraduk@gmail.com>
To:        Matthias Fechner <idefix@fechner.net>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Convert ipfw rule to pf
Message-ID:  <CALfReye=w-tK4JCwZs1WWyM5Ou5ttY9XpmuD0VUs16zifXbbbA@mail.gmail.com>
In-Reply-To: <a2dca6c6-e5cf-2732-203f-396a61737bac@fechner.net>
References:  <a2dca6c6-e5cf-2732-203f-396a61737bac@fechner.net>

next in thread | previous in thread | raw e-mail | index | archive | help
you need the relevant pass rules as well as the rdrs

On 17 April 2016 at 10:22, Matthias Fechner <idefix@fechner.net> wrote:

> Dear all,
>
> I use sslh to have a transparent proxy for ssh/https in place.
> The transparent proxy support of sslh requires ipfw rules to work.
>
> I'm not sure if sslh is doing something in the background and that is the
> reason why it is not working with pf.
>
> Maybe we have here a pf guru on the list that can ensure the the rule
> itself is correct.
>
> The ipfw rule looks like:
> # https
> ipfw add 20000 fwd 192.168.0.251,443 log tcp from 192.168.0.251 8443 to
> any out
> ipfw add 20001 fwd 192.168.200.6,443 log tcp from 192.168.200.6 8443 to
> any out
> # ssh
> ipfw add 20003 fwd 192.168.200.6,443 log tcp from 192.168.200.6 22 to any
> out
>
> In pf they look like:
> rdr pass log inet proto tcp from 192.168.0.251 port 8443 to any ->
> 192.168.0.251 port 443
> rdr pass log inet proto tcp from 192.168.200.6 port 8443 to any ->
> 192.168.200.6 port 443
> rdr pass log inet proto tcp from 192.168.200.6 port 22 to any ->
> 192.168.200.6 port 443
>
> Thanks.
>
> Gru=C3=9F
> Matthias
>
> --
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs, and the universe trying to
> produce bigger and better idiots. So far, the universe is winning." --
> Rich Cook
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALfReye=w-tK4JCwZs1WWyM5Ou5ttY9XpmuD0VUs16zifXbbbA>