fixed TAP adapter IP address

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
mike1127
OpenVpn Newbie
Posts: 3
Joined: Sat Jun 11, 2016 2:51 am

fixed TAP adapter IP address

Post by mike1127 » Sat Jun 11, 2016 2:57 am

I don't know if I've come to the right place, but please let me know if I need to ask this somewhere else. I'm using the OpenVPN client on Windows, and I want to do something to help protect against accidental VPN disconnects. Specifically I want to use the feature in my application to bind to a specific adapter's IP address. So if I bind to the TAP adapter, and the connection to the VPN is lost, this application will not send any more data in the open. It works fine. The problem, though, is that every time I run OpenVPN (via the GUI) it sets up a different TAP IP. Is there a way I can configure this to be the same every time?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: fixed TAP adapter IP address

Post by TinCanTech » Sat Jun 11, 2016 10:37 am

If the server is your own then you can setup a CCD file with a fixed IP address.

mike1127
OpenVpn Newbie
Posts: 3
Joined: Sat Jun 11, 2016 2:51 am

Re: fixed TAP adapter IP address

Post by mike1127 » Sat Jun 11, 2016 11:26 am

No the server is not my own, I'm using just the OpenVPN GUI on Windows. When I installed it, it also installed the TAP adapter, but I'm not sure if I've come to right forum to learn how to configure the TAP adapter. Thanks.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: fixed TAP adapter IP address

Post by TinCanTech » Sat Jun 11, 2016 11:49 am

If the server is not your own then you have to accept the IP the server pushes to you.

Or you can try --ifconfig in the client config file .. but it probably will not work.

mike1127
OpenVpn Newbie
Posts: 3
Joined: Sat Jun 11, 2016 2:51 am

Re: fixed TAP adapter IP address

Post by mike1127 » Sat Jun 11, 2016 12:37 pm

Just to make sure I understand, the IP I want to bind to is the one I see listed in "Ethernet 2" (the TAP adapter) when I run "ipconfig /all". That is the one the server pushes to me?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: fixed TAP adapter IP address

Post by TinCanTech » Sat Jun 11, 2016 12:47 pm

This one:

Code: Select all

Description . . . . . . . . . . . : TAP-Windows Adapter V9

Post Reply