#!/bin/sh
### BEGIN INIT INFO
# Provides:          invirt-xen-config
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Startup script for the Invirt Xen host
# Description:       
### END INIT INFO

set -e

case $1 in
    start)
    echo 1 >/proc/sys/net/ipv4/ip_forward
    for foo in all default; do
    echo 1 >/proc/sys/net/ipv4/conf/$foo/rp_filter 
    echo 1 >/proc/sys/net/ipv4/conf/$foo/proxy_arp
    done
    ;;
    esac
