changeset 668:d76cc244e016 draft

Added "ping hack" to peer2anonet for users with dymanic IcannNet IP's
author d3v11 <d3v11@d3v11.ano>
date Sun, 09 Oct 2011 17:53:29 -0500
parents cd36aa5c9b00
children 271fb597efc9
files contrib/peer2anonet/README contrib/peer2anonet/configure contrib/peer2anonet/peer2anonet
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/peer2anonet/README	Sun Oct 09 14:22:41 2011 -0500
+++ b/contrib/peer2anonet/README	Sun Oct 09 17:53:29 2011 -0500
@@ -68,9 +68,9 @@
 ================== 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 ============================
 
--- a/contrib/peer2anonet/configure	Sun Oct 09 14:22:41 2011 -0500
+++ b/contrib/peer2anonet/configure	Sun Oct 09 17:53:29 2011 -0500
@@ -4,6 +4,8 @@
 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
--- a/contrib/peer2anonet/peer2anonet	Sun Oct 09 14:22:41 2011 -0500
+++ b/contrib/peer2anonet/peer2anonet	Sun Oct 09 17:53:29 2011 -0500
@@ -148,6 +148,7 @@
  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