Browse Source

Document NAT and DNS forwarding rules for vmd(8)

discussed at length with benno, beck, deraadt, and florian
OPENBSD_6_3
mlarkin 7 years ago
parent
commit
6d5248e03d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/etc/examples/pf.conf

+ 6
- 1
src/etc/examples/pf.conf View File

@ -1,4 +1,4 @@
# $OpenBSD: pf.conf,v 1.2 2015/05/18 16:04:21 reyk Exp $
# $OpenBSD: pf.conf,v 1.3 2017/11/29 00:15:34 mlarkin Exp $
#
# See pf.conf(5) for syntax and examples.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
@ -31,5 +31,10 @@ pass # establish keep-state
#block in quick from urpf-failed to any # use with care
# rules for vmd(8) - NAT and DNS forwarding for VMs (100.64.0.0/10 default)
#pass out on egress from 100.64.0.0/10 to any nat-to (egress)
#pass in proto udp from 100.64.0.0/10 to any port domain \
# rdr-to $dns_server port domain
# By default, do not permit remote connections to X11
block return in on ! lo0 proto tcp to port 6000:6010

Loading…
Cancel
Save