![]() |
|
|
|||
|
OpenVPN tun adapter
I made my first connection using openVPN on my local network.
I used one XP machine as a server and an Ubuntu machine as the client, all went fine and I was able to connect a VNC viewer on both machines to view the other. Connection was made by command line. Trying exactly the same connection the following day my Linux machine keeps telling me the address is in use; network tools shows a tun0 adapter but if I try to configure it I get the message that it doesn't exist. Is there a command that I need to issue to clear any cache? Geoff Lane |
|
|||
|
Re: OpenVPN tun adapter
Geoff Lane wrote:
> I made my first connection using openVPN on my local network. > > I used one XP machine as a server and an Ubuntu machine as the client, > all went fine and I was able to connect a VNC viewer on both machines to > view the other. > > Connection was made by command line. > > Trying exactly the same connection the following day my Linux machine > keeps telling me the address is in use; network tools shows a tun0 > adapter but if I try to configure it I get the message that it doesn't > exist. > > Is there a command that I need to issue to clear any cache? > > Geoff Lane If it tells you that the address is in use, that is probably because you have an instance of openvpn already running. Robert |
|
|||
|
Re: OpenVPN tun adapter
Robert Harris wrote:
>> Trying exactly the same connection the following day my Linux machine >> keeps telling me the address is in use; network tools shows a tun0 >> adapter but if I try to configure it I get the message that it doesn't >> exist. >> >> Is there a command that I need to issue to clear any cache? > If it tells you that the address is in use, that is probably because you > have an instance of openvpn already running. Being very new to openVPN I am not fully familiar with the 'start and stop' procedure. I am initially running just a point to point connection from the command line. On the windows machine F4 cancels and I assumed as I shut down the Linux machine that openvpn client would have been cancelled anyway. Geoff Lane |
|
|||
|
Re: OpenVPN tun adapter
Geoff Lane <datemasde.t1m@gishpuppy.com> wrote:
> On the windows machine F4 cancels and I assumed as I shut down the Linux > machine that openvpn client would have been cancelled anyway. That's not the case unless you've configured OpenVPN to do so. It's probably still running, in which case firing in the WinXP side of the connection will allow it to reestablish the link. If you want to be sure then post your OpenVPN configuration here (both sides), ensuring that you XXX out any reference to certificates, usernames, and passwords (if any). You may want to obfuscate public IP addresses or hostnames, too, within reason. Chris |
|
|||
|
Re: OpenVPN tun adapter
Chris Davies wrote:
> If you want to be sure then post your OpenVPN configuration here > (both sides), ensuring that you XXX out any reference to certificates, > usernames, and passwords (if any). You may want to obfuscate public IP > addresses or hostnames, too, within reason. I just used the command line as follows; Server openvpn --dev tun --ifconfig 10.0.0.1 10.0.0.2 Client openvpn --remote 'local network address' --dev tun --ifconfig 10.0.0.2 10.0.0.1 Geoff Lane |
|
|||
|
Re: OpenVPN tun adapter
Geoff Lane <datemasde.t1m@gishpuppy.com> wrote:
> I just used the command line as follows; > Server > openvpn --dev tun --ifconfig 10.0.0.1 10.0.0.2 > Client > openvpn --remote 'local network address' --dev tun --ifconfig 10.0.0.2 > 10.0.0.1 You need to separate out the network addresses of the client and server from the openvpn addresses for the client and server. If the server is 10.0.0.1 and the client is 10.0.0.2, then you need to use different IP addresses for the openvpn link. (However, since they're on the same network it may well not work usefully.) Server: openvpn -dev tun --ifconfig 192.168.0.2 192.168.0.1 Client openvpn -dev tun --ifconfig 192.168.0.1 192.168.0.2 --remote 10.0.0.1 Geoff Lane <datemasde.t1m@gishpuppy.com> wrote: > Trying exactly the same connection the following day my Linux machine > keeps telling me the address is in use [...] If you've got "connection in use" and a visible tun adapter then it's likely the openvpn server is still running: ps -ef | grep openvpn If that shows nothing, try using lsof to see which process is using it: lsof | grep tun Chris |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|