Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Mar 2014 15:36:59 -0400
From:      Joe Nosay <superbisquit@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Using pf.conf with public access points.
Message-ID:  <CA%2BWntOsQG-OeF8AmiftKt6-7upXTN7Pnv4ogZJmt6kjZ0GsZAA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
My pf.conf is attached. I would like to know:
1. Is everything set up properly?
2. How do I compensate for the use of public access points when the IP
addresses will always be different?

[-- Attachment #2 --]
    ext_if="wlan0"
    jail_if="lo1"

    
    IP_JAIL_WWW="127.1.2.7"

    NET_JAIL="127.1.2.7/32"

    PORT_WWW="{80}"

    scrub in all

    # nat all jail traffic
    nat pass on $ext_if from $NET_JAIL to any -> $IP_PUB

    # WWW
    rdr pass on $ext_if proto tcp from any to $IP_PUB port $PORT_WWW -> $IP_JAIL_WWW

    # demo only, passing all traffic
    pass out
    pass in

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BWntOsQG-OeF8AmiftKt6-7upXTN7Pnv4ogZJmt6kjZ0GsZAA>