diff options
author | pikaj00 <pikaj00@gmail.com> | 2011-12-20 19:19:28 -0500 |
---|---|---|
committer | pikaj00 <pikaj00@gmail.com> | 2011-12-20 19:19:28 -0500 |
commit | 75ceea8beb91aecb842c28c3acae19c2773617e3 (patch) | |
tree | 0d5b2073278f7c25a600d3b40f6335ea238c30d8 | |
parent | ce557206ed5e392adbf9e1b07899ac7941c547e8 (diff) | |
parent | c861158c8cd34972db168c2c06ce63ba6072b30e (diff) | |
download | resdb-75ceea8beb91aecb842c28c3acae19c2773617e3.tar.gz resdb-75ceea8beb91aecb842c28c3acae19c2773617e3.zip |
Merge branch 'master' of git://git.d3v11.ano
-rw-r--r-- | contrib/peer2anonet/README.html | 4 | ||||
-rwxr-xr-x | contrib/peer2anonet/peer2anonet | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/contrib/peer2anonet/README.html b/contrib/peer2anonet/README.html index 6866354..52c732b 100644 --- a/contrib/peer2anonet/README.html +++ b/contrib/peer2anonet/README.html @@ -93,6 +93,10 @@ <b>CONFIGURATION FILES:</b> + If /etc/peer2anonet/bird.conf exists, then peer2anonet + will not create a new bird. Instead it will use this + bird.conf and append new protocols to it. + /etc/peer2anonet/peers/$PEER/* contains: asn local_port peering_ip pubkey remote_ip remote_port run seckey diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index 152f4a4..4895df2 100755 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -142,7 +142,10 @@ UPDATE(){ bird -c bird.conf -d' > /services/bird/run chmod +x /services/bird/run - echo "function n_AnoNet_mine (prefix arg) { + if [ -e /etc/peer2anonet/bird.conf ]; then + cp /etc/peer2anonet/bird.conf /services/bird/bird.conf + else + echo "function n_AnoNet_mine (prefix arg) { if arg ~ [ $P2A_NET/24+ ] then return true; return false; }; @@ -190,6 +193,7 @@ protocol direct direct_AnoNet_routes { table AnoNet_routes; interface \"eth0\"; import filter only_AnoNet; }" > /services/bird/bird.conf + fi for PEER in `ls /etc/peer2anonet/peers`; do mkdir -p /services/"$PEER" |