Push routing table to client (CLI setup)

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
datswd
Posts: 7
Joined: Wed Aug 03, 2016 11:44 am

Push routing table to client (CLI setup)

Post by datswd » Thu Aug 04, 2016 6:39 am

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.

datswd
Posts: 7
Joined: Wed Aug 03, 2016 11:44 am

Re: Push routing table to client (CLI setup)

Post by datswd » Thu Aug 04, 2016 8:07 am

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?

datswd
Posts: 7
Joined: Wed Aug 03, 2016 11:44 am

Re: Push routing table to client (CLI setup)

Post by datswd » Mon Aug 15, 2016 3:09 pm

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.

thisjun
Posts: 2177
Joined: Mon Feb 24, 2014 11:03 am

Re: Push routing table to client (CLI setup)

Post by thisjun » Mon Aug 29, 2016 7:41 am

Please delete default gateway address setting of virtual DHCP server.

gulipin
Posts: 4
Joined: Tue Dec 05, 2017 5:41 pm

Re: Push routing table to client (CLI setup)

Post by gulipin » Thu Dec 07, 2017 1:32 pm

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?

thisjun
Posts: 2177
Joined: Mon Feb 24, 2014 11:03 am

Re: Push routing table to client (CLI setup)

Post by thisjun » Wed Dec 20, 2017 5:01 am

Your problem doesn't related to the topic however, stone is good for you.
http://www.gcd.org/sengoku/stone/

Post Reply