Last change
on this file since 14071 was 14071, checked in by rick, 7 years ago |
Fix no traffic possible from aliased gateway iface
Packets originating from same interface as the gateway interface (aliased
interface) are not matched by the 'out' rule.
Technically they are both incoming and outgoing at the same time and thus will
be covered the the 'in' rule directive. By ensuring matching is done on both
incoming and outgoing this packets will be allowed.
|
-
Property svn:executable
set to
*
|
File size:
816 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # Update the non-active partition, input will stdin if no argument given else a
|
---|
4 | # listing netcat sesion will be opened at the given port
|
---|
5 | # Can be used in the following setups:
|
---|
6 | # 1) Systems with CPU limits (e.g. no encryption and/or compression):
|
---|
7 | # ssh -oBatchMode=yes root@node.example.org /tools/update-wrapper 3333 &
|
---|
8 | # cat nanobsd.image | nc node.example.org 3333
|
---|
9 | # 2) Standard setup:
|
---|
10 | # cat nanobsd.image | ssh -oBatchMode=yes root@node.example.org /tools/update-wrapper
|
---|
11 | #
|
---|
12 | # Licence: BSD http://wirelessleiden.nl/LICENSE
|
---|
13 | #
|
---|
14 | # Rick van der Zwet <info@rickvanderzwet.nl>
|
---|
15 |
|
---|
16 | . /etc/nanobsd.conf
|
---|
17 |
|
---|
18 | ROOT=`cd $(dirname $0); pwd -P`
|
---|
19 |
|
---|
20 | # Find out which partion to use
|
---|
21 | mount | grep -q ${NANO_DRIVE}s1 && UPDATE=$ROOT/updatep2 || UPDATE=$ROOT/updatep1
|
---|
22 |
|
---|
23 | if [ -z $1 ]; then
|
---|
24 | $UPDATE
|
---|
25 | else
|
---|
26 | nc -l $1 | $UPDATE
|
---|
27 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.