Greetings;
On Wed, 2014-09-10 at 07:27 +0000, f5pbg@free.fr wrote:
You must move the line : case "$1" in just before the line : start)
Thanks for the catch.
I change the way /usr/local/bin/ by /usr/sbin
Typically you would want to put your own files in /usr/local/bin or sbin, not in /usr/sbin (not that it really matters as long as it's in your path), that keeps it more in scope with the linux filesystem rules.
I had put a # (transform in comments) these lines : NOSIP='x.x.x.x' # ex: 44.1.2.4 ifconfig tun0 $AMPRIP pointopoint $NOSIP up ip route add $NOSIP dev tun0 onlink table 1 src $AMPRIP
If you're not running any xNOS, that's fine.
Now on this computer, when i do a ping, i see an answer but i do not see anything outside my local network (like a traceroute).
After you ifconfig your tunl0 add this line: ip tunnel change tunl0 mode ipip ttl 64 tunl0 pmtudisc
That will enable you traceroute results. Typically your encapsulated traces will not give you proper results. Without making adjustments to the TTL, you won't get responses from your amprnet-hops.
At this moment, i search where is the problem but if you have the solution, I thank you in advance