How Can I install Linux Client on Centos 5.1

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Wed Apr 02, 2014 11:27 am

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,

inten
Posts: 370
Joined: Fri Oct 18, 2013 8:15 am

Re: How Can I install Linux Client on Centos 5.1

Post by inten » Wed Apr 02, 2014 11:30 am

Post output of "ls -la /usr/bin/vpnclient"

andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Wed Apr 02, 2014 12:04 pm

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 ~]#

inten
Posts: 370
Joined: Fri Oct 18, 2013 8:15 am

Re: How Can I install Linux Client on Centos 5.1

Post by inten » Wed Apr 02, 2014 12:10 pm

Did you install SE from 3rd party RPM package or compiled SE yourself?

andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Wed Apr 02, 2014 12:12 pm

I did follow the instruction here
Last edited by andy_hay911 on Wed Apr 02, 2014 2:01 pm, edited 1 time in total.

inten
Posts: 370
Joined: Fri Oct 18, 2013 8:15 am

Re: How Can I install Linux Client on Centos 5.1

Post by inten » Wed Apr 02, 2014 12:23 pm

post the result of "uname -a" please

andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Wed Apr 02, 2014 12:30 pm

[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 ~]#

inten
Posts: 370
Joined: Fri Oct 18, 2013 8:15 am

Re: How Can I install Linux Client on Centos 5.1

Post by inten » Wed Apr 02, 2014 12:37 pm

Your OS is 32 bit... that manual is for 64 bit systems.

Take care.

andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Wed Apr 02, 2014 12:39 pm

I did install the 32 bit tar file and I did follow the instruction will it make difference ?

inten
Posts: 370
Joined: Fri Oct 18, 2013 8:15 am

Re: How Can I install Linux Client on Centos 5.1

Post by inten » Wed Apr 02, 2014 12:49 pm

show the name of the file you downloaded.

andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Wed Apr 02, 2014 12:58 pm

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,

inten
Posts: 370
Joined: Fri Oct 18, 2013 8:15 am

Re: How Can I install Linux Client on Centos 5.1

Post by inten » Wed Apr 02, 2014 1:03 pm

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.

andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Wed Apr 02, 2014 2:03 pm

It works my typo or mistake on ver.

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

Thanks,

inten
Posts: 370
Joined: Fri Oct 18, 2013 8:15 am

Re: How Can I install Linux Client on Centos 5.1

Post by inten » Wed Apr 02, 2014 2:37 pm

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!

onyx
Posts: 30
Joined: Fri Mar 21, 2014 2:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by onyx » Wed Apr 02, 2014 3:03 pm

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.

andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Wed Apr 02, 2014 6:41 pm

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

onyx
Posts: 30
Joined: Fri Mar 21, 2014 2:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by onyx » Thu Apr 03, 2014 5:28 am

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.

andy_hay911
Posts: 15
Joined: Wed Apr 02, 2014 11:11 am

Re: How Can I install Linux Client on Centos 5.1

Post by andy_hay911 » Thu Apr 03, 2014 10:49 am

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

glenndale
Posts: 2
Joined: Sun Aug 30, 2015 10:18 pm

Re: How Can I install Linux Client on Centos 5.1

Post by glenndale » Sun Aug 30, 2015 11:15 pm

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.

Post Reply