source: branches/wsgi/packages/sipb-xen-dom0/debian/sipb-xen-dom0.init @ 1724

Last change on this file since 1724 was 94, checked in by hartmans, 17 years ago

set forwarding to 1 before changing the other settings
as changing forwarding frobs a lot of global state

File size: 241 bytes
Line 
1#!/bin/sh
2set -e
3
4case $1 in
5    start)
6    echo 1 >/proc/sys/net/ipv4/ip_forward
7    for foo in all default; do
8    echo 1 >/proc/sys/net/ipv4/conf/$foo/rp_filter
9    echo 1 >/proc/sys/net/ipv4/conf/$foo/proxy_arp
10    done
11    ;;
12    esac
Note: See TracBrowser for help on using the repository browser.