i cant think A blog belong to Mohammad Azwan bin Ali. Most of his writings are about his real life story, ideas, thoughts, moderate political views, computer, programming, tips & tricks, particularly in Linux…. and of course it includes some random unspecified crappy stuffs too! Don't forget to check Movies and Junkyard pages out!
note: most of entries is not suitable for faint hearted person or anybody with iq below 100.

PacketiX.NET vpn client installation on linux

recently i'm been using packetix.net vpn and the speed is quite good... unfortunately there's not many guide on how to use the client on linux, so i'm writing one.

this gonna be very long..so bear with me till the end ..huhu

0. to make things easier, lets transform into root :D
sudo su && cd

1. now, make a folder name vpn and download the vpnclient file from their web http://packetix.net/en/secure/install/
mkdir vpn && cd vpn
wget -c http://packetix.net/en/special/files/vpn2_5350_en/vpnclient-5350a-rtm-en-linux-x86.tar.gz

2. now to compile this files, you need zlib, openssl, readline and ncurses.
apt-get install zlib1g-dev libreadline5-dev

3. once finish,extract the file and continue with compile
tar -zxvf vpnclient-5350a-rtm-en-linux-x86.tar.gz && cd vpnclient* && make
4. connecting/tunneling to packettix.net
./vpnclient start
./vpncmd

5. inside vpncmd
choose number 2
[2] Management of VPN Clinet and input localhost as the destination host
u will see something like this...
Input destination: localhost
Connected to VPN Client "localhost".
VPN Client>

6. now configuring your connection....read..and follow
root@bur8:~/vpnclient> ./vpncmd
vpncmd command - PacketiX VPN Command Line Management Utility
PacketiX VPN Command Line Management Utility (vpncmd command)
Version 2.20 Build 5350   (English)
Compiled Oct  9 2007 01:27:58 by yagi at ILC308
Copyright (C) 2004-2007 SoftEther Corporation. All Rights Reserved.
By using vpncmd program, the following can be achieved.
1. Management of VPN Server or VPN Bridge
2. Management of VPN Clinet
3. Use of VPN Tools (certificate creation and communication speed measurement)

Select 1, 2 or 3: 2

Specify the host name or IP address of the computer that the destination VPN Client is operating on.
If nothing is input and Enter is pressed, connection will be made to localhost (this computer).
Input destination: localhost

Connected to VPN Client "localhost".
VPN Client>niccreate
NicCreate command - Create New Virtual Network Adapter
Virtual Network Adapter Name: 0
The command terminated normally.

*** now lets configure our account and connection

VPN Client>niclist
NicList command - Get List of Virtual Network Adapters
Item                        |Value
----------------------------+-----------------------------------
Virtual Network Adapter Name|0
Status                      |Enabled
MAC Address                 |00AC9D035CF6
Version                     |Version 2.20 Build 5350   (English)
The command terminated normally.

VPN Client>accountcreate
AccountCreate command - Create New VPN Connection Setting
Name of VPN Connection Setting: VPN
Destination VPN Server Host Name and Port Number: public.softether.com:443
Destination Virtual HUB Name: PUBLIC
Connecting User Name: PUBLIC
Used Virtual Network Adapter Name: 0
The command terminated normally.

VPN Client>accountlist
AccountList command - Get List of VPN Connection Settings
Item                        |Value
----------------------------+-----------------------------------------------
VPN Connection Setting Name |VPN
Status                      |Offline
VPN Server Address          |public.softether.com (Direct TCP/IP Connection)
Virtual Network Adapter Name|0
The command terminated normally.

VPN Client>accountconnect
AccountConnect command - Start Connection to VPN Server using VPN Connection Setting
Name of VPN Connection Setting: VPN
The command terminated normally.

*** wait for awhile and list the account again

VPN Client>accountlist
AccountList command - Get List of VPN Connection Settings
Item                        |Value
----------------------------+-----------------------------------------------
VPN Connection Setting Name |VPN
Status                      |Connected
VPN Server Address          |public.softether.com (Direct TCP/IP Connection)
Virtual Network Adapter Name|0
The command terminated normally.

*** set this as default connection everytime vpnclient started

VPN Client>AccountStartupSet
AccountStartupSet command - Set VPN Connection Setting as Startup Connection
Name of VPN Connection Setting: VPN
VPN Client>quit

7. now check for connection... note the value of _0 at the end of vpn
root@bur8:~/vpnclient> ifconfig vpn_0
vpn_0 Link encap:Ethernet  HWaddr 00:ac:9d:03:5c:f6
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:1603 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:463867 (463.8 KB)  TX bytes:0 (0.0 B)

7. get dhcp from vpn
root@bur8:~/vpnclient> dhclient vpn_0
Listening on LPF/vpn_0/00:ac:9d:03:5c:f6
Sending on   LPF/vpn_0/00:ac:9d:03:5c:f6
Sending on   Socket/fallback
DHCPREQUEST of 10.3.83.250 on vpn_0 to 255.255.255.255 port 67
DHCPACK of 10.3.83.250 from 10.0.0.1
bound to 10.3.83.250 -- renewal in 437751335 seconds.

root@bur8:~/vpnclient> ifconfig vpn_0
vpn_0     Link encap:Ethernet  HWaddr 00:ac:9d:03:5c:f6
inet addr:10.3.83.250 Bcast:10.255.255.255 Mask:255.0.0.0

now you can start routing you connection to vpn..
sorry but this is a noob routing technique...it will redirect all your traffic to vpn

route del default
route add default dev vpn_0

for more about how to do advance routing in linux please refer to http://lartc.org/howto/index.html
p/s: to back to your current connection.. stop the service and reroute back to your original gateway.
in my case
./vpnclient stop
route del default
route add default dev ppp0
where ppp0 is my celcom 3g modem interface

for those who didn't know what the hell packetix.net is....

PacketiX.NET is an academic, non-profit online environment for PacketiX VPN, the VPN technology developed by SoftEther Corporation.

more info please visit their website at http://packetix.net/en/

update: you need to enable ipforwarding or else you won't be able to connect to internet.
$ echo 1 > /proc/sys/net/ipv4/ip_forward
or simply edit your /etc/sysctl.conf file

hope it this guide will give benefit to everyone.. thank you ;)


15 Comments

nate apo hau

Posted by pidi on 8 August 2009 @ 11pm

toksoh tahu la
bukan untuk cikgu cikgu guna hahahhahaa :D

Posted by novatech on 9 August 2009 @ 1am

thanks for the guide, it's great. I installed the vnn client and configured it on my ubuntu 9.0.4 but when i start it i cannot connect to the internet. I am connecting through a wireless connection. what can be wrong, please help

Posted by Steve on 4 September 2009 @ 10pm

are you on bad wifi connection? it will affects the connection performance

check your routing table too, and every time you got disconnected from wifi, you need to reroute it back to wifi gateway before connect to vpn again.

note that this simple routing method is not recommended on slow connection though -_-'

Posted by azwan ali on 7 September 2009 @ 12pm

no my connection is good afaik i rarely get disconnected i am very close to the modem in fact. i installed the VPN client on windows and it works great on it with no problems

Posted by Steve on 20 September 2009 @ 5pm

thanks, it's really really good:),very helpful

Posted by finalx on 9 October 2009 @ 1am

I am able to make the VPN, i mean its shown in ifconfig.. Also, I can see the packets being transferred... But I cannot route my traffic.. The commands you told are not working for me. Help me on how can i trouble shoot this problem

Posted by shadyabhi on 13 February 2010 @ 9pm

same problem shadyabhi is having i have never been able to route the traffic through the VPN, i would appreciate if you could share your precious thoughts with us. in fact after it qcquires the dhcp lease, the route is added automatically to the routing table but it doesn't work.

Posted by Steve on 19 February 2010 @ 12am

hi?would you have a look to this page?
http://ubuntuforums.org/showthread.php?t=1409687
I have the same problem after I route del default and
route add default dev vpn_0 ?

Posted by PacketiX.NET vpn on 11 March 2010 @ 8pm

i'm not sure why some of you seem to have problem with routing connection to vpn_0 interface hmmm
as far as i noticed, this will not work on my college wifi as i get ip from dhcp-server but sometime it work too!

meanwhile when using dsl and 3g always work perfectly fine

try this
ip route del default dev ppp0
ip route del default dev vpn_0
ip route add default via 10.0.0.1 dev vpn_0

or alternatively you can try routing with fwmark
http://troykelly.com/2009/04/04/sending-http-traffic-out-an-alternate- interface/

if it still not working, maybe you should seek help with other networking expert ;p so sorry i can't help further as my knowledge limited too

btw http://lartc.org/howto/index.html give tons of basic details.
reading is good [wink]

Posted by azwan ali on 12 March 2010 @ 3am

VPN Client>accountlist
AccountList command - Get List of VPN Connection Settings
Item |Value
----------------------------+----------------------------------------- ------
VPN Connection Setting Name |Secure
Status |Offline
VPN Server Address |public.softether.com (Direct TCP/IP Connection)
Virtual Network Adapter Name|DHCP
The command terminated normally.

VPN Client>accountconnect
AccountConnect command - Start Connection to VPN Server using VPN Connection Setting
Name of VPN Connection Setting: Secure

Error occurred. (Error code: 29)
Specified object not found.
VPN Client>
[cry]

Posted by huayi2 on 10 April 2010 @ 1pm

I got the followed message:
VPN Client>niccreate
NicCreate command - Create New Virtual Network Adapter
Virtual Network Adapter Name: 0

Error occurred. (Error code: 31)
Installation of the Virtual Network Adapter device driver failed.
VPN Client>

Posted by huayi2 on 10 April 2010 @ 1pm

did u do that with root access?

Posted by azwan ali on 12 April 2010 @ 7am

hi there,
in your configuration server it using public.softether.com:443
is that common server?cos my virtual hub using "string Hostname vpn_aghe.vpn.packetix.net".
is this correct server?hmmm

Posted by milano94 on 19 April 2010 @ 12pm

# cat /etc/resolv.conf
nameserver 130.158.6.55
search public-vpn.softether.com

I think this is the key~~~

http://www.thinkpad-lover.org/linux3/packetix.html

Posted by Le Min on 17 June 2010 @ 9pm

Leave a Comment

:D [angely] [argh] [blindfold] [color] [cry] [bye] [cutie] [dance] [flirt] [ghost] [thumb] >_< hmmm more »