diff options
author | d3v11 <d3v11@d3v11.ano> | 2011-10-09 17:53:29 -0500 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2011-10-09 17:53:29 -0500 |
commit | 93e8c0914d35aee41cb35998d2a33290653e2675 (patch) | |
tree | d83a67216cd1384201c5fcd0238edcd9af6a745f /contrib/peer2anonet | |
parent | dcdcb8927b73efe56d2b834b6b24eeaecd7b4840 (diff) | |
download | resdb-93e8c0914d35aee41cb35998d2a33290653e2675.tar.gz resdb-93e8c0914d35aee41cb35998d2a33290653e2675.zip |
Added "ping hack" to peer2anonet for users with dymanic IcannNet IP's
Diffstat (limited to 'contrib/peer2anonet')
-rw-r--r-- | contrib/peer2anonet/README | 6 | ||||
-rwxr-xr-x | contrib/peer2anonet/configure | 2 | ||||
-rw-r--r-- | contrib/peer2anonet/peer2anonet | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/contrib/peer2anonet/README b/contrib/peer2anonet/README index b4f7e0c..04feabb 100644 --- a/contrib/peer2anonet/README +++ b/contrib/peer2anonet/README @@ -68,9 +68,9 @@ USAGE: ================== Not Actual Line on File ============================ anon <--your peer's alias 11.22.33.44 <--your peer's remote ip -3.5.7.9 <--your peer's anonet ip -3571 <--your peer's client port -3570 <--your peer's asn +1.2.3.4 <--your peer's anonet ip +4321 <--your peer's client port +1234 <--your peer's asn 3c6e0b8a9c15224a8228b9a98ca1531d <--your peer's public key ================== Not Actual Line on File ============================ diff --git a/contrib/peer2anonet/configure b/contrib/peer2anonet/configure index 25aae90..d9a574d 100755 --- a/contrib/peer2anonet/configure +++ b/contrib/peer2anonet/configure @@ -4,6 +4,8 @@ read -p "Enter your anonet router: " P2A_ROUTE read -p "Enter your anonet asn: " P2A_ASN read -p "Enter your anonet ip: " P2A_IP +echo '' >/etc/peer2anonet/p2a.conf + echo "P2A_NET=\"$P2A_NET\"" >>/etc/peer2anonet/p2a.conf echo "P2A_ROUTE=\"$P2A_ROUTE\"" >>/etc/peer2anonet/p2a.conf echo "P2A_ASN=\"$P2A_ASN\"" >>/etc/peer2anonet/p2a.conf diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet index ce0f515..64af216 100644 --- a/contrib/peer2anonet/peer2anonet +++ b/contrib/peer2anonet/peer2anonet @@ -148,6 +148,7 @@ export INTERFACE=ppp-$PEERNAME ip addr add $P2A_IP peer $PEERIP/32 dev \$INTERFACE scope link ip addr add $P2A_ROUTE/32 dev \$INTERFACE scope global ip link set dev \$INTERFACE up + ping -c 1 -I $INTERFACE -r -w 5 ) & exec /usr/sbin/quicktun.nacltai" > /services/"$PEERNAME"/run chmod +x /services/"$PEERNAME"/run |