Last change
on this file since 94 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
|
Rev | Line | |
---|
[87] | 1 | #!/bin/sh |
---|
| 2 | set -e |
---|
| 3 | |
---|
| 4 | case $1 in |
---|
| 5 | start) |
---|
[94] | 6 | echo 1 >/proc/sys/net/ipv4/ip_forward |
---|
[87] | 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.