Changes between Version 30 and Version 31 of FreeBSDOnEmbeddedDevice


Ignore:
Timestamp:
02/02/12 12:12:57 (12 years ago)
Author:
Rick van der Zwet
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FreeBSDOnEmbeddedDevice

    v30 v31  
    154154}}}
    155155
     156{{{
     157#chroot <<'EOF' > /etc/pf.conf
     158inet_if="vr1"
     159wleiden_if="vr2"
     160int_if="bridge0"
     161int_network="192.168.42.0/24"
     162
     163
     164# Do not do anything @ localhost
     165set skip on lo0
     166
     167### all incoming traffic on external interface is normalized and fragmented
     168### packets are reassembled.
     169scrub in all fragment reassemble
     170
     171nat on $inet_if from $int_network  -> ($inet_if:0)
     172nat on $wleiden_if from $int_network  -> ($wleiden_if:0)
     173
     174# SSH Access for proxy13
     175rdr pass on $inet_if proto tcp from any to any port 2022 \
     176        -> 192.168.42.146 port ssh
     177
     178# SSH Access for CNodeRick
     179nat on $wleiden_if from any to 172.20.145.129 port ssh -> ($wleiden_if:0)
     180rdr pass on $inet_if proto tcp from any to any port 1022 \
     181        -> 172.20.145.129 port ssh
     182
     183# No firewall configured
     184pass quick on $int_if no state
     185
     186pass out on $inet_if keep state
     187pass out on $wleiden_if keep state
     188
     189pass in on $inet_if keep state
     190pass in on $wleiden_if keep state
     191}}}
    156192== Package install ==
    157193