All pastes #777244 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-11-16 17:33 UTC
rendered paste body
--- /usr/local/share/examples/qemu/qemu-ifup    Thu Nov  1 21:59:03 2007
+++ /etc/qemu-ifup      Sun Sep  9 18:43:33 2007
@@ -1,7 +1,7 @@
 #! /bin/sh
 set -x 
 
-_ETHER=trunk0
+_ETHER=rl0
 _BRIDGE=bridge0
 
 # Let the environment over-ride this
@@ -19,6 +19,12 @@
 
 # Set up our bridge
 $SUDO ifconfig $1 group tun
+$SUDO ifconfig $1 192.168.0.1/24
+
+$SUDO dhcpd $1
+sysctl -w net.inet.ip.forwarding=1
+$SUDO pfctl -f /etc/pf.conf -e
+
 $SUDO ifconfig $BRIDGE create && {
   # Ony add rules if the bridge creation succeeds; otherwise
   # duplicate rules get loaded each time qemu starts