Page 1 of 1

Push routing table to client (CLI setup)

Posted: Thu Aug 04, 2016 6:39 am
by datswd
Hi everybody.
First of all i want to express my gratitude to developers of this wonderful software! Your software is a great thing which makes VPN server setup very easy to do and works like a charm.

My question is about pushing routing table to client.
It would be perfect to add cherry on top of ther perfect working VPN cake in the form of transferring some routes to client.

When client connects to VPN server whole traffic is transfered through it. I need to make it to transfer trafic for some particular IPs in Internet.

DhcpGet command responses with
Item |Value
-------------------------------+--------------
Use Virtual DHCP Function |Yes
Start Distribution Address Band|192.168.30.10
End Distribution Address Band |192.168.30.200
Subnet Mask |255.255.255.0
Lease Limit (Seconds) |7200
Default Gateway Address |192.168.30.1
DNS Server Address 1 |192.168.30.1
DNS Server Address 2 |None
Domain Name |
Save NAT and DHCP Operation Log|Yes
Static Routing Table to Push |

So, as i think, i need to add Static Routing Table to Push.
But i can't understand which command in CLI is used for it. DhcpSet doesn't ask anything it about.

Re: Push routing table to client (CLI setup)

Posted: Thu Aug 04, 2016 8:07 am
by datswd
First part of the problem has been solved.
Static Routing Table to Push can be added through config file.
Just find DhcpPushRoutes in your config file (in my case placed in the same folder with vpncmd), and add route you need.
In my case it looks this way:
string DhcpPushRoutes x.x.x.x/255.255.255.255/192.168.200.1

Then run configset command in vpncmd and place new config file path.

So, as i'v said, first part of problem has sucsessfully been solved. New route is added to client.

But now i need SoftEther not to become default route.
In ppp this problem is solved by removing defaultroute option from config file.
How to do it in SoftEther?

Re: Push routing table to client (CLI setup)

Posted: Mon Aug 15, 2016 3:09 pm
by datswd
I think that you can. But try to prevent setting default route on client's side.
This is standart solution in such situation.
I'v not found any normal answer for question about possibility of it. So now i just use solution i mentioned above.

Re: Push routing table to client (CLI setup)

Posted: Mon Aug 29, 2016 7:41 am
by thisjun
Please delete default gateway address setting of virtual DHCP server.

Re: Push routing table to client (CLI setup)

Posted: Thu Dec 07, 2017 1:32 pm
by gulipin
This is an old topic. Any answer on that? I would be happy to know, how to forward (route) traffic to connected client on specific port. Any help?

Re: Push routing table to client (CLI setup)

Posted: Wed Dec 20, 2017 5:01 am
by thisjun
Your problem doesn't related to the topic however, stone is good for you.
http://www.gcd.org/sengoku/stone/