Page 1 of 1

How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 11:27 am
by andy_hay911
Would you please someone help me to know how can I install VPNclient on CENTOS 5.1 I have did it before but I am unable to complete the process which I have got an error when I want to start it.

******Here is the error:
/etc/init.d/vpnclient: line 7: 21132 Segmentation fault $DAEMON start

****Here is my DEAMON

#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Client
DAEMON=/usr/bin/vpnclient/vpnclient
LOCK=/var/lock/subsys/vpnclient
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0


Thanks,

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 11:30 am
by inten
Post output of "ls -la /usr/bin/vpnclient"

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:04 pm
by andy_hay911
here you are

[root@main ~]# ls -la /usr/bin/vpnclient
total 7996
drwxr-xr-x 2 root root 4096 Apr 2 04:03 .
drwxr-xr-x 3 root root 20480 Apr 2 04:03 ..
-rwxr-xr-x 1 root root 1009432 Apr 2 00:26 hamcore.se2
-rwxr-xr-x 1 root root 3566218 Apr 2 00:26 vpnclient
-rwxr-xr-x 1 root root 3566097 Apr 2 00:26 vpncmd
[root@main ~]#

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:10 pm
by inten
Did you install SE from 3rd party RPM package or compiled SE yourself?

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:12 pm
by andy_hay911
I did follow the instruction here

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:23 pm
by inten
post the result of "uname -a" please

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:30 pm
by andy_hay911
[root@main ~]# uname -a
Linux main 2.6.18-371.6.1.el5 #1 SMP Wed Mar 12 20:08:05 EDT 2014 i686 i686 i386 GNU/Linux
You have new mail in /var/spool/mail/root
[root@main ~]#

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:37 pm
by inten
Your OS is 32 bit... that manual is for 64 bit systems.

Take care.

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:39 pm
by andy_hay911
I did install the 32 bit tar file and I did follow the instruction will it make difference ?

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:49 pm
by inten
show the name of the file you downloaded.

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 12:58 pm
by andy_hay911
softether-vpnclient-v4.06-9435-beta-2014.03.26-linux-x86-32bit.tar.g z
how can I delete all the files related to and re-compile it one more time is it enough to just delete all folder?

Thanks,

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 1:03 pm
by inten
andy_hay911 wrote:
> softether-vpnclient-v4.06-9435-beta-2014.03.26-linux-x86-32bit.tar.g

z
> how can I delete all the files related to and re-compile it one more time
> is it enough to just delete all folder?

yes and report back.

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 2:03 pm
by andy_hay911
It works my typo or mistake on ver.

Do you have any Idea how to push the VPN to only use ICMP tunnel ?

Thanks,

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 2:37 pm
by inten
andy_hay911 wrote:

> Do you have any Idea how to push the VPN to only use ICMP tunnel ?

I know how to establish a VPN connection using ICMP, but I have no any idea "how to push the VPN to only use ICMP tunnel".

Cheers!

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 3:03 pm
by onyx
maybe disabling Nat Traversal, enable VPN over ICMP, and client side connects to a port that ain't listening in server side. Client will try to establish for TCP, UDP, ICMP and DNS. Using random TCP port that's not listening will eventually fail, Random UDP port will also fail as Nat Traversal is disabled, Vpn over DNS should be disable so it will also fail and so the only connection left would be ICMP. But this is just a theory base on my understanding with the source. :P I haven't tried it.

Re: How Can I install Linux Client on Centos 5.1

Posted: Wed Apr 02, 2014 6:41 pm
by andy_hay911
Thanks, Do you have any Idea how can I edit client config file via vim editor in linux?
what is the config file name in linux?

Thanks

Re: How Can I install Linux Client on Centos 5.1

Posted: Thu Apr 03, 2014 5:28 am
by onyx
you can edit the files called vpn_server.config in /usr/local/vpnserver or /usr/vpnserver where you install it. I never use vim though as im use to nano. After modifying the config just restart the vpnserver service and you are good to go. I just tested it and turns out that my theory works.

I also tested VPN over DNS but the thing is it doesn't retrieve the ip as it should. Maybe it go something to do with my settings.

Re: How Can I install Linux Client on Centos 5.1

Posted: Thu Apr 03, 2014 10:49 am
by andy_hay911
Thanks do you have any Idea how to add PUBLIC IP address and assign it to the vpn client?
I need to give static public IP address which I have couple routed to the server to the specific user on VPN server or to the virtual hub to give this opportunity to the user to use valid static IP instead of NAT or DHCP IP.

Thanks

Re: How Can I install Linux Client on Centos 5.1

Posted: Sun Aug 30, 2015 11:15 pm
by glenndale
To make vpn over dns work, you need to connect through a dns serivice or use your server hostname, not the public IP address, I have a similar set up that works for me, I am able to connect to the internet for free through an ISP portal, the only problem is that sometimes it doesn't connect straight way until I connect to a direct internet connection and then disconnect and connect to my ISP portal internet again.

You need to set an A record on a domain you already own pointing to your server Public IP. then connect with that sub-domain.