Building the Network You Need with OpenBSD's PF: BSDCan, Ottawa May 6th, 2009
Prev |  | Next

# Simple gateway with NAT (cont'd.)

Check interface status with `ifconfig -a`

    $ ifconfig -a
    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33208
            groups: lo
            inet 127.0.0.1 netmask 0xff000000
            inet6 ::1 prefixlen 128
            inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
    xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            lladdr 00:50:da:21:e4:af
            groups: egress
            media: Ethernet autoselect (100baseTX full-duplex)
            status: active
            inet 213.187.179.198 netmask 0xfffffffc broadcast 213.187.179.199
            inet6 fe80::250:daff:fe21:e4af%xl0 prefixlen 64 scopeid 0x2
    xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            lladdr 00:50:da:3f:b2:86
            media: Ethernet autoselect (100baseTX full-duplex)
            status: active
            inet 192.168.103.1 netmask 0xffffff00 broadcast 192.168.103.255
            inet6 fe80::250:daff:fe3f:b286%xl1 prefixlen 64 scopeid 0x3
    enc0: flags=0<> mtu 1536
    pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
            groups: pflog