VPNC for 64 bit vista server win32 compiled with cygwin

Joined
Oct 30, 2008
Messages
2
Reaction score
0
Hi Evgal:

I have some questions about the procedure you have written up in your !!!Readme file. I have tried the procedure on Server 2008 enterprise 64 bit, and on windows vista 32 bit and I am getting stuck during the pcf to conf conversion. Here is what i have done:

I moved my pcf profile to the \Convert Cisco PCF file\ directory and renamed it 1.PCF

I installed CONtext and then the reg file. (BTW the reg file changed the default language of context to something i cant read).

I opened pcf2vpnc.pl in CONtext, then hit F9. I get the following output in the bottom pane:
> Executing: C:\Program Files\ConTEXT\ConExec.exe "perl.exe" "C:\Users\ron.williams\Desktop\vpnc_win32\Convert Cisco PCF file\pcf2vpnc.pl"
C:\Users\ron.williams\Desktop\vpnc_win32\Convert Cisco PCF file\pcf2vpnc.pl converts VPN-config files from pcf to vpnc-format.
Usage: C:\Users\ron.williams\Desktop\vpnc_win32\Convert Cisco PCF file\pcf2vpnc.pl <pcf file> [vpnc file]
> Execution finished.

My problem is that the 1.conf file is not created in the folder. No file appears after i hit F9. Am i misunderstanding something?

Thanks for you response:
Ron
ron dot williams at mail dot com
www.r0nwillliams.com
 
Joined
Oct 30, 2008
Messages
2
Reaction score
0
Oops, i figured that part out: at a command prompt, change to directory of \Convert Cisco PCF file\ then type pcf2vpnc.pl 1.pcf 1.conf

OK, but not i am stuck at the route add section:
i am running vpnc.exe --debug 2 --no-detach ./default.conf

when i was logged on to the Cisco VPN, i did a route print > routes.txt

but im not sure which line to add.

Also, when i look at the IP settings of the Cisco VPN interface when it is not connected, the IP is set to 0.0.0.0 and the mask is 0.0.0.0. It will not allow me to set the IP of my-tap to that IP. So what i did was conected to the cisco VPN, the ran IPconfig to get the IP of the device (even though it was set through DHCP), then assigned this IP to my-tap.

So am i on the right track? How do i know which routes to add?
 
Joined
Dec 3, 2008
Messages
1
Reaction score
0
r0nwilliams said:
Oops, i figured that part out: at a command prompt, change to directory of \Convert Cisco PCF file\ then type pcf2vpnc.pl 1.pcf 1.conf

OK, but not i am stuck at the route add section:
i am running vpnc.exe --debug 2 --no-detach ./default.conf

when i was logged on to the Cisco VPN, i did a route print > routes.txt

but im not sure which line to add.

Also, when i look at the IP settings of the Cisco VPN interface when it is not connected, the IP is set to 0.0.0.0 and the mask is 0.0.0.0. It will not allow me to set the IP of my-tap to that IP. So what i did was conected to the cisco VPN, the ran IPconfig to get the IP of the device (even though it was set through DHCP), then assigned this IP to my-tap.

So am i on the right track? How do i know which routes to add?

sorry

1) error in pcf2vpnc.pl - file

must be

....................................
return $text;
}

#if (defined $ARGV[0]) {
if (1) {

$ARGV[0] = "1.pcf";
$ARGV[1] = "1.conf";
....................................

2)
when you connected
you need route


this TABLE on 32 BIT machine with connected vpn
you need only NETs you want to connect




===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
...............
10.16.0.0 255.240.0.0 10.34.128.96 10.34.128.96 1
10.32.0.0 255.240.0.0 10.34.128.96 10.34.128.96 1
10.34.128.0 --mask->255.255.248.0<--- 10.34.128.96 10.34.128.96 20
...............
need -> 10.64.0.0 255.224.0.0 10.34.128.96 10.34.128.96 1
10.128.0.0 255.254.0.0 10.34.128.96 10.34.128.96 1
...........................................................................
10.255.255.255 255.255.255.255 10.34.128.96 10.34.128.96 20
...........................................................................
224.0.0.0 240.0.0.0 10.34.128.96 10.34.128.96 20
...........................................................................
===========================================================================
command you need

route add 10.64.0.0 mask 255.224.0.0 IP metric 1

where IP = ???? read lower


--mask->255.255.248.0<---

mask = 255.255.248.0




Ip address on my-tap interface you need read from console after run command

vpnc.exe --debug 2 --no-detach ./default.conf

file default.conf - must be in directory where vpnc.exe

in console you must find this .......





got save password setting: 0
got 4 acls for split include
acl 0: addr: 10.32.0.0/ 255.240.0.0 (12), protocol: 0, sport: 0, dport: 0 <<<<------------THIS I CAN ROUTE
acl 1: addr: 10.16.0.0/ 255.240.0.0 (12), protocol: 0, sport: 0, dport: 0 <<<<------------THIS I CAN ROUTE
acl 2: addr: 10.128.0.0/ 255.254.0.0 (15), protocol: 0, sport: 0, dport: 0 <<<<------------THIS I CAN ROUTE
acl 3: addr: 10.64.0.0/ 255.224.0.0 (11), protocol: 0, sport: 0, dport: 0 <<<<------------THIS I CAN ROUTE
got pfs setting: 0
Remote Application Version: Cisco Systems, Inc ASA5510 Version 7.2(3) built by builders on Wed
15-Aug-07 16:08
got address ___10.34.128.99___ <<<<<---------- THIS MY IP !!!!!!!!!!!!!!

ip = 10.34.128.99 mask = 255.255.248.0 - you need write on my-tap interface


and command

route add 10.64.0.0 mask 255.224.0.0 10.34.128.99 metric 1



3) it is bad --- ip can change
and you need read console every run vpn
and read ip from console

4) if you install cygwin you dont need read ip - it is automatic writes
but in vista script may not work correctly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top