Page 1 of 1
[SOLVED] SoftEther Client for Linux
Posted: Wed Aug 09, 2017 9:41 pm
by cmd wh0ami
Can someone who has figured out how to get this to work please give me a link to a tutorial that works.
I can set up SoftEther Client for Linux, but something is wrong with the ip routes or something. I've tried countless init bash scripts for ip routing. I tried doing the ip routes manually. But I cant get this to work to save my life.
I can connect SoftEther Client to the Server initially by ipv6 but when I send the dhcp request to the server everything goes bad and I loose all connection to the server and I can't reconnect.
After I tweak the routing table, by enableing ip forward in "/etc/sysctl.conf"
net.ipv4.ip_forward=1
and load it by:
sysctl -p
I can stay connected to ipv4 after the dhcp request but I loose all connection to the internet.
Re: SoftEther Client for Linux
Posted: Fri Aug 11, 2017 1:29 pm
by cmd wh0ami
I tried using this init script.
#! /bin/sh
### BEGIN INIT INFO
# Provides: vpnclient
# Required-Start: $all
# Required-Stop: $network $local_fs $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VPN Client at boot time
# chkconfig: 345 44 56
# description: Start VPN Client at boot time.
# processname: vpnclient
### END INIT INFO
# /etc/init.d/vpnclient
case "$1" in
start)
echo "Starting VPN Client"
/usr/local/vpnclient/vpnclient start
sleep 1
ifdown vpn_se
sleep 1
ifup vpn_se
sleep 1
route add -host 55.55.55.55 via 192.168.0.1
route del default
route add default via 192.168.30.1 dev vpn_se
;;
stop)
echo "Stopping VPN Client"
/usr/local/vpnclient stop
route del -host 55.55.55.55
route del default
route add default via 192.168.0.1 dev eth0
;;
*)
echo "Usage: /etc/init.d/vpnclient/vpnclient {start|stop}"
exit 1
;;
esac
exit 0
55.55.55.55 = public ip of server
192.168.0.1 = client defautl gateway address
192.169.30.1 = nic default gateway address given by the server during dhcp request
I enable ip forward in "/etc/sysctl.conf" by uncommenting the line
net.ipv4.ip_forward=1
and load it by:
sysctl -p
I run the dhcp request by:
sudo dhclient vpn_se
I've also tried: sudo dhclient -4 vpn_se
When I run the init script it says network interface vpn_se not found
I can stay connected to the server but I loose all connection to the internet.
Re: [SOLVED] SoftEther Client for Linux
Posted: Sun Aug 13, 2017 7:34 pm
by cmd wh0ami
I found the missing piece to the puzzle....
I needed to configure the DNS.
$ sudo su
$ echo "nameserver 8.8.8.8" >> "/etc/resolv.conf"
I found the answer in this blog post.
https://blog.harshillodhi.co.in/softeth ... ttp-proxy/
edit:
I found the real problem. I guess there's a bug in Debian based OS's (Ubuntu, ect...) that prevents the dns servername coming from the vpn server. The domain name would come through but the nameserver addresses would not.
$ sudo nano /etc/NetworkManager/NetworkManager.conf
We need to comment dns=dnsmaq to disable it.
dns=dnsmasq
(i.e., add a # so that it looks like the following)
#dns=dnsmasq
Then we need to restart network manager by:
$ sudo systemctl restart NetworkManage