I've a SME server in a VM that I use to compile SoftEther.
On SMEcp /opt
wget
http://www.softether-download.com/files/softether/v4.18-9570-rtm-2015.07.26-tree/Linux/SoftEther_VPN_Server/32bit_-_Intel_x86/softether-vpnserver-v4.18-9570-rtm-2015.07.26-linux-x86-32bit.tar.gztar zxvf softether-vpnserver-v4.18-9570-rtm-2015.07.26-linux-x86-32bit.tar.gz
cd /opt/vpnserver
yum install autoconf automake gcc
make (read and accept the licence)
open some tcp port 5555 (For the management)
open some udp port 500, 1701, 4500 (For L2TP)
in /opt/vpnserver
./vpnserver start
On Windows Computerdownload and install Windows Management Tools
http://www.softether-download.com/files/softether/v4.18-9570-rtm-2015.07.26-tree/Windows/SoftEther_VPN_Server_and_VPN_Bridge/softether-vpnserver_vpnbridge-v4.18-9570-rtm-2015.07.26-windows-x86_x64-intel.exeCreate a New connection with port number 5555
At first time insert blank password and create new password.
In local bridge setting create bridge with new tap device named soft
in IPsec / LT2P Setting IPSec Pre shared key indicate something.
On SMEI've made custom file in dhcpd.conf
cd /etc/e-smith/templates-custom/etc/dhcpd.conf/
nano 30BeginLocalSubnet
{
my $ipaddrBits = esmith::util::IPquadToAddr ($LocalIP);
my $netmaskBits = esmith::util::IPquadToAddr ($LocalNetmask);
local $network = esmith::util::IPaddrToQuad ($ipaddrBits & $netmaskBits);
$OUT .= "subnet 192.168.2.0 netmask 255.255.255.0\n\{";
}
nano 35Broadcast
{
my $ipaddrBits = esmith::util::IPquadToAddr ($LocalIP);
my $netmaskBits = esmith::util::IPquadToAddr ($LocalNetmask);
local $broadcast = esmith::util::IPaddrToQuad ($ipaddrBits | (~ $netmaskBits));
$OUT .= " option broadcast-address 192.168.2.255;";
}
nano 35DomainName
{
$OUT .= " option domain-name \"$DomainName\";";
}
nano 35DomainNameServers
option domain-name-servers { $LocalIP };
nano 35LeaseTimeDefault
default-lease-time { 86400 };
nano 35LeaseTimeMax
max-lease-time { 7*86400 };
nano 35NetbiosDDServer
{
return "" unless $DHCP_WINSServer;
return " option netbios-dd-server $DHCP_WINSServer;";
}
nano 35NetbiosNameServers
{
return "" unless $DHCP_WINSServer;
return " option netbios-name-servers $DHCP_WINSServer;";
}
nano 35NetbiosNodeType
{
my $server_role = $smb{ServerRole} || 'WS';
return "" unless $server_role =~ m{^(PDC|ADS)$};
return " option netbios-node-type 8;";
}
nano 35Netmask
option subnet-mask { $LocalNetmask };
nano 36Forwarding
option ip-forwarding true;
option router-discovery true;
nano 37Range
{
$OUT .= " range 192.168.2.100 192.168.2.200;";
}
nano 38Routers
{
my $router = (defined $SystemMode && $SystemMode =~ /servergateway/)
? $LocalIP :
defined $GatewayIP ? $GatewayIP : undef;
$OUT = "";
if ($router)
{
$OUT .= " option routers 192.168.2.1;";
}
}
nano 39EndLocalSubnet
\}
expand-template /etc/dhcpd.conf
/etc/init.d/dhcpd restart
add address to tap_soft
ifcfg tap_soft add 192.168.2.1
Add Rules to iptables
iptables -A FORWARD -i em1 -o tap_soft -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i tap_soft -o em1 -j ACCEPT
Identification is done, but I can't receive IP Address from dhcp server.
cat /opt/vpnserver/server_log/vpn_20151215.log
2015-12-15 19:01:25.860 L2TP PPP Session [XX.XX.XX.XX:1701]: Trying to request an IP address from the DHCP server.
2015-12-15 19:01:30.869 L2TP PPP Session [XX.XX.XX.XX:1701]: Acquiring an IP address from the DHCP server failed. To accept a PPP session, you need to have a DHCP server. Make sure that a DHCP server is working normally in the Ethernet segment which the Virtual Hub belongs to.