# HG changeset patch # User d3v11 # Date 1318200809 18000 # Node ID d76cc244e016f75e6d9ada320fd75aabdf629799 # Parent cd36aa5c9b003b6e608b7f4e265bdca930a764a3 Added "ping hack" to peer2anonet for users with dymanic IcannNet IP's diff -r cd36aa5c9b00 -r d76cc244e016 contrib/peer2anonet/README --- 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 ============================ diff -r cd36aa5c9b00 -r d76cc244e016 contrib/peer2anonet/configure --- 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 diff -r cd36aa5c9b00 -r d76cc244e016 contrib/peer2anonet/peer2anonet --- 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