Skip to main content


Showing posts from September, 2010

How to use vpnc with a cisco vpn server

Build vpnc with Hybrid support need by the cisco vpn.
sudo apt-get build-dep vpnc

sudo apt-get install libssl-dev

mkdir -p ~/tmp/vpnc

cd ~/tmp/vpnc

apt-get source vpnc

cd vpnc-0.5.3r449

# Edit the file Makefile and uncomment line


# Remove existing vpnc
sudo apt-get remove vpnc
sudo dpkg -i ../vpnc_0.5.3r449-2_i386.debVerify the hybrid mode by executingvpnc --version| grep -i auth
Supported Auth-Methods: psk psk+xauth hybrid(rsa)Extract/Convert Root Cert and Profiles
Download MacOS Cisco VPN client your_company_cisco_client.dmg
Mount HFS Archive to copy the files needed
sudo mkdir /tmp/cisco sudo mount -t hfsplus your_company_cisco_client.dmg /tmp/cisco -o loop cd /tmp/cisco cp -r Profiles/ rootcert cd sudo umount /tmp/cisco sudo rmdir /tmp/cisco
Use pcf2vpn to convert files.
mkdir ~/vpnc
$ for file in Profiles/*.pcf; \ do basename=`basename "$file"`; \ /usr/share/vpnc/pcf2vpnc Profiles/"$basename" ~/vpnc/"${basename%pcf}vpnc"; \ do…

Using a socks proxy

#ssh to a machine on the network you need access and start # a local socks server ssh -D 9999
# setweb browser proxy to proxy: localhost:9999
# To use other apps with socks install sudo apt-get install tsocks
# Change config file to (remove everything else) /etc/tsocks.conf server = server_port = 9999
# ssh to a machine tsocks ssh -X
# eclipse to a machine tsocks eclipse
reference: using tsocks for tunneling cmds lines and everything else