From 93e8c0914d35aee41cb35998d2a33290653e2675 Mon Sep 17 00:00:00 2001 From: d3v11 Date: Sun, 9 Oct 2011 17:53:29 -0500 Subject: Added "ping hack" to peer2anonet for users with dymanic IcannNet IP's --- contrib/peer2anonet/README | 6 +++--- contrib/peer2anonet/configure | 2 ++ contrib/peer2anonet/peer2anonet | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) (limited to 'contrib/peer2anonet') 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 -- cgit v1.2.3