Chris Davies <chris-(E-Mail Removed)> writes:
>Bill Unruh <(E-Mail Removed)> wrote:
>> I have a friend who has a machine behind a dsl router and gets a dhcp
>> address, so I cannot connect directly. I have therefor set up openvpn
>> And openvpn starts up and keeps running waiting for a connection.
>> If I phone him and he starts openvpn by hand, I can ssh in to 10.8.0.2
>> without problem.
>> HOwever I have a startup script which is run every 10 min
>> which pings 10.8.0.1 and
>> 111.222.333.444 and if the former does not exist but the latter does it
>> runs
>> service openvpn stop
>> service openvpn start
>This script presumably runs on your friend's machine? Personally, I've
>never found it necessary to do that.
Yes, it runs on his machine. I was having trouble that the network on his
DSL /DHCP machine was coming up after the openvpn script was run, and this
seemed to mean that openvpn was not coming up. HOwever the problem might
have been what I am still seeing since I was using ssh to test it.
Now long does the NAT timeout usually run for ( Speedtouch modem/router)
>> Now on my machine I see every 10 min the line in th elog
>> Sep 25 16:30:02 localname openvpn[27810]: Peer Connection Initiated with 44.33.22.11:58175
>> but as far as I can see, openvpn is not started or anything at the other
>> end This seems to be a response to the ping I send across the tun.
>> Somehow the connection from my end is not working for ssh until something
>> has to woken up by the prior telnet.
>Have you considered NAT/firewall issues? Personally I would explicitly
>set the protocol (UDP) and port number (1194) on both ends. Also, I would
>configure the NAT/Router on each end to forward UDP/1194 traffic to the
>respective servers; this prevents NAT sessions timing out.
OK, that may be a clue-- ie that the problem is the router on the far end (
there is none on my end) which is doing NAT on his machine. Somehow the
telnet session on the tunnel is getting through but ssh is not.
|