[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] netsh firewall syntax question


  • Subject: Re: [Openvpn-users] netsh firewall syntax question
  • From: Brent Gardner <brent.gardner@xxxxxxxxx>
  • Date: Thu, 01 Mar 2007 13:13:07 -0700

Konrad Karl wrote:
> Hi,
> 
> On Thu, Mar 01, 2007 at 07:35:08PM +0100, Denis Jedig wrote:
>> On Thu, 1 Mar 2007 19:20:09 +0100 Konrad Karl wrote:
>>
>>> Ouch, 3'rd question within a single day...
>> Mh.
>>
>>> what is the correct netsh syntax to disable/enable the
>>> XP firewall only on the TAP adapter? Right now I am using:
>>>
>>> netsh firewall set opmode mode=disable
>> | C:\Documents and Settings\Denis>netsh firewall set opmode help
>> | 
>> | set opmode
>> |       [ mode = ] ENABLE|DISABLE
>> |       [ [ exceptions = ] ENABLE|DISABLE
>> |         [ profile = ] CURRENT|DOMAIN|STANDARD|ALL
>> |         [ interface = ] Name ]
> 
> Yes, I already know that. The problem is to get on the actual
> name, e.g. "Local Area Connection 3", "Local Area Connection 7" etc.
> 
> I know there is only one TAP device being installed but how to get
> the interface name from knowing it is a TAP device? (also see my other post
> from today, using "TAP-Win32 Adapter V9" does not work)
> 
> It should work from a NSIS setup w/o any manual intervention.
> 
> Greetings,
> Konrad
> 
>> -- 
>> Denis Jedig
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Openvpn-users mailing list
> Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/openvpn-users
> 

It's been a while since I dabbled with the NSIS stuff.  Can you run:

openvpn.exe --show-adapters > temp.txt

then parse the adapter name out of the temp file and use that in the 
netsh call?


Brent Gardner
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users